AI Systems · Web design · Website speed · Core Web Vitals · Case study · How-to

Headless WordPress case study: faster pages, double the traffic

Thumbnail with the words 3.5 sec down to under 1s. A panel labelled The result lists 0 Poor URLs, 2x visitors and the same editor.
Short answer

One of our content sites ran WordPress on a fast DigitalOcean server behind a CDN, and still always had Poor or Needs improvement URLs in Core Web Vitals. Its readers were worldwide, but the server was in the US, and WordPress built most pages on request. We kept WordPress as the editor only (headless) and built the public site in Astro, served as ready-made pages from a CDN. Load time fell from over 3.5 seconds to under 1 second worldwide, all 402 tracked URLs turned Good, and visitors roughly doubled. We have since seen the same pattern on other sites.

Key takeaways

  • A fast server and a CDN didn't fix this site's Core Web Vitals. Distance to a US server and WordPress building pages on request did the damage.
  • We kept WordPress as the editor and moved the public site to Astro, served as ready-made pages from a CDN.
  • Load time went from over 3.5 seconds to under 1 second worldwide. All 402 tracked URLs are now Good on mobile and desktop.
  • Visitors rose about 110% and Google clicks went from about 50 to 100 a day to a peak of about 430.
  • We saw the same pattern on other sites. It's not a fix for every site, so check the list of when not to do it.

This is a case study from one of our own content sites. It has readers all over the world, a fast server, a CDN, and WordPress. Its Core Web Vitals were never fully green.

We didn’t leave WordPress. We kept it as the place where editors write, and rebuilt the public site in Astro. This is called headless WordPress. Then traffic about doubled.

Below: what was wrong, what we changed, the real numbers, and a 6-step plan if you want to do the same. It’s part of our guide to web design for small business. If you need the basics of speed first, read why is my website slow.

The site before: a fast server, a CDN, and still failing

On paper the setup was good:

  • WordPress on a fast DigitalOcean server in the US
  • A CDN in front (a network that serves copies of files from places closer to each visitor)
  • A theme and plenty of plugins, like most WordPress sites

But Google’s Core Web Vitals report in Search Console always had problem pages. In September 2026, the mobile report showed about 60 to 140 Poor URLs and about 150 to 240 Needs improvement URLs. No mobile URLs showed as Good.

Pages took over 3.5 seconds to load for many readers. And most readers weren’t in the US.

This is common. In the 2025 Web Almanac, only 45% of WordPress sites passed Core Web Vitals on mobile, among the lowest of the big website platforms.

Why a fast server and a CDN weren’t enough

Four things kept it slow:

1. The CDN wasn’t saving the pages. A CDN is fast only for what it has stored. Cloudflare’s own docs say its CDN does not cache HTML by default. Images and scripts came from nearby, but the page itself still came from the US.

2. Every trip went back across the world. Google’s web.dev team puts it plainly: a well-tuned server can still be slow for “users located far from your origin server”, and a trip back to the origin “can negate much of the value of a CDN”. A reader in Asia or Europe waited for the US server on almost every page.

3. WordPress built pages on request. Each uncached visit ran PHP, queried the database and loaded the theme and plugins. A content site has many old, quiet pages. The same web.dev guide notes that older or less visited content may not be cached at all. Those pages were always the slow ones.

4. Plugins added weight to every page. Each plugin can add its own scripts and styles. Even after cleanup, the theme and builder shipped code most pages didn’t need.

There’s one more catch. Search Console combines data “for all requests from all locations”. So slow visits from far-away readers pull the whole site’s score down. A site can look fast from the US and still fail.

Why the CDN was not enough. Before, all WordPress: a visitor in Asia or Europe asks for a page, the CDN has not saved it and passes the request on, the US server builds it with PHP, the database and plugins, and it travels back across the world in over 3.5 seconds. After, headless: editors write in WordPress, kept private, Astro builds every page ahead of time, a CDN near every visitor sends the ready page, and it loads in under 1 second anywhere.

What we changed: headless WordPress with Astro

Headless WordPress, in plain words

Normal WordPress does two jobs. It’s the back office where editors write, and it’s the shop front that builds each page for visitors.

Headless means you split those jobs. WordPress keeps the back office. A separate tool runs the shop front.

We used Astro for the front. Astro’s docs describe WordPress as a CMS that “can also be used as a headless CMS”, connected through the REST API every WordPress site has built in.

Here’s what happens now:

  • An editor writes and publishes in WordPress, as before.
  • Publishing starts a new build. Astro reads the content and turns every page into a finished HTML file.
  • Those files go out to a CDN. Every visitor, anywhere, gets a ready page from nearby. No PHP, no database, no waiting on the US.

