What is WordPress?
WordPress is a PHP-based content management system that powers over 40% of all websites on the internet.
What is WordPress?
WordPress is an open-source content management system (CMS) built on PHP and MySQL, originally released in 2003 by Matt Mullenweg and Mike Little as a fork of b2/cafelog. As of April 2026, WordPress powers approximately 43% of all websites according to W3Techs, making it the most widely deployed CMS in history. It ships with a block editor (Gutenberg, introduced in WordPress 5.0 in December 2018), a theme and plugin architecture, and a built-in REST API (available since WordPress 4.7 in 2016). WordPress can function as a traditional server-rendered CMS or as a headless content backend via its REST or WPGraphQL APIs. It runs everything from personal blogs to enterprise publishing platforms — Automattic's WordPress VIP tier serves sites like Time, TechCrunch, and Rolling Stone at scale.
How it works
WordPress follows a request → PHP execution → database query → template rendering cycle. When a visitor hits a URL, the WordPress rewrite engine maps it to a query, pulls content from a MySQL (or MariaDB) database, and renders HTML through a hierarchical template system inside the active theme.
The core loop looks like this in a classic theme:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<div><?php the_content(); ?></div>
<?php endwhile; endif; ?>
Since WordPress 5.9 (January 2022), Full Site Editing (FSE) with block themes replaced the need for PHP template files for many use cases. Themes can now be composed entirely of HTML-based block templates.
The plugin system runs on an action/filter hook architecture. There are over 60,000 free plugins in the official repository. Developers register hooks like add_action('init', 'my_function') or add_filter('the_content', 'modify_output') to extend any part of the system without touching core files.
For headless setups, the built-in REST API exposes endpoints at /wp-json/wp/v2/posts, returning JSON. The community-maintained WPGraphQL plugin (v1.x+) adds a GraphQL endpoint at /graphql. We've used both to pipe WordPress content into Next.js and Astro frontends — you keep the editorial experience editors love while controlling the rendering layer.
Caching is critical. Without an object cache (Redis, Memcached) and a page cache (WP Super Cache, or a CDN like Cloudflare), uncached WordPress pages commonly hit 800ms–2s TTFB on shared hosting. With proper caching, you can get sub-200ms TTFB.
When to use it
WordPress is the right call when:
- Content editors need autonomy — the admin UI is mature, well-documented, and non-technical editors already know it
- Plugin ecosystem matters — WooCommerce for e-commerce, Yoast/RankMath for SEO, ACF or Meta Box for custom fields
- Budget is constrained — the open-source core is free, hosting starts at ~$5/month, and the developer talent pool is enormous
- You need a headless content backend — WPGraphQL + a Next.js or Astro frontend gives you the best of both worlds
WordPress is the wrong call when:
- Performance is non-negotiable out of the box — static site generators (Astro, Hugo) will beat WordPress on Core Web Vitals without heroic caching effort
- The site is purely a web application — WordPress is a CMS, not an app framework. Don't force it into SaaS territory
- You want to avoid PHP entirely — if your team is all TypeScript, managing a PHP codebase alongside a JS frontend adds friction
We've shipped WordPress on 50+ projects. Honest take: for content-heavy sites where editors matter, it's still hard to beat. For marketing sites where performance and developer experience are king, we reach for Astro or Next.js first.
WordPress vs alternatives
| Feature | WordPress | Headless WordPress | Contentful | Astro (with MDX) |
|---|---|---|---|---|
| Language | PHP | PHP backend + JS frontend | SaaS (API only) | JS/TS |
| Hosting | Self-hosted or managed | Self-hosted + Vercel/Netlify | Hosted SaaS | Static/SSR on Vercel/Netlify |
| Editor UX | Gutenberg block editor | Same admin, decoupled frontend | Web app UI | Code/Markdown |
| Plugin ecosystem | 60,000+ | Same, but frontend plugins break | Marketplace (smaller) | npm packages |
| Performance floor | Moderate (caching required) | High (static/ISR frontend) | High (API + static) | Very high (0 JS default) |
| Cost at scale | Hosting + plugins | Higher (two deploys) | Per-API-call pricing | Low (static hosting) |
Headless WordPress gives you the editorial experience without the frontend performance penalty. It's our preferred pattern when clients have existing WordPress content and editorial workflows but want modern frontend performance. For greenfield projects with developer-authors, Astro with MDX content collections is faster to build and deploy.
Real-world example
A media client with 12,000+ published articles was running a traditional WordPress theme on WP Engine. Lighthouse performance scores hovered around 45–55 on mobile due to plugin-injected scripts, unoptimized images, and render-blocking CSS. We migrated the frontend to Next.js 14 (App Router) with WPGraphQL as the content API. Kept the WordPress admin as-is for the editorial team. Deployed the frontend to Vercel with ISR (revalidation every 60 seconds). Post-migration, Lighthouse performance scores hit 92–98 on mobile. LCP dropped from 4.2s to 1.1s. The editorial team didn't retrain on a single tool. The WordPress admin stayed identical — editors didn't even notice the frontend changed. Total migration took six weeks with a two-person team.