WordPress or a static site? An honest comparison, security included

On 21 October 2026 the PHP team released emergency patches for two critical flaws that let an attacker run code on a web server without logging in. PHP is what WordPress runs on, so millions of sites had to be updated straight away. Static sites had nothing to update.

Does that mean static is always better? No: it depends on what your site has to do. In this post we look at the pros and cons of both, what an incident like this really means for security, and how to choose.

What each one actually is

WordPress is a program that runs on a server. Every time someone opens a page, PHP asks a database for the content and assembles the page on the spot. You log in to an admin panel, write, click "Publish", and the change is live. Extra features (forms, bookings, multiple languages, members' areas) are added with custom code or with plugins. Around 40% of all websites run on it (W3Techs puts it between 40 and 43% depending on the month).

A static site is a folder of finished HTML pages. They are generated once, when something changes, and then served as plain files, usually from a CDN (Content Delivery Network: copies of the site on servers around the world, so each visitor gets it from the nearest one). There is no database and no code running when a visitor arrives.

WordPress: what it's good for

  • A ready-made admin panel. You manage pages, content and menus from there, and adding plugins is easy (but too many plugins are a risk, see below). It is very useful if you need to publish content, and it is very easy to use.

WordPress: what it costs you

  • It needs maintenance. The theme, the PHP version and above all the plugins have to be kept up to date. Skip the updates, as a great many non-technical owners do, and the site becomes vulnerable to attacks. Apply them without checking, and something can break: a critical error after an update can even lock you out of your own site.
  • It is slower by default. A static site has its HTML pages ready. WordPress builds every page on every visit, pulling the content from the database: one more step that makes loading slower.
  • Hosting costs more, because you need a server that runs PHP and a database.

Static: what it's good for

  • Perfect for a company's image online. If the site has to present who you are, your work and how to reach you, static does exactly that, with no extra software.
  • It is fast by default. A static site doesn't query a database or build the page on every visit: it simply sends the HTML file that is already there. That makes it faster than WordPress out of the box. Not that WordPress is slow or a bad choice, but static starts with an advantage.
  • It helps SEO. Loading speed is one of the signals Google measures, and a static site starts fast and with clean code. On its own it is not enough, though: what gets you found is mostly the content, the right pages and your Google Business profile.
  • Fairly secure. There is no PHP, database or plugins on the live site, so there are far fewer weak points (more on this in the security section).
  • Few updates, low costs. No plugins, PHP or database to update: updates are few or none, and maintenance costs less.
  • Traffic spikes are not a problem. Sending ready-made files is light work for a server, so a busy day or a mention in the press does not slow the site down or take it offline.

Static: what it costs you

  • Editing is more limited. There are tools that let you change texts, images and blog posts on a static site yourself, but adding a new kind of page or changing the layout means calling a developer.
  • Interactive features need a developer. Forms, search, comments or payments don't come already made: each one has to be built or connected to an outside service, which means custom work. WordPress has some of them, like search and comments, built in.

Security: the part people exaggerate

This is where the marketing gets loud, so let's stick to numbers.

The WordPress core itself is in good shape. According to Patchstack's 2026 report, core had only a handful of reported vulnerabilities in 2025, all low priority. The problem is the ecosystem around it: the same report counts over 11,000 new vulnerabilities in 2025, about 91% of them in plugins and most of the rest in themes. Almost half had no fix available when they were made public, and attackers start exploiting the popular ones within hours.

So the real risk of a WordPress site is not WordPress, but how it is maintained. A site that is updated regularly, with a few reliable plugins, behind a firewall and with a protected login, is a very different thing from a site nobody has touched in years.

The October incident adds a layer people forget: the server itself. The two flaws were in PHP, not in WordPress or a plugin. Updating WordPress from the dashboard did nothing for them; the fix was a new PHP version on the server (8.2.35, 8.3.36, 8.4.27 or 8.5.12), and a month later PHP shipped another round of 18 fixes.

Who installs that fix depends on where your site lives. You update WordPress, the theme and the plugins yourself (or whoever maintains your site does). PHP sits underneath, on the server, and on shared hosting you have no access to it: only the hosting company can patch it, and you usually have no way of knowing when they did. If your site is on a server someone manages for you, ask them directly: when was PHP last updated?

That is the honest version of the WordPress security story. It is not unsafe, but it is a stack of software (server, PHP, WordPress, theme, plugins) and every layer needs an owner.

A static site removes most of that list: no PHP, no database, no login page on the public site, no plugins. That is a real advantage, and it is the main reason we recommend static for brochure sites.

But "nothing can be hacked" is false. A static site can still be compromised through:

  • Your accounts. If someone gets into the hosting account, the code repository or the domain registrar, they can replace the site or point the domain somewhere else. Two-factor authentication everywhere is not optional.
  • DNS. A hijacked domain shows whatever the attacker wants, static or not.
  • Third-party scripts. Analytics, chat widgets, cookie banners, embedded forms. Each one runs code on your pages. If the provider is compromised, so is your site.
  • The build tools. The software that generates the pages is downloaded from the internet, and a compromised package could slip something into them. It never runs on the live site, and the fix is simple: few dependencies, locked versions, updated on purpose rather than automatically.

In short: a static site has far fewer weak points than WordPress, but not zero.

How to choose

To choose, start from what you need. If you want a showcase site that you update now and then, without having to deal with updates or keep a constant eye on it, static is the right answer. If instead you need to create pages, add features and grow the site over time, WordPress is a great choice.

For the more specific cases: if you sell online, the choice is usually between Shopify and WordPress with WooCommerce, or a custom checkout for unusual cases. Bookings, members' areas or anything with user accounts need WordPress or a custom application. And if you have an old WordPress site that is slow, rarely updated and only shows information, moving it to static is usually worth it.

Most common questions about static vs WordPress

Was my WordPress site affected by the October 2026 PHP flaws?

If it runs on PHP 8.2 to 8.5 and the server was not updated after 21 October, possibly. Updating WordPress or its plugins does not fix it. Ask your host which PHP version you are on and when it was last patched.

Can a static site be hacked?

Yes, but not through PHP, WordPress or plugins, because none of them are on the live site. The risks are your accounts (hosting, code repository, domain), DNS, third-party scripts and the tools used to build the site.

Does a static site need updates?

Few or none, and they never block the site from working. It keeps serving the same pages for years. The build tools, the hosting account and any outside service still need checking from time to time.

Is WordPress unsafe?

No. The core is well looked after. The risk comes from plugins nobody updates and servers nobody patches. Maintained properly, WordPress is a sound choice and easy to use.

Should I move my WordPress site to static?

If it mainly shows information and you change it a few times a year, it is usually worth it. If you publish every week, sell online or have user accounts, keep WordPress and make sure someone maintains it, server included.

The rule we follow

A WordPress site without maintenance is a risk. That is why we always recommend a maintenance plan that covers the server too, PHP included, to anyone who chooses WordPress, and why we suggest static for showcase sites: the ones that look after your image online without needing new pages or articles every week.

If you need professionals to build or look after your site, WordPress or static, and improve your image online, see what we do.