A slow website quietly costs you money. Visitors leave before the hero image appears, Google sees weak user experience signals, and every ad or email campaign you pay for sends traffic to a page that feels broken. The good news: WordPress page speed is one of the most fixable problems on the web. You don’t need to rebuild your site. You need to fix the right things in the right order.
This guide is the checklist we use when tuning WordPress and WooCommerce sites. It covers 18 expert tips, from the server up to the last font file, with code you can copy, settings you can change today, and clear notes on when a tip is worth your time and when it isn’t. It is written for 2027 standards: WordPress 7.x, PHP 8.3+, HTTP/3, AVIF images, and the current Core Web Vitals set (LCP, INP and CLS).
Why WordPress Page Speed Matters for SEO and User Experience
Speed is the first thing a visitor experiences, before your copy, your design or your prices. When a page takes four or five seconds to show meaningful content on a phone, many people simply hit “back”. The ones who stay are less patient with everything that follows: slow filters, a laggy add-to-cart button, a checkout that jumps around while loading.
For WordPress in particular, there is real room to improve. WordPress runs the majority of CMS-built sites (the 2025 Web Almanac CMS chapter puts it at roughly 64% of CMS-driven sites), but it does not lead on real-user performance. In Search Engine Journal’s analysis of HTTP Archive’s Core Web Vitals report, WordPress sat at the bottom of the major CMS platforms, with fewer than half of its sites passing all three metrics in the November 2025 data. That is not because WordPress is slow by nature. It is because many sites run on cheap hosting, heavy themes, a pile of plugins and unoptimised images. Every one of those is something you control.
How website loading speed affects Core Web Vitals and Google rankings
Google uses Core Web Vitals as part of its page experience signals. They measure three things a real visitor feels:
- Largest Contentful Paint (LCP): how fast the main content (usually the hero image or headline) appears. Good is 2.5 seconds or less.
- Interaction to Next Paint (INP): how quickly the page responds when someone taps, clicks or types. Good is 200 milliseconds or less.
- Cumulative Layout Shift (CLS): how much the layout jumps while loading. Good is 0.1 or less.
Two supporting metrics help you diagnose problems: Time to First Byte (TTFB), which reflects your server and caching (aim for under 0.8 seconds), and First Contentful Paint (FCP), the moment anything appears on screen (aim for under 1.8 seconds).
Page speed is not a magic ranking lever. Relevant, helpful content still wins. But when two pages are close in quality, the faster one gives Google and users fewer reasons to choose the other. And speed improves the numbers you actually care about: lower bounce rate, more pages per session, more leads and more sales.
Before You Start: Test Your WordPress Website Speed
Never optimise blind. Record a baseline first, so you know which tips actually helped and which ones only added complexity. Test at least three page types, because they behave very differently: your homepage, a typical blog post, and your most important money page (a product, service or landing page).
How to test WordPress page speed with Google PageSpeed Insights
Google PageSpeed Insights is the starting point for most site owners. Paste a URL and you get two kinds of data:
- Field data (top section): real visitor measurements from the Chrome User Experience Report over the last 28 days. This is what Google uses for Core Web Vitals. Small or new sites may not have enough traffic to show it.
- Lab data (Lighthouse section): a simulated load on a throttled mid-range phone. This produces the 0–100 performance score and the “Opportunities” and “Diagnostics” lists that tell you what to fix.
Always check the Mobile tab first. Most traffic is mobile, Google indexes the mobile version of your site, and mobile scores are where problems show up most clearly.
Pro tip: Lighthouse lab scores move around by several points between runs. Run each test three times and use the median. Never chase a single score change of 2–3 points.
Check website performance using GTmetrix and WebPageTest
PageSpeed Insights tells you what is slow. GTmetrix and WebPageTest show you why, with a waterfall chart: every file your page loads, in order, with timing for DNS, connection, waiting (TTFB) and download.
- GTmetrix WordPress speed test: choose a test location close to your audience and test on a throttled mobile connection where your plan allows it. The “Waterfall” tab exposes slow plugins, huge images and third-party scripts at a glance.
- WebPageTest: free and extremely detailed. Use the “Filmstrip” view to see exactly when content becomes visible, and run a “repeat view” to confirm that browser caching works.
- Query Monitor (plugin): the best WordPress performance test for the back end. It shows slow database queries, the plugin responsible for each one, and PHP errors. Use it on staging or while logged in as an admin.
Understand Core Web Vitals: LCP, INP and CLS
Before you change anything, write down which metric is failing on which page type. The fixes are different:
| Failing metric | Most common WordPress causes | Tips that fix it |
|---|---|---|
| High TTFB | Slow hosting, no page cache, old PHP, heavy plugins | 1, 2, 4, 5, 6, 14 |
| Slow LCP | Large hero image, render-blocking CSS/JS, web fonts, slow TTFB | 7, 8, 9, 10, 12, 18 |
| Poor INP | Too much JavaScript, page builders, chat and tracking scripts | 3, 4, 10, 11, 18 |
| High CLS | Images without dimensions, ads, cookie banners, font swaps | 7, 12, 18 |
| Large page weight | Uncompressed images, video embeds, bloated themes | 7, 8, 15, 17 |
18 Expert Tips to Optimise WordPress Page Speed
The tips below are ordered by impact. The first six fix the foundation (server and caching). Tips 7 to 12 fix what the browser downloads. Tips 13 to 18 handle the fine-tuning that takes a good site to a great one. If your time is limited, do them in order.
1. Choose a Fast and Reliable WordPress Hosting Provider
Hosting is the foundation of WordPress website performance. Every other optimisation sits on top of it. If your server takes two seconds to generate a page, no image plugin can make that page load in one. Hosting also sets the ceiling for traffic spikes: a cheap plan may feel fine at 50 visitors and fall over at 500.
Shared vs VPS vs managed WordPress hosting
| Hosting type | How it works | Typical TTFB | Best for | Watch out for |
|---|---|---|---|---|
| Shared hosting | Hundreds of sites share one server’s CPU and RAM | 0.6 – 2.0s+ | New blogs, small brochure sites | “Noisy neighbours”, CPU limits, old PHP defaults |
| Cloud VPS | Dedicated slice of CPU/RAM you manage (or with a panel) | 0.2 – 0.6s | Growing sites, developers, agencies | You handle security, updates and caching setup |
| Managed WordPress hosting | Stack tuned for WordPress, with built-in caching, CDN and backups | 0.1 – 0.5s | Business sites, WooCommerce, busy blogs | Higher price, some plugins restricted |
| LiteSpeed shared/cloud | LiteSpeed web server with server-side LSCache | 0.2 – 0.6s | Budget sites that want server caching | Best results only with the LiteSpeed Cache plugin |
TTFB ranges above are typical for a cached page from a nearby location; uncached and far-away requests are slower. If you’re unsure which model suits you, our comparison of managed WordPress hosting vs shared hosting breaks down cost, speed and support side by side.
Why server response time matters
Time to First Byte is the time between the browser asking for your page and receiving the first byte of HTML. Nothing else can start until it arrives: no CSS, no images, no fonts. A slow TTFB pushes back every other metric, which is why “Reduce initial server response time” so often tops the opportunities list.
When choosing the fastest WordPress hosting for your budget, look for:
- PHP 8.3 or newer, with OPcache enabled
- Server-level page caching (Nginx FastCGI, LiteSpeed or Varnish)
- Redis or Memcached available for object caching
- HTTP/2 and HTTP/3 support, plus Brotli compression
- NVMe SSD storage and a data centre near your audience
- Free staging, daily backups and a built-in or integrated CDN
2. Use the Latest PHP Version
WordPress is written in PHP, so every page that isn’t served from cache runs through the PHP engine. Each major PHP release has made WordPress faster and more memory-efficient, and PHP 8.x is dramatically quicker than the PHP 7.x versions many sites still run. Newer versions also keep receiving security fixes; older ones don’t.
As of 2026, WordPress 7.0 requires at least PHP 7.4, and the core team has confirmed in its spring 2026 PHP support clarification that WordPress 6.9 and 7.0 fully support PHP 8.5. Check the official PHP supported versions table too: PHP 8.2 reaches the end of its security support on 31 December 2026, so aim for PHP 8.3, 8.4 or 8.5.
Check your current PHP version
Go to Tools → Site Health → Info → Server. The “PHP version” row shows what your site runs today. Site Health will also warn you on the Status tab if your version is outdated. Using WP-CLI:
wp --info | grep "PHP version"
# or, inside WordPress context:
wp eval 'echo PHP_VERSION . PHP_EOL;'
Upgrade PHP for better WordPress performance
- Back up files and database (or confirm your host’s daily backup).
- Update WordPress core, your theme and every plugin first. Old plugins are the usual cause of PHP upgrade errors.
- Test on staging: switch the staging site’s PHP version in your hosting panel (cPanel → “Select PHP Version” or “MultiPHP Manager”, or your managed host’s dashboard).
- Click through the important flows: homepage, contact forms, search, cart and checkout.
- Switch production, then watch the error log for a day.
Also make sure OPcache is enabled. OPcache stores compiled PHP code in memory so it isn’t recompiled on every request. Most hosts enable it by default, but it’s worth confirming in Site Health or with php -i | grep opcache.enable.
3. Choose a Lightweight and Speed-Optimised WordPress Theme
Your theme decides how much CSS, JavaScript and HTML loads on every single page. A bloated multipurpose theme can add 300–800 KB of assets before you write a single word, plus dozens of extra DOM elements that slow down rendering and interactions.
Avoid bloated themes and unnecessary features
Warning signs of a slow theme:
- It bundles its own sliders, page builder, mega menu, portfolio and shop modules, all loaded site-wide whether you use them or not.
- It requires five or more “recommended” plugins to work.
- Its demo scores poorly on mobile even with no real content.
- It loads jQuery plus several animation libraries on pages that have no animation.
- It puts critical layout inside JavaScript sliders, which hurts LCP.
Use lightweight themes for faster loading
A good lightweight WordPress theme loads under 50 KB of CSS and very little JavaScript, uses system or locally hosted fonts, and loads modules only where they’re used. Block themes (Full Site Editing) are naturally lean because WordPress only loads the styles for blocks that appear on the page. Before you buy, run the theme’s demo through a speed test on mobile.
Need a shortlist? We tested and ranked the fastest WordPress themes by page weight, requests and Core Web Vitals, including options for blogs, businesses and WooCommerce stores.
Rule of thumb: if you use a page builder, pair it with a minimal “canvas” theme. Two heavy layers (a heavy theme plus a heavy builder) is the most common reason WordPress sites fail INP.
4. Remove Unnecessary WordPress Plugins
Plugin count matters less than plugin quality. Thirty well-coded plugins can be faster than five bad ones. What hurts speed is plugins that load scripts and styles on every page, run slow database queries, call external APIs on page load, or schedule heavy cron jobs.
Identify resource-heavy plugins
- Install Query Monitor and open any page while logged in. Check “Queries by Component” to see which plugin runs the most (or slowest) database queries, and “Scripts” and “Styles” to see which plugin loads assets where.
- Look at the waterfall in GTmetrix or WebPageTest. Plugin assets live under
/wp-content/plugins/plugin-name/, so the culprit is easy to spot. - On staging, deactivate plugins one at a time and re-test. It’s slow but conclusive.
Replace slow plugins with lightweight alternatives
- Delete anything you no longer use. Deactivated plugins don’t run, but they still clutter updates and security scans.
- Merge overlapping tools: one SEO plugin, one security plugin, one caching plugin, one forms plugin.
- Replace heavy “all-in-one” social, slider and popup plugins with lighter ones, or with native blocks.
- Unload assets per page with an asset manager (Perfmatters Script Manager, Asset CleanUp or similar). For example, there’s no reason for a contact form plugin’s CSS to load on every blog post.
Here is a small snippet that stops a contact form plugin’s assets from loading anywhere except the contact page. Change the handles and page slug to match your site (Query Monitor shows the exact handles):
<?php
// functions.php (child theme) or a code snippets plugin
add_action( 'wp_enqueue_scripts', function () {
if ( ! is_page( 'contact' ) ) {
wp_dequeue_style( 'contact-form-7' );
wp_dequeue_script( 'contact-form-7' );
}
}, 100 );
5. Install and Configure a WordPress Caching Plugin
Without caching, WordPress builds every page from scratch on every visit: it loads PHP, runs dozens or hundreds of database queries, assembles the HTML and sends it. Caching saves the finished result and serves it instantly to the next visitor. For most sites, it’s the single biggest improvement you can make in five minutes.
Page caching
Page caching stores the full HTML of each page. Popular WordPress cache plugins include WP Rocket (premium, easiest setup), LiteSpeed Cache (free, best on LiteSpeed servers), FlyingPress (premium, strong on Core Web Vitals), W3 Total Cache (free, very configurable) and WP Super Cache (free, simple). Pick one. If your host already provides server-level page caching (see tip 6), you may only need a plugin for the front-end optimisations.
Configuration essentials:
- Enable page caching for mobile visitors (separate mobile cache only if your theme serves different HTML to phones)
- Exclude cart, checkout, my-account and any personalised pages
- Turn on cache preloading so pages are warm before visitors arrive
- Set the cache to clear automatically when you publish or update content
Browser caching
Browser caching tells returning visitors’ browsers to keep static files (images, CSS, JS, fonts) locally instead of downloading them again. Most cache plugins add the right headers for you. On Apache or LiteSpeed you can add them yourself to .htaccess:
# Browser caching for static assets (Apache / LiteSpeed)
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/avif "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType font/woff2 "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/html "access plus 0 seconds"
</IfModule>
Long cache lifetimes are safe because WordPress adds version strings (?ver=6.9) to theme and plugin files, so updated files get a new URL.
Object caching
Object caching stores the results of database queries in memory, so WordPress doesn’t ask MySQL the same question again and again. It’s the key to speeding up the parts of a site that can’t be page-cached: the admin dashboard, WooCommerce carts and checkout, membership areas and forums. If Site Health shows “You should use a persistent object cache”, your host supports it and you should turn it on.
Redis is the most common choice. Our step-by-step guide to setting up Redis Object Cache in WordPress covers installation, wp-config.php settings and how to confirm it’s working. The short version, once Redis runs on your server:
// wp-config.php: add above "That's all, stop editing!"
define( 'WP_REDIS_HOST', '127.0.0.1' );
define( 'WP_REDIS_PORT', 6379 );
define( 'WP_REDIS_PREFIX', 'mysite_' ); // unique per site on shared servers
define( 'WP_CACHE_KEY_SALT', 'mysite_' );
Then install the Redis Object Cache plugin and click “Enable Object Cache”, or run wp redis enable.
6. Enable Server-Level Caching
Plugin-based caching still has to start PHP to check whether a cached file exists. Server-level caching serves the cached page directly from the web server, before PHP even wakes up. It’s faster, it uses far less CPU, and it handles traffic spikes much better. Most managed WordPress hosts include it; on a VPS you configure it yourself.
Nginx FastCGI cache
On an Nginx server, FastCGI cache stores PHP responses on disk (or in RAM) and serves them directly. A minimal WordPress-safe setup looks like this. Test on staging first, and adjust paths to your server:
# http { } block, e.g. /etc/nginx/nginx.conf
fastcgi_cache_path /var/cache/nginx/wp levels=1:2 keys_zone=WORDPRESS:100m
inactive=60m max_size=1g;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
# server { } block
set $skip_cache 0;
if ($request_method = POST) { set $skip_cache 1; }
if ($query_string != "") { set $skip_cache 1; }
if ($request_uri ~* "/wp-admin/|/wp-json/|/cart/|/checkout/|/my-account/|xmlrpc.php|wp-.*\.php") {
set $skip_cache 1;
}
if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in|woocommerce_items_in_cart") {
set $skip_cache 1;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_cache WORDPRESS;
fastcgi_cache_valid 200 301 302 60m;
fastcgi_cache_bypass $skip_cache;
fastcgi_no_cache $skip_cache;
add_header X-FastCGI-Cache $upstream_cache_status;
}
Pair it with a purge plugin (such as Nginx Helper) so the cache clears when you update content. Check the X-FastCGI-Cache response header: HIT means the cache is working.
LiteSpeed Cache
If your host runs LiteSpeed or OpenLiteSpeed, install the free LiteSpeed Cache plugin. It talks directly to the server’s built-in cache engine, so you get server-level page caching plus image optimisation, CSS/JS handling and object cache integration in one place. Confirm it works by checking for the x-litespeed-cache: hit header. Not sure which server stack to choose? Our Nginx vs LiteSpeed comparison covers real-world WordPress performance, caching and cost.
Apache caching configuration
Apache has no built-in WordPress-aware page cache that is as simple as LiteSpeed’s, so most Apache sites rely on a plugin’s disk cache (served via .htaccess rewrite rules, which skips most of PHP) plus a reverse proxy such as Varnish on bigger setups. At minimum, enable mod_expires (browser caching, tip 5), mod_deflate or mod_brotli (tip 17), and run PHP via PHP-FPM rather than mod_php.
7. Optimise Images Without Sacrificing Quality
Images are usually the heaviest part of a WordPress page, and the hero image is very often the LCP element. A single 3 MB photo uploaded straight from a phone can wreck mobile load times on its own. WordPress image optimization has three parts: compress, convert and resize.
Compress images before uploading
Lossy compression at a quality of roughly 75–85 removes data your eyes can’t see. Use a desktop or web tool before upload (Squoosh, ImageOptim, TinyPNG), or let a plugin do it on upload (ShortPixel, Imagify, Smush, EWWW Image Optimizer, or the image module in LiteSpeed Cache). Bulk-optimise the existing Media Library once, then let the plugin handle new uploads automatically.
Convert images to WebP or AVIF
WebP images in WordPress are typically 25–35% smaller than JPEGs at similar quality, and AVIF is often smaller still. WordPress has supported WebP uploads since version 5.8 and AVIF since 6.5, provided your server’s image library (Imagick or GD) supports them. Most optimisation plugins can create WebP/AVIF copies and serve them automatically to browsers that support them. For a full walkthrough, see our guide on using WebP images in WordPress.
Want WordPress itself to generate WebP versions of the JPEGs you upload? Add this filter:
<?php
// Generate WebP sub-sizes for uploaded JPEGs (WordPress 5.8+)
add_filter( 'image_editor_output_format', function ( $formats ) {
$formats['image/jpeg'] = 'image/webp';
return $formats;
} );
Resize images for their display dimensions
If your content area is 800 px wide, uploading a 4000 px photo wastes bandwidth even after compression. WordPress automatically creates several sizes and adds a srcset so browsers pick the right one, but only if you upload a sensible original. Set a maximum upload dimension (2048–2560 px is plenty for most sites; WordPress already scales anything above 2560 px), and choose the correct image size in the block settings rather than “Full Size”.
Quick win: in the Image block sidebar, change “Resolution” from Full Size to Large for in-content images. On image-heavy posts this alone can save megabytes.
8. Enable Lazy Loading for Images and Videos
Lazy loading WordPress images means the browser only downloads them when they’re about to scroll into view. A long blog post with 20 images loads the first one or two straight away and the rest on demand, which cuts initial page weight and speeds up the first render.
Native WordPress lazy loading
Since WordPress 5.5, core adds loading="lazy" to images automatically, and since 6.3 it skips the first large image and adds fetchpriority="high" to the likely LCP image. That means you often don’t need a separate lazy-loading plugin at all. If your cache plugin also offers JavaScript-based lazy loading, test whether it actually improves on core; doubling up rarely helps.
Lazy-load embedded videos and iframes
A single YouTube embed can pull in close to 1 MB of JavaScript before anyone presses play. The fix is a facade: show a lightweight thumbnail with a play button, and load the real player only on click. WP Rocket, Perfmatters, FlyingPress and LiteSpeed Cache all offer “replace YouTube iframe with preview image”. Core also adds loading="lazy" to iframes, which helps for embeds below the fold.
Avoid lazy-loading above-the-fold images
This is the most common lazy-loading mistake. If your hero image or logo is lazy-loaded, the browser waits until layout is done before even requesting it, which delays LCP. Exclude the first image or two in your optimisation plugin, and give the hero image high priority:
<!-- Hero image: load eagerly, with high priority and fixed dimensions -->
<img src="/wp-content/uploads/2026/11/hero-1600.webp"
width="1600" height="900"
alt="Fast WordPress store homepage"
fetchpriority="high" loading="eager" decoding="async">
9. Minify and Optimise CSS Files
CSS is render-blocking by default: the browser won’t paint anything until it has downloaded and parsed every stylesheet in the <head>. Themes and plugins often load hundreds of kilobytes of CSS, most of which a given page never uses.
Remove unnecessary CSS
“Remove unused CSS” features (WP Rocket, FlyingPress, Perfmatters, LiteSpeed’s UCSS) scan each page and generate a stylesheet containing only the rules that page uses. The savings can be dramatic on page-builder sites. Test carefully: menus, popups, sliders and anything styled only after a click can break if their CSS is removed. Add those selectors to the plugin’s safelist.
You can also stop WordPress loading block library styles on a classic theme that doesn’t use blocks on the front end:
<?php
// Only if your front end does NOT use Gutenberg blocks
add_action( 'wp_enqueue_scripts', function () {
wp_dequeue_style( 'wp-block-library' );
wp_dequeue_style( 'wp-block-library-theme' );
wp_dequeue_style( 'global-styles' );
wp_dequeue_style( 'classic-theme-styles' );
}, 100 );
Minify CSS files
Minification strips whitespace, comments and redundant characters. It’s safe, quick and usually saves 10–20% of file size. Almost every cache plugin has a “Minify CSS” checkbox. We compared the options in our roundup of the best minify WordPress plugins, including how to minify CSS and JavaScript in WordPress step by step.
Generate critical CSS and eliminate render-blocking resources
Critical CSS is the small set of styles needed to render the visible part of the page. It’s inlined in the <head>, and the full stylesheet loads without blocking. The result is a much faster first paint and LCP. Most premium optimisation plugins generate it automatically per page type. The pattern it produces looks like this:
<head>
<style>/* critical, above-the-fold CSS inlined here */</style>
<link rel="preload" href="/wp-content/themes/mytheme/style.min.css" as="style"
onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="/wp-content/themes/mytheme/style.min.css"></noscript>
</head>
Skip CSS “combining” on HTTP/2 and HTTP/3 servers. Combining files made sense in the HTTP/1.1 era, but today it often creates one large file that can’t be cached efficiently and breaks more easily.
10. Optimise JavaScript Delivery
JavaScript is the main cause of poor INP and a frequent cause of slow LCP. The browser has to download, parse and execute it, and while it’s executing, the page can’t respond to taps and clicks.
Minify JavaScript files
Like CSS, minifying JavaScript is low-risk and saves bytes. Enable it in your cache plugin, then click through your site to confirm nothing broke. Avoid combining JS files for the same reasons as CSS.
Defer and delay JavaScript execution
Defer downloads scripts in parallel and runs them after the HTML is parsed. Delay goes further: it doesn’t load the script at all until the visitor scrolls, taps or moves the mouse. Delay is ideal for chat widgets, analytics, social embeds and anything not needed in the first seconds.
Since WordPress 6.3, developers can register scripts with a loading strategy instead of hacking the script_loader_tag filter:
<?php
// Register a theme or plugin script as deferred and in the footer (WordPress 6.3+)
add_action( 'wp_enqueue_scripts', function () {
wp_enqueue_script(
'mytheme-main',
get_theme_file_uri( 'assets/js/main.min.js' ),
array(),
'1.4.0',
array(
'strategy' => 'defer',
'in_footer' => true,
)
);
} );
For third-party scripts you don’t control, use your optimisation plugin’s “Delay JavaScript execution” option and start with analytics, chat, heatmaps and social widgets.
Remove unused JavaScript
- Use the Coverage tab in Chrome DevTools (More tools → Coverage) to see how much of each script actually runs on a page.
- Unload plugin scripts on pages where they aren’t used (tip 4).
- Drop jQuery-dependent sliders and animation libraries in favour of native blocks and CSS.
- Disable features you don’t use, such as WordPress emoji scripts and oEmbed discovery:
<?php
// Remove emoji scripts and styles (saves one request and some inline JS)
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
// Remove oEmbed discovery links and the wp-embed script
remove_action( 'wp_head', 'wp_oembed_add_discovery_links' );
add_action( 'wp_footer', function () {
wp_dequeue_script( 'wp-embed' );
} );
11. Reduce Third-Party Scripts and External Requests
Third-party scripts are code you don’t control, loaded from servers you don’t control. Each one adds DNS lookups, connections and JavaScript work, and many of them load even more scripts. On a lot of business sites, tag managers, chat, ads and tracking pixels together weigh more than WordPress itself.
Limit tracking and analytics scripts
- Audit everything in Google Tag Manager. Remove pixels for campaigns that ended and tools nobody checks.
- Consider lightweight, privacy-friendly analytics if you don’t need the full Google Analytics feature set.
- Load heatmaps and session recording only on the pages you’re studying, and only for a sample of visitors.
- Delay marketing pixels until the first interaction (tip 10).
Optimise advertising and social media embeds
- Reserve fixed space for ad slots with a minimum height so they don’t shift the layout (CLS).
- Replace live social feeds and “embedded posts” with static images or screenshots linking to the original.
- Use facades for YouTube, Vimeo, maps and chat widgets: a static placeholder until the visitor clicks.
Remove unnecessary external resources
For external resources you must keep, help the browser connect early with resource hints. Add them in <head> (or via your optimisation plugin’s “Preconnect” setting), but only for the two or three most important origins; too many hints compete with each other:
<link rel="preconnect" href="https://cdn.example-checkout.com" crossorigin>
<link rel="dns-prefetch" href="https://www.googletagmanager.com">
12. Host Google Fonts Locally
Loading Google Fonts from Google’s servers means extra DNS lookups and connections to two different domains before text can render. Since browsers no longer share caches across websites, there’s no speed benefit to the shared CDN either. Hosting fonts on your own domain is faster, and it also avoids the GDPR issues that come with sending visitors’ IP addresses to Google.
Download and host Google Fonts on your server
Many modern themes have a “load Google Fonts locally” option. Otherwise, plugins like OMGF or Perfmatters’ local fonts feature handle it automatically. For the manual method and a GDPR-compliant setup, follow our guide to hosting Google Fonts locally in WordPress.
Use WOFF2 font formats
WOFF2 is the most compressed web font format and is supported by every modern browser. You don’t need TTF, EOT or WOFF fallbacks any more. Keep the number of fonts low: one family with two or three weights (or a single variable font) is usually enough. Subset fonts to the character sets you actually need, such as Latin only.
@font-face {
font-family: "Inter";
src: url("/wp-content/themes/mytheme/fonts/inter-var-latin.woff2") format("woff2");
font-weight: 100 900;
font-style: normal;
font-display: swap; /* show fallback text immediately */
}
Preload important fonts
Preload only the one or two font files used above the fold (usually the body text and heading weights). This tells the browser to fetch them early instead of discovering them only after the CSS is parsed:
<link rel="preload" href="/wp-content/themes/mytheme/fonts/inter-var-latin.woff2"
as="font" type="font/woff2" crossorigin>
Matching your fallback font’s size to the web font (with the size-adjust descriptor, or a theme that does this for you) also reduces the layout shift when the real font swaps in.
13. Optimise Your WordPress Database
Every uncached page load queries the database. Over the years it fills with post revisions, auto-drafts, trashed items, spam comments, expired transients and leftover data from deleted plugins. A bloated database, and especially a bloated wp_options table, slows down every uncached request and the admin area.
Clean post revisions and auto-drafts
Limit future revisions in wp-config.php:
// wp-config.php
define( 'WP_POST_REVISIONS', 5 ); // keep the last 5 revisions per post
define( 'AUTOSAVE_INTERVAL', 120 ); // autosave every 2 minutes instead of 1
define( 'EMPTY_TRASH_DAYS', 7 ); // empty trash weekly
Remove expired transients and spam comments
Always take a database backup first. Then, with WP-CLI:
# Back up first
wp db export backup-before-cleanup.sql
# Delete expired transients
wp transient delete --expired
# Delete spam and trashed comments
wp comment delete $(wp comment list --status=spam --format=ids) --force
wp comment delete $(wp comment list --status=trash --format=ids) --force
# Delete old revisions (keeps posts, removes revision copies)
wp post delete $(wp post list --post_type=revision --format=ids) --force
# Optimise tables
wp db optimize
If a list is empty, WP-CLI will print a harmless error for that line; that’s fine. Prefer a plugin? WP-Optimize and Advanced Database Cleaner do the same thing from the dashboard and can run on a schedule. Whichever you use, schedule a backup before every cleanup run.
Optimise database tables and autoloaded options
The hidden database problem most guides skip is autoloaded options. WordPress loads every autoloaded row from wp_options on every request. Plugins that store large settings or logs there can add hundreds of kilobytes to each page load. Site Health flags this when autoloaded data gets too big. To find the largest offenders (change the wp_ prefix if yours differs):
SELECT option_name, ROUND(LENGTH(option_value) / 1024, 1) AS size_kb
FROM wp_options
WHERE autoload IN ('yes', 'on', 'auto', 'auto-on')
ORDER BY LENGTH(option_value) DESC
LIMIT 20;
Leftovers from plugins you’ve deleted can be removed. For plugins you still use, check whether the plugin has a setting to stop storing logs in options. Also make sure your tables use the InnoDB engine, not the older MyISAM.
14. Use a Content Delivery Network (CDN)
A CDN stores copies of your files on servers around the world and delivers them from the location nearest each visitor. Physics matters: a visitor in Sydney requesting files from a server in London waits for every round trip across the planet. A CDN removes most of that distance.
How a CDN improves WordPress loading speed
- Lower latency for images, CSS, JS and fonts, because they come from nearby.
- Less load on your origin server, so it responds faster to the requests that do reach it.
- Modern protocols (HTTP/3, Brotli, TLS 1.3) even if your host is slow to adopt them.
- Full-page edge caching on some CDNs, which serves whole HTML pages from the edge and slashes TTFB worldwide.
Configure Cloudflare CDN
- Create a free Cloudflare account and add your domain.
- Change your domain’s nameservers at your registrar to the two Cloudflare provides.
- Set SSL/TLS to Full (strict) if your server has a valid certificate.
- Under Speed → Optimization, enable Brotli, HTTP/3 and Early Hints.
- Turn off Cloudflare’s own minification options if your cache plugin already minifies; don’t do the same job twice.
- For full-page edge caching, use Automatic Platform Optimization (APO) for WordPress or a cache rule that bypasses cache for logged-in and WooCommerce cookies.
- Install the Cloudflare plugin (or your cache plugin’s Cloudflare add-on) so the CDN purges when you update content.
Serve static assets from CDN locations
If you use a “pull zone” CDN such as BunnyCDN, KeyCDN or Amazon CloudFront instead of a proxy like Cloudflare, enter the CDN URL in your cache plugin’s CDN settings. The plugin rewrites asset URLs from yoursite.com/wp-content/... to cdn.yoursite.com/wp-content/.... Point a CNAME record at the CDN so assets stay on your own brand domain.
15. Reduce HTTP Requests and Page Size
Each file a page loads has overhead. HTTP/2 and HTTP/3 make many small requests much cheaper than they used to be, but total page weight and the number of critical requests still matter, especially on slow mobile connections.
Combine and optimise website assets where appropriate
- Use inline SVG icons (or a single SVG sprite) instead of a full icon font. Loading an entire icon library to show six icons is a classic waste.
- Inline very small CSS that’s needed on every page.
- Don’t force-combine everything on HTTP/2+; combine only when your tests show a clear gain.
Reduce unnecessary requests
- Disable pingbacks and trackbacks (Settings → Discussion) and XML-RPC if you don’t use the mobile app or Jetpack.
- Remove unused widgets from sidebars and footers; each may load its own assets.
- Paginate comments on popular posts (Settings → Discussion → “Break comments into pages”) and consider loading comments on click for very long threads.
- Avoid sliders above the fold. A static hero image is faster, better for LCP and usually converts better too.
Limit large page elements
A huge DOM (thousands of HTML elements) slows down style calculation, layout and interactions, which hurts INP. Page builders are the usual cause: nested sections, columns, inner columns and wrappers. Flatten layouts, use container-based builders (flexbox containers instead of section/column nesting), and split very long pages. Self-host short background videos as compressed MP4/WebM with a poster image, or replace them with an image on mobile.
Bonus for 2027: WordPress 6.8 added speculative loading to core. It uses the browser’s Speculation Rules API to start loading a page when a visitor shows intent to click a link, so the next navigation feels almost instant. It’s on by default with conservative settings; caching plugins and the Speculative Loading feature of the Performance Lab plugin let you tune it.
16. Optimise the WordPress Heartbeat API
The Heartbeat API keeps the browser and server in sync: it powers autosave, post locking (“another user is editing”) and real-time notifications. It does this by sending an AJAX request to admin-ajax.php every 15–60 seconds from each open browser tab. On shared hosting, several editors with dashboard tabs left open can eat real CPU.
Reduce unnecessary background requests
Heartbeat is rarely needed on the public front end. Stop it loading there while keeping it in the editor, where autosave matters:
<?php
// Disable Heartbeat on the front end only (keeps autosave in the editor)
add_action( 'wp_enqueue_scripts', function () {
wp_deregister_script( 'heartbeat' );
}, 1 );
Test this if you use a plugin that relies on Heartbeat on the front end (some live chat, membership or WooCommerce extensions do).
Configure Heartbeat API intervals
In the admin, slow it down rather than switching it off:
<?php
// Send a Heartbeat every 60 seconds instead of every 15 to 60
add_filter( 'heartbeat_settings', function ( $settings ) {
$settings['interval'] = 60; // allowed range: 15 to 120 seconds
return $settings;
} );
Prevent excessive server resource usage
Plugins such as Heartbeat Control, Perfmatters and WP Rocket let you set different behaviour for the dashboard, the editor and the front end with no code. Also review WP-Cron: by default it runs on visitor page loads. On busy sites, disable it and run a real server cron instead:
// wp-config.php
define( 'DISABLE_WP_CRON', true );
# Server crontab: run due events every 5 minutes
*/5 * * * * cd /var/www/html && wp cron event run --due-now > /dev/null 2>&1
17. Enable GZIP or Brotli Compression
How text compression improves loading performance
HTML, CSS, JavaScript, SVG and JSON are plain text, and text compresses extremely well. GZIP typically shrinks these files by 70% or more. Brotli, developed by Google, compresses text files further than GZIP at similar speed and is supported by all modern browsers. Images like JPEG, WebP and AVIF are already compressed, so don’t compress them again.
Check whether compression is on: open DevTools → Network, click your HTML document and look for content-encoding: br (Brotli) or gzip in the response headers.
Configure compression with Apache, Nginx or LiteSpeed
Apache (in .htaccess). Back up the file before editing it:
<IfModule mod_brotli.c>
AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/css text/xml
AddOutputFilterByType BROTLI_COMPRESS application/javascript application/json image/svg+xml
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml
AddOutputFilterByType DEFLATE application/javascript application/json image/svg+xml
</IfModule>
Nginx (inside the http block; Brotli requires the ngx_brotli module):
gzip on;
gzip_comp_level 5;
gzip_min_length 256;
gzip_vary on;
gzip_types text/plain text/css application/javascript application/json image/svg+xml application/xml;
brotli on;
brotli_comp_level 5;
brotli_types text/plain text/css application/javascript application/json image/svg+xml application/xml;
LiteSpeed enables GZIP and Brotli at the server level by default on most hosts; confirm in your hosting panel or with the response header check above. If you use Cloudflare, it compresses responses to visitors with Brotli regardless of your server’s setting.
18. Optimise Core Web Vitals for Better Performance
Tips 1 to 17 improve most metrics on their own. This final tip targets each Core Web Vital directly, because a site can be “fast” overall and still fail one of them.
Improve Largest Contentful Paint (LCP)
- Find the LCP element: PageSpeed Insights names it in the diagnostics (“Largest Contentful Paint element”). It’s usually the hero image, a featured image or a large heading.
- If it’s an image: serve it in WebP/AVIF at the right size, don’t lazy-load it, add
fetchpriority="high", and preload it if it’s a CSS background image. - If it’s text: make sure the font doesn’t block rendering (
font-display: swap, preload, local hosting). - Cut TTFB with page caching and a CDN; LCP can never be faster than TTFB.
- Remove render-blocking CSS/JS in the
<head>with critical CSS and deferred scripts.
<!-- Preload a hero image used as a CSS background -->
<link rel="preload" as="image" href="/wp-content/uploads/2026/11/hero-1600.avif"
type="image/avif" fetchpriority="high">
Reduce Interaction to Next Paint (INP)
INP measures the delay between a visitor’s interaction and the next screen update, across the whole visit. It replaced First Input Delay in 2024 and is the metric WordPress sites fail most when they run page builders and lots of scripts.
- Ship less JavaScript: remove, unload or delay what isn’t needed (tips 4, 10, 11).
- Delay third-party scripts until the first interaction, and keep the “first interaction” itself light.
- Reduce DOM size: fewer nested builder containers means faster style and layout work after every click.
- Watch heavy event handlers: mega menus, product filters, AJAX add-to-cart and sticky headers that run on scroll. Developers should break long tasks into smaller chunks so the browser can paint between them.
- Test on a real mid-range Android phone, not just a fast laptop. Most INP problems are invisible on desktop.
Fix Cumulative Layout Shift (CLS)
- Always set width and height on images and videos (WordPress does this for images inserted with the editor; check custom theme templates).
- Reserve space for ads, embeds, cookie banners and “notice bars” with a fixed min-height.
- Don’t inject content above existing content after load, such as late-loading promo banners at the top of the page.
- Stabilise fonts with preloading,
font-display: swapand a size-matched fallback font. - Use CSS transforms for animations rather than changing top, left, width or height.
Running a WooCommerce shop? Product and checkout pages need extra care (cart fragments, product galleries, filters). Our step-by-step guide on how to speed up a WooCommerce store covers those store-specific fixes.
How to Measure WordPress Page Speed After Optimisation
Optimisation isn’t finished until you’ve measured it. Use the same pages, tools and settings you used for the baseline, or your comparison is meaningless.
Run another Google PageSpeed Insights test
Clear every cache layer first (plugin, server, CDN), then load each page once to warm the cache. Run PageSpeed Insights three times on mobile and take the median. Compare the lab metrics (LCP, TBT, CLS, Speed Index) rather than only the headline score.
Compare before-and-after performance scores
Keep a simple log. Here is an example of what a realistic improvement looks like on a small business site after the foundation tips (hosting, PHP, caching, images and CDN):
| Metric (mobile, lab) | Before | After | Target |
|---|---|---|---|
| Performance score | 52 | 91 | 90+ |
| Time to First Byte | 1.9 s | 0.3 s | < 0.8 s |
| First Contentful Paint | 2.9 s | 1.1 s | < 1.8 s |
| Largest Contentful Paint | 5.8 s | 2.0 s | < 2.5 s |
| Total Blocking Time | 620 ms | 140 ms | < 200 ms |
| Cumulative Layout Shift | 0.18 | 0.02 | < 0.1 |
| Page weight | 4.3 MB | 1.1 MB | < 1.5 MB |
Illustrative example. Your starting point and results will depend on your hosting, theme and content.
Monitor Core Web Vitals in Google Search Console
Lab tests show potential; field data shows reality. In Google Search Console, open Experience → Core Web Vitals. It groups your URLs into Good, Needs improvement and Poor for mobile and desktop, using real Chrome user data. Because the data covers a rolling 28-day window, improvements take about four weeks to show fully. After fixing an issue, click “Validate fix” so Google tracks it.
Ongoing habits that keep a site fast:
- Re-test your key pages monthly and after every major theme, plugin or design change
- Test new plugins on staging and compare speed before and after
- Check Search Console’s Core Web Vitals report monthly
- Review third-party scripts in Tag Manager every quarter
- Clean the database and check autoloaded options every quarter
Common WordPress Page Speed Optimisation Mistakes to Avoid
Installing multiple caching plugins
Two page caches fight each other: they write conflicting .htaccess rules, serve stale pages, and can cause redirect loops or blank pages. Use one caching plugin. If your host has server caching, use the host’s companion plugin or a front-end optimisation plugin that has page caching switched off.
Over-optimising CSS and JavaScript
Turning on every option at once (combine, remove unused CSS, delay all JS, defer jQuery) is the fastest way to break menus, sliders, forms and checkout. Enable one feature at a time, test key pages and interactions, and keep a list of exclusions. A 90 score with a working checkout beats a 99 score with a broken one.
Using too many optimisation plugins
A cache plugin, an image plugin, a minify plugin, a lazy-load plugin, a database plugin, a font plugin and a script manager often duplicate each other’s features, and the overlap causes conflicts. Choose a main performance plugin that covers most needs, then add only what it doesn’t do (typically image optimisation and, sometimes, a script manager).
Ignoring mobile page speed
Many site owners test on a fast desktop connection, see a green score and stop. But Google uses the mobile version of your pages, and real visitors on mid-range phones over 4G experience something very different. Always look at the mobile tab, test on a real phone, and treat mobile field data in Search Console as the score that counts.
Chasing the score instead of the experience
The PageSpeed score is a lab simulation. A site that loads its main content in under two seconds and responds instantly to taps is doing well, even if the score shows 86 instead of 98. Focus on passing Core Web Vitals in field data and on how the site feels.
When to Hire a WordPress Page Speed Optimization Service
Most sites can reach good scores with the tips above. A professional WordPress page speed optimization service makes sense when:
- You’ve applied the basics and still fail INP or LCP in field data.
- Your site is a large WooCommerce, membership or LMS site where logged-in performance matters.
- A custom theme or heavy page-builder layout needs code-level fixes.
- Server configuration (Nginx, PHP-FPM, MySQL, Redis) is outside your comfort zone.
- Downtime or a broken checkout would cost more than the service.
Before you hire, ask for a before-and-after report on field data (not just a lab score), a list of exactly what will change, how they’ll test on staging, and what happens if something breaks after launch. Be wary of anyone guaranteeing a “100/100 score”, which often means aggressive tricks that hurt real users.
Frequently Asked Questions (FAQs)
1. What is a good WordPress page speed score?
In PageSpeed Insights, 90–100 is “good”, 50–89 “needs improvement” and below 50 “poor”. On mobile, a score of 80+ with all three Core Web Vitals passing in field data is a strong result for a real-world WordPress site. More important than the score: LCP under 2.5 seconds, INP under 200 ms and CLS under 0.1 for at least 75% of real visits.
2. How can I improve WordPress page speed without a plugin?
You can do a lot without plugins: move to faster hosting with server-level caching, upgrade to PHP 8.3+, use a lightweight theme, resize and compress images before upload, enable browser caching and Brotli/GZIP in .htaccess or Nginx, put Cloudflare in front of your site, host fonts locally, limit revisions in wp-config.php, and add the code snippets in this guide to your child theme. Plugins simply make the front-end parts (critical CSS, delayed JS) easier.
3. Which is the best WordPress speed optimisation plugin?
It depends on your server. On LiteSpeed hosting, LiteSpeed Cache (free) is usually the best choice. On other hosts, WP Rocket and FlyingPress are the easiest premium all-rounders, and Perfmatters is excellent for script management alongside them. Free options such as W3 Total Cache or WP Super Cache work well for simpler sites. Whichever you pick, use only one page caching plugin.
4. Does hosting affect WordPress page speed?
Yes, more than any other single factor. Hosting determines server response time (TTFB), how many visitors you can serve at once, which PHP version and caching layers are available, and how fast uncached pages like carts and dashboards load. Moving from crowded budget shared hosting to a good managed or cloud host often cuts load times in half before any other change.
5. How can I improve WordPress mobile page speed?
Focus on the things that hurt phones most: oversized images (serve WebP/AVIF at mobile sizes via srcset), too much JavaScript (delay third-party scripts, reduce page-builder bloat), render-blocking CSS (critical CSS), and web fonts. Avoid sliders and autoplay video above the fold, reserve space for ads and banners, and test on a real mid-range Android phone over 4G, not just on desktop.
6. Does WordPress page speed affect SEO?
Yes. Core Web Vitals are part of Google’s page experience signals, and the mobile version of your site is what Google evaluates. Speed is rarely the deciding factor on its own, since relevance and content quality matter more, but it can tip close rankings, and it strongly affects bounce rate, engagement and conversions, which are what rankings are ultimately for.
7. How long does it take to see speed improvements in Google Search Console?
Lab tools show changes immediately. Search Console’s Core Web Vitals report uses a rolling 28-day window of real-user data, so expect around four weeks before the full improvement appears. Sites with little traffic may not have enough data to show a report at all.
Conclusion: Your WordPress Page Speed Checklist
Fast WordPress sites aren’t built with one magic plugin. They’re built in layers: a solid server, modern PHP, a lean theme, smart caching, light images, careful CSS and JavaScript, and a CDN to bring it all closer to visitors. Start with the foundation, measure after each change, and stop when your real users get a fast experience, not when a score hits 100.
Final checklist for improving WordPress website performance
Foundation
- Baseline tested on mobile (home, post, money page)
- Quality hosting with server caching and HTTP/3
- PHP 8.3+ with OPcache
- Lightweight theme, page builder kept lean
- Unused plugins deleted; plugin assets unloaded where unused
- One page caching solution, plus Redis object cache
Front end
- Images resized, compressed and served as WebP/AVIF
- Lazy loading on, but not for the hero image
- CSS minified, critical CSS generated, unused CSS removed
- JavaScript minified, deferred and delayed
- Third-party scripts audited and delayed
- Fonts hosted locally as WOFF2 and preloaded
Fine-tuning
- Database cleaned; autoloaded options checked
- CDN active (Cloudflare or pull-zone)
- Heartbeat limited; real cron instead of WP-Cron
- Brotli or GZIP compression confirmed
- Width/height on all media; space reserved for ads
Monitoring
- Re-tested with the same tools and pages
- Before/after log kept
- Search Console Core Web Vitals checked monthly
- New plugins tested on staging first
- Quarterly script and database review
Bookmark this guide, work through one section per day, and you’ll have a noticeably faster WordPress site within a week, one that keeps visitors on the page, helps your rankings, and makes every marketing dollar work harder.

