I build websites by hand and I build them on WordPress, so I have no method to sell you. The honest answer to “which is better?” is “for what?”, and this guide is an attempt to answer that properly rather than with a feature table.

What they are, in one paragraph each

A hand-coded website is written directly in HTML, CSS, JavaScript and, where it needs to do something, a little PHP. There is no theme, no page builder and no plugins; every line exists because the design needs it. Changes are made by editing the files, and the site runs on almost any hosting. This website is built that way.

WordPress is free, open-source software you install on hosting. It powers a very large share of the web. The design comes from a theme, features come from plugins, and content is managed through an editor, which is its great strength: anyone can publish without a developer. The price is that all of it needs updating and looking after.

Speed

Hand-coded wins, and it is not close. A page only loads what it uses, so a well-built hand-coded page scores 100 on PageSpeed as a matter of course. WordPress can be fast when built with a lean custom theme and few plugins, but most WordPress sites in the wild carry a multipurpose theme, a page builder and thirty plugins, and they are slow because of it. The platform matters less than the discipline of the builder, but hand-coding makes the discipline the default. Here is how to test any site.

Security and maintenance

This is the biggest practical difference. A WordPress site has a login page, a database and a set of plugins, each of which updates regularly and some of which will have security fixes. An unmaintained WordPress site is the most common kind of hacked website, so it needs either a care plan or real discipline. A hand-coded brochure site has none of those things: no login to attack, no plugins to patch, no database to compromise. It needs almost no maintenance to stay safe, which for a business that does not want to think about its website is a large, quiet advantage.

Editing the site yourself

WordPress wins here, and it is the main reason to choose it. Its editor is familiar, flexible and lets a team publish news, events, products and pages without a developer. With a hand-coded site, changes go through me, which for most small marketing sites means a handful of emails a year and is perfectly workable, especially on a care plan. If you will publish weekly, you want WordPress. If your site changes a few times a year, you probably do not need a content management system at all, and paying for one in maintenance is a poor trade.

Running costs

I will not quote figures because they vary, but the shape differs. A hand-coded site costs its hosting and nothing else, and it runs happily on inexpensive hosting because it asks so little of the server. A WordPress site costs hosting plus maintenance, and often premium plugin licences; good hosting matters more because the software is heavier. Over three years the gap is real.

SEO

A draw if both are built well, with a slight edge to hand-coding for the reasons above: speed is a ranking factor, and a hand-coded page gives complete control over every tag, heading and piece of structured data without a plugin in the way. WordPress has excellent SEO plugins, which are mostly a way of doing what a hand-coded site does directly. What decides rankings is the planning and the content, not the method; see why SEO belongs in the design stage.

Ecommerce and content at scale

A shop with more than a handful of products, a membership site, a blog with hundreds of posts or a site several people publish to: these are WordPress jobs, because the content management is the point. WooCommerce in particular is the most capable option for a shop that needs to do things its own way. See ecommerce websites for how I approach that choice.

Custom functionality

Both can do anything; the question is how. On WordPress, custom features are built as plugins and sit alongside everything else the platform does. Hand-coded, a feature is written for the job with nothing around it, which suits tools that have to be fast and secure, such as a quote form that feeds an affiliate panel or a calculator. For anything that is really a piece of software, I would look at a bespoke build whichever way the website itself is made.

Ownership

Both are yours outright, which is one of the reasons I build on them rather than on hosted platforms. Plain files or open-source software on your own hosting, movable anywhere, with no company able to change the terms underneath you.

The comparison in a table

ConsiderationHand-codedWordPress
Best forMarketing and brochure sites, landing pages, speed- and security-critical sitesContent-heavy sites, blogs, membership, shops, sites a team publishes to
SpeedFastest possibleExcellent when built lean, poor when not
MaintenanceAlmost noneRegular updates; a care plan advised
SecurityMinimal attack surfaceGood when maintained
EditingThrough your developer, or a light editing layerFamiliar editor, very flexible
Running costsHosting onlyHosting, maintenance, plugin licences
EcommerceSmall, simple shopsWooCommerce for anything larger
Custom featuresWritten for the jobPlugins and custom code
OwnershipFully yoursFully yours

How I decide

I ask what the site has to do, who will edit it and how often, whether it sells, and whether anything about it is really software rather than pages. A marketing site that changes a few times a year and has to be fast, secure and found: hand-coded. A site with hundreds of pages, a serious shop, a membership or a team publishing every week: WordPress, built lean and looked after. The method follows the brief, not the other way round.

The short versionHand-coded for marketing sites that must be fast and secure and change only occasionally. WordPress for content-heavy sites, bigger shops and teams who publish often, provided it is built lean and looked after. Neither is better; one is right for your project.

The hand-coded and WordPress pages describe how I build each way. If you are not sure which fits, tell me what the site needs to do and I will say which I would choose and why. Hand-coded vs WordPress is only ever a question about your business, not about the technology.