Nexus Media Co Ltd
Web Performance

Why we move WordPress sites to Astro, and how we do it without redesigning them

by Nexus Media

WordPress is a great place to write a website. It is often a poor way to serve one. Every theme and plugin adds its own scripts, stylesheets and fonts, and most of them load on every page whether that page needs them or not. Your visitors pay for that on every click, especially on a phone.

Over the past months we have moved our own company site and several of our demo sites from WordPress to Astro. Astro is a modern framework that builds a site into plain, ready-made HTML pages, which are then served from Cloudflare’s global network. This article explains why we do it, how we do it without redesigning anything, and what it changed in the numbers.

Why move at all?

A typical WordPress page is built on request: PHP runs, the database is queried, the theme assembles the page and the browser then downloads everything the theme and its plugins asked for. Caching plugins help, but the page still carries all the weight of the stack behind it.

An Astro site works the other way round. The pages are built once, when we publish, and the visitor receives a finished HTML file from a server close to them. That means:

  • Speed. No PHP, no database round trip, no plugin bootstrapping on each visit.
  • Security. There is no admin login, no plugin code and no database on the public site for anyone to attack.
  • Low running costs. Static pages on Cloudflare Pages cost very little to host, and often nothing at all for a small business site.
  • Better SEO signals. Google measures real loading speed (Core Web Vitals), and fast pages are easier to rank.

Our method: copy first, improve second

The riskiest part of any migration is the moment the new site quietly stops matching the old one: a paragraph shortened, a button in the wrong colour, a form that no longer sends. So we never start by rebuilding. We work in two separate phases.

Phase 1: a faithful static copy

We capture every page exactly as a real browser renders it, together with every image, stylesheet, script and font it uses, and serve that copy from Astro. Nothing is rewritten by hand. At the end of this phase the new site looks and behaves exactly like the old one, and we can prove it: we open every page in a real browser, check the full-page screenshots, and record every console error and failed request.

Phase 2: turning the copy into a real Astro site

Only then do we restructure: the header, footer and repeated sections become shared components, and every change is checked against the phase-one copy so the output stays identical. Once the structure is clean, the actual clean-up can start.

What we remove

This is where most of the speed comes from. On one of our law-firm demo sites, for example:

  • Unused CSS. Each page’s stylesheets were combined into one file and every rule the page never uses was removed. Across the site that took the CSS from 11 MB to 3.4 MB.
  • A slider plugin. The homepage slider was rebuilt as a native section. Removing the plugin deleted about 3.4 MB of assets.
  • Third-party fonts. Google Fonts are now hosted on the site itself, only in the weights actually used. That is faster, and it no longer sends every visitor’s IP address to Google.
  • Scripts that were loaded but never used, such as form libraries on pages without forms, and scripts that blocked the page from appearing until they finished loading.
  • WordPress forms. Contact forms are replaced by native forms that send straight to our automation workflows, with Cloudflare Turnstile as spam protection.
  • WordPress fingerprints in the page code, which tell automated scanners exactly what to look for.

One lesson we learned the hard way: “no trace in the HTML” does not mean “unused”. On one site a carousel library looked completely unused, because no page markup referred to it. The testimonials widget was calling it directly from JavaScript. Only a check in a real browser caught it, so every removal is now verified that way, page by page.

The results

Google Lighthouse, mobile, on the same law-firm demo site:

  • Performance: from 61 to 92. The first static copy scored 61, with the first content taking 6.8 seconds to appear. That was the WordPress theme’s full weight, now on a faster host.
  • Accessibility, Best Practices and SEO: 100 each after the clean-up and a dedicated accessibility pass.

The first copy was measured in October 2026. This is the same site on Google PageSpeed Insights today:

Google PageSpeed Insights mobile report for the law-firm demo site: Performance 92, Accessibility 100, Best Practices 100, SEO 100
The law-firm demo site on Google PageSpeed Insights, mobile, December 3, 2026.

Our own company site, the one you are reading now, was rebuilt by hand from the original WordPress design. On Google PageSpeed Insights it scores 99 for performance on mobile, the hardest test, since it simulates a mid-range phone on a slow connection.

Google PageSpeed Insights mobile report for nexusmedialtd.com: Performance 99, Accessibility 98, Best Practices 100, SEO 92
nexusmedialtd.com on Google PageSpeed Insights, mobile, December 3, 2026.

“But I still want to write my own articles”

That is the most common question, and a fair one. A static site does not mean giving up WordPress for writing. In the next article of this series we explain how this very blog works: articles are written in the familiar WordPress editor, stored in the cloud, and shown on the fast Astro site the moment they are published, without WordPress ever being exposed to visitors.

If your WordPress site feels slow, or you are tired of plugin updates and security patches, get in touch. We will tell you honestly what a move would change for you.

Frequently asked questions

Will my site look different after moving from WordPress to Astro?

No. The first phase is a faithful static copy of every page, with the same images, styles, scripts and fonts. We check it page by page in a real browser, with full-page screenshots, before anything is restructured, and every later change is compared against that copy so the output stays identical.

Can I keep writing articles in WordPress?

Yes. WordPress stays as the editor, with drafts, revisions and the media library, but it no longer serves the public site. Articles are copied to the cloud when you publish and appear on the Astro site straight away, without WordPress ever being exposed to visitors.

How much does an Astro site cost to host?

Very little, and often nothing. The pages are static files served from Cloudflare Pages, so there is no PHP, no database and no server to run or patch. A typical small business site stays inside Cloudflare’s free tier, so the running cost is often zero.

Does moving from WordPress to Astro help SEO?

It improves the signals Google measures directly. Google uses real loading speed (Core Web Vitals) as a ranking signal, and static pages load much faster: our law-firm demo site went from 61 to 92 for mobile performance, with 100 for SEO in Lighthouse. Good content and links still matter as much as before.

  • #Astro
  • #Cloudflare
  • #Core Web Vitals
  • #Security
  • #SEO
  • #WordPress

Related articles