For a side-by-side of the two platforms, see Astro vs WordPress.

What editors kept

This was the part people worried about most. Very little changed for the team:

  • Same login, same editor. They write, add images and schedule posts in WordPress.
  • Same categories, tags and authors. Astro reads them and builds the pages.
  • Plugins that add content fields can stay, as long as the front end can read their data.

What they lost: page builders, sliders and theme settings that changed the public design. That’s a feature. The design now stays consistent and fast, whoever publishes.

Fewer plugins, harder to hack

We removed most plugins. Anything that only shaped the front end (builders, sliders, caching, minifying, pop-ups) had no job left.

That also shrank the risk. Patchstack’s State of WordPress Security in 2026 found 91% of new WordPress vulnerabilities in 2025 were in plugins. Fewer plugins means fewer doors.

In a headless setup, the public never touches WordPress. Visitors get plain files from the CDN, and there’s no database behind the public pages for an attacker to reach. We also hardened the WordPress side: it sits apart from the public site, with the login locked down.

The results

Here’s what changed, read from the site’s own Google reports.

Speed: from over 3.5 seconds to under 1 second

Our own tests went from over 3.5 seconds to under 1 second for visitors worldwide, not just near the US.

Core Web Vitals: from Poor to all Good

Core Web Vitals before and after, mobile URLs in Search Console. Poor went from about 60 to 140 URLs to 0. Needs improvement went from about 150 to 240 to 0. Good went from 0 to 402. Desktop is also 402 Good, 0 Needs improvement and 0 Poor, per Chrome UX data updated 28 November 2026.

Search Console’s report moves slowly, because it uses the last 28 days of real visits. On this site it went like this (dates read from the chart, so approximate):

  • Desktop: Poor URLs hit 0 around 12 September. Good jumped to about 200 around 6 October.
  • Mobile: Poor URLs hit 0 around 28 September. Good URLs appeared around 10 to 15 October, and Needs improvement hit 0 around 15 October.
  • Now: 402 Good, 0 Needs improvement and 0 Poor, on both mobile and desktop (Chrome UX data, updated 28 November 2026).
Search Console Core Web Vitals report for mobile and desktop, 1 September to 28 November 2026. Poor and Needs improvement lines drop to zero by mid-October; Good rises to 402 URLs on both.
The real Search Console Core Web Vitals report for this site, mobile and desktop, September to November 2026 (Chrome UX data, updated 28 Nov 2026). Tap to open full size.

Search and traffic

What happened to traffic on one of our sites. Active users up 110 percent, to 139 thousand this year compared with the period before. Page views up 96 percent, to 177 thousand. Google clicks peaked at about 430 a day, up from about 50 to 100 a day, and are now settling at about 200 or more.

Google Search (Search Console, last 12 months): 31.8K clicks and 5.27M impressions. Daily clicks sat around 50 to 100 through spring and summer. From late September they climbed, peaking at about 430 a day in mid to late November, and are now settling at about 200 or more. Impressions reached about 40,000 to 50,000 a day in November.

The chart below also shows a bump last winter, which faded by April. The autumn climb went well past it and is the highest point of the 12 months.

Search Console Performance report, web search, last 12 months: 31.8K clicks and 5.27M impressions. Clicks and impressions climb sharply from late September 2026 to their highest point in November.
The real Search Console Performance report, web search, last 12 months. Blue is daily clicks, purple is daily impressions. Tap to open full size.

All traffic (Google Analytics 4, this year compared with the period before):

Measure This year Change
Active users 139K +110.3%
Views 177K +96.4%

Active users sat around 2,000 to 3,000 a week for most of the year. From mid-October they climbed sharply, to peaks of about 10,000 to 12,000 a week from late October into November.

Google Analytics 4 home card, this year compared with the previous period: 177K views, up 96.4 percent, and 139K active users, up 110.3 percent. The weekly active users line climbs sharply from October.
The real Google Analytics 4 home card for this site, this year (solid line) against the period before (dotted). Cropped for privacy. Tap to open full size.

The surprise was that traffic grew across channels, not just from Google search.

What we can claim, and what we can’t

The timing lines up: the vitals went green first, then search and traffic climbed. But one site isn’t a lab test. Google updates, seasons and new content can move traffic too.

Two things make us confident. We’ve repeated the same move on other sites and seen the same pattern. And Google’s own docs explain why it can work, below.

Why speed can help indexing and traffic

Speed doesn’t rank a weak page. Google says it always tries to show the most relevant content, even when page experience is poor. But it also says Core Web Vitals “are used by our ranking systems”. We cover that in more depth in why is my website slow.

