THTheme

The ultimate guide to boost WordPress speed and performance

To speed up WordPress, measure first with PageSpeed Insights, then fix things in this order: hosting and PHP 8.3 or newer, a page cache, image size and format, and plugin and script bloat. Aim for Google's Core Web Vitals targets: Largest Contentful Paint within 2.5 seconds, Interaction to Next Paint of 200 milliseconds or less, and Cumulative Layout Shift of 0.1 or less.

Updated · By THTheme Editorial Team

Key facts

Core Web Vitals and what usually hurts them on WordPress
MetricGoodCommon WordPress causes
Largest Contentful Paint (LCP)2.5 seconds or lessSlow server response, oversized hero image, render-blocking CSS
Interaction to Next Paint (INP)200 milliseconds or lessHeavy JavaScript from sliders, chat widgets and builder add-ons
Cumulative Layout Shift (CLS)0.1 or lessImages without dimensions, late banners, font swaps

Free tools used in this guide

1. PageSpeed Insights

Google's free test. Shows real-visitor Core Web Vitals when your site has enough traffic, plus a lab test with specific fixes.

Best for: Measuring before and after each change

2. Performance Lab

From the WordPress Performance Team. Installs feature plugins such as Modern Image Formats, Image Prioritizer and Speculative Loading, some of which later move into WordPress itself, as Speculative Loading did in 6.8.

Best for: Trying core performance features early

3. Query Monitor

A developer panel that flags slow, duplicate and failing database queries and shows which plugin or theme caused them.

Best for: Finding the plugin that slows the site

Measure before you change anything

Test three pages, not just the home page: the home page, a typical post or service page, and your heaviest page (often a product or a page with a slider). Use mobile results, because that is where most sites fail. In PageSpeed Insights, the field data at the top is what real visitors experienced; the lab score below is a single simulated run that changes from test to test. Write the numbers down so you can tell which fix actually helped.

Fix the server first: hosting, PHP and caching

Images: the biggest easy win

Cut plugins, scripts and database weight

Count what loads on the front end, not how many plugins you have. One chat widget or slider can cost more than ten small plugins. Use Query Monitor to see slow queries, then remove or replace the worst offenders. Limit third-party scripts such as chat, heatmaps and extra ad pixels to the pages that need them.

Then trim the database. Cap stored revisions with define( 'WP_POST_REVISIONS', 3 ); in wp-config.php, and clean old revisions, drafts and spam with a tool such as WP-Optimize. Make a backup first.

A one-hour speed checklist

  1. Record PageSpeed Insights results for three pages on mobile.
  2. Update WordPress, the theme and plugins, and switch to PHP 8.3 or newer on staging first.
  3. Delete plugins you do not use and remove front-end scripts you do not need.
  4. Install one page cache and set it up. Exclude cart and checkout on stores.
  5. Compress and convert images, and make sure the top image is not lazy-loaded.
  6. Add a CDN if your visitors are far from your server.
  7. Clean the database and cap revisions.
  8. Test the same three pages again and keep only the changes that helped.

Builders add weight too. If you use Elementor, our Elementor workflow tips include Element Caching for static widgets.

FAQ

What is a good page speed for WordPress?

Use Core Web Vitals rather than a single score: Largest Contentful Paint within 2.5 seconds, Interaction to Next Paint of 200 milliseconds or less and Cumulative Layout Shift of 0.1 or less.

Why is my WordPress site slow?

The usual causes are slow hosting, no page cache, oversized images and heavy plugins or third-party scripts. Measure first so you fix the real cause.

Does the number of plugins slow WordPress down?

What matters is what each plugin loads and runs. A few heavy plugins slow a site more than many light ones.

Which PHP version should WordPress use?

WordPress.org recommends PHP 8.3 or greater. Test the switch on a staging copy first in case an old plugin is not compatible.

Sources