Free, independent guides since 2010

Design

Static site or WordPress? Choosing the right setup

Static website or a CMS like WordPress? The differences in speed, security, cost, editing and flexibility, and which type of site fits which setup.

<guide section="Design" type="article" read="2 min"/>

For two decades the default answer to “how do I build a website?” was a content management system: WordPress, Drupal, Joomla and the platforms we reviewed in our blogging section. Static websites – the way the web started – have made a big comeback. Which one suits you?

How they differ

A CMS like WordPress stores your content in a database. When a visitor asks for a page, PHP code runs, fetches the content and builds the HTML on the fly (unless a cache already has it). A static site is built in advance: every page is a ready-made HTML file that the server simply sends.

Static siteWordPress
SpeedExcellent out of the boxGood with caching and a light theme
SecurityVery small attack surfaceNeeds updates for core, plugins and themes
Hosting costVery low, often free tiers on static hosts and CDNsNeeds PHP and a database
EditingFiles, Git or a headless CMSFriendly editor in the browser
FeaturesForms, search and comments via services or scriptsThousands of plugins
MaintenanceMinimalRegular updates and backups

When static is the better choice

  • Business card and brochure websites that change a few times a year.
  • Documentation, portfolios and many blogs.
  • Sites that must survive traffic peaks without expensive hosting.
  • Old WordPress sites that are no longer updated – converting them to static removes the security risk while keeping the content.

When a CMS is the better choice

  • Webshops with stock, orders and customer accounts (see payment processing).
  • Membership sites and anything with logins.
  • Sites with many non-technical editors who publish every day.

The middle ground

Static site generators and headless CMSs combine both worlds: editors use a friendly interface, and the result is published as static files. Even with WordPress you can get close by using a full-page cache or a plugin that exports static HTML.

Frequently asked questions

Can I edit a static site without coding?

Yes, with a headless CMS or a Git-based editor that writes the content files for you, or by having a developer set up simple templates. Directly editing HTML is also perfectly possible for small sites.

Is WordPress insecure?

WordPress core is well maintained. Most hacks come from outdated plugins and themes, weak passwords and abandoned installations. Kept up to date, it is a solid platform.