For a large content site, crawling matters too. Google’s crawl budget guide says that if a site responds quickly and its response times stay stable or improve, Googlebot’s limit goes up and it can crawl more. If the site slows down, Google crawls less. Google adds that its guide is mainly for very large or fast-changing sites (10,000+ pages), so don’t expect this on a 20-page site.

Put together: pages Google can fetch fast, that pass Core Web Vitals for readers everywhere, have a better chance to be crawled, shown and clicked. That fits what we saw in impressions, though we can’t separate each cause.

How to move WordPress to a headless Astro front end in 6 steps

This is the order we use. Steps 3 to 6 need a developer.

1. Measure where you are. Save your Search Console Core Web Vitals and Performance numbers. Test key pages in PageSpeed Insights. Check how fast the page starts arriving for readers in your main countries, not just yours. You’ll need this baseline to prove the result.

2. List what WordPress does today. Sort every plugin into three groups: editing tools your team needs, front-end features the new site must rebuild (forms, search, related posts), and plugins you can delete. This list is your project scope.

3. Keep WordPress for editors only. Move WordPress to its own address. Keep the admin away from the public, lock the login, and stop that address from being indexed. Editors log in and write exactly as before.

4. Build the Astro front end from your content. Astro reads posts, pages and images through the WordPress REST API and builds every page ahead of time. Keep the same URLs, titles, meta descriptions and structured data, so Google sees the same site, only faster.

5. Rebuild on publish and serve from a CDN. Set WordPress to start a new build when someone publishes or updates a post. Serve the finished pages from a CDN, so every visitor gets a ready page from nearby.

6. Launch with redirects, then watch Search Console. Map and 301-redirect any URL that changes, and submit the new sitemap. Watch Core Web Vitals for 28 days and search Performance for longer. Our website redesign without losing SEO checklist covers the launch step by step.

When not to go headless

Headless WordPress isn’t for everyone. Skip it, or wait, if:

  • Your visitors are mostly near your server and your vitals already pass. Fix images and plugins first; our 6-step speed fix is cheaper.
  • The site is small and rarely changes. A simple Astro site with a light editor may be easier than keeping WordPress at all.
  • Your site runs on live WordPress features, like WooCommerce checkout, memberships, courses or logged-in areas. Those can be done headless, but the project gets much bigger.
  • Editors rely on a page builder to design new pages every week. Headless means designs are built by a developer, then filled in by editors.
  • Nobody can look after two systems. You now run WordPress and a front end. It’s less work than a plugin-heavy site, but it isn’t zero.

Not sure what it costs? See how much does a website cost.

Our view

  • A CDN can’t save pages it never stores. If your readers are worldwide and WordPress builds pages on request, distance will show up in your vitals.
  • Keep the editor, change the front. Your team doesn’t need to relearn anything for the site to get fast.
  • Measure before and after. Save your Search Console numbers first, so you can prove what changed.

Make your WordPress site fast worldwide

Fast server, CDN, and still failing Core Web Vitals? We keep WordPress as your editor, rebuild the public site in Astro, keep every URL and ranking, and show you the Search Console numbers before and after.

See how our web development works

Questions

What is headless WordPress?

Headless WordPress means you keep WordPress for writing and storing content, but a separate front end shows that content to visitors. Editors still log in to WordPress. The public site is built by another tool, such as Astro, which reads the content through the WordPress REST API.

Is headless WordPress good for SEO?

It can be, because pages arrive as finished, fast HTML that search engines can read without running scripts. But headless itself does not rank anything. You still need the same URLs or proper redirects, titles, internal links, a sitemap and structured data, which a developer must build into the new front end.

Why didn't a CDN fix my WordPress speed?

A CDN only helps with what it has saved. Cloudflare, for example, does not cache HTML by default, so each page request can still travel back to your server, where WordPress builds the page with PHP, the database and plugins. Visitors far from that server wait the longest.

Can editors still use WordPress after going headless?

Yes. They log in, write, add images and publish in the same WordPress editor. What changes is that front-end plugins like page builders, sliders and theme options no longer control the public design, so the site stays consistent and fast.

Does page speed affect SEO?

Google says Core Web Vitals are used by its ranking systems, but relevance comes first and a perfect score does not guarantee top rankings. Faster responses also let Googlebot crawl more of a site. Speed helps a good page win; it does not rescue a weak one.

How long until Core Web Vitals show the change?

Search Console's Core Web Vitals report uses the last 28 days of real visitor data, so expect the chart to move over about four weeks after launch. On our site, Poor URLs reached zero in September and every tracked URL was Good by mid-October.

Want this applied to your business?Get your AI scoreBook a call