How to Improve Website Speed
Speed work is most effective when you measure first and fix the biggest problems, rather than installing every optimization plugin you can find. This tutorial shows you what to measure, what the results mean and what to fix.
On this page
- Step 1: Measure your current speed
- Step 2: Work out what's slowing you down
- Step 3: Fix your images
- Step 4: Turn on caching
- Step 5: Trim plugins, themes and the database
- Step 6: Limit third-party scripts
- Step 7: Go easy on web fonts
- Step 8: Use a CDN if your audience is spread out
- Step 9: Check PHP and your hosting
- Step 10: Measure again
- A quick plan by problem
- Frequently asked questions
- Sources
A slow site loses visitors before they've read a word, and on a phone the problem is usually worse. The good news is that most slow small business sites have the same handful of causes. Measure first, so you know which ones apply to you, then fix them in order of impact.
Step 1: Measure your current speed
Run your homepage and your most important pages through PageSpeed Insights. It shows two kinds of results:
- Field data: how real Chrome users experienced the page over the previous 28-day period, from the Chrome User Experience Report. New or low-traffic pages may not have enough data.
- Lab data: a simulated test by Lighthouse, which produces the performance score. A score of 90 or above is considered good. Lab results are useful for finding problems, but may miss real-world issues.
Focus on the three Core Web Vitals. PageSpeed Insights rates each one using these thresholds:
| Metric | What it measures | Good | Poor |
|---|---|---|---|
| Largest Contentful Paint (LCP) | Loading: how long the main content takes to appear | 2.5 seconds or less | Over 4 seconds |
| Interaction to Next Paint (INP) | Responsiveness: how quickly the page reacts when someone taps or clicks | 200 milliseconds or less | Over 500 milliseconds |
| Cumulative Layout Shift (CLS) | Visual stability: how much the layout jumps while loading | 0.1 or less | Over 0.25 |
A page passes when the 75th percentile of page views is "good" for all three metrics.

Step 2: Work out what's slowing you down
The metric that fails tells you where to look:
- Slow LCP: usually a large hero image, a slow server response, or CSS and JavaScript that block the page from displaying.
- Slow INP: usually too much JavaScript, often from page builders, sliders, chat widgets or tracking scripts.
- High CLS: usually images or embeds without set dimensions, ads or banners that load late, or web fonts that swap in and resize the text.
The "Diagnostics" and "Opportunities" sections of the PageSpeed Insights report list the specific files and elements involved.
Step 3: Fix your images
Images are often the biggest files on a page, so this is usually the quickest win.
- Resize images to the largest size they're displayed at, rather than uploading photos straight from a camera or phone.
- Compress them, and use a modern format such as WebP or AVIF. WordPress's own optimization guide suggests WebP because the files are smaller.
- Lazy-load images below the fold, so they load only when needed. Since version 5.5, WordPress makes images wait to load until they're about to scroll into view.
- Don't lazy-load the main image at the top of the page, because that delays your LCP.
- Set a width and height on images and embeds, so the browser reserves space and the layout doesn't jump.
Step 4: Turn on caching
Caching stores work that has already been done, so it doesn't need to be repeated for every visitor. WordPress's performance documentation describes several layers:
- Page caching saves pages as static files, which greatly reduces the work the server does. Use your host's server-level caching if it has it; otherwise use one caching plugin. Don't run two page caching plugins at once.
- Object caching keeps the results of slow database queries in memory with tools such as Redis or Memcached. It needs support from your host.
- Browser caching tells visitors' browsers to keep files such as images, CSS and JavaScript, so returning visitors download less.
- Opcode caching (OPcache) keeps compiled PHP code in memory. Most hosts enable it; ask yours if you're unsure.
Step 5: Trim plugins, themes and the database
WordPress's optimization guide calls deactivating and deleting unnecessary plugins "a significant way to improve performance". Sliders, animation libraries and heavy page builders add a lot of code to every page. A lightweight, well-coded theme helps too.
Over time, the database collects post revisions, spam comments and settings left behind by old plugins. Too many automatically loaded settings can slow every page, so tidy up occasionally, after taking a backup.
Step 6: Limit third-party scripts
Chat widgets, social media feeds, video embeds, ad scripts and multiple analytics or tracking tools each add requests and JavaScript. List everything that loads on your pages, and remove what you don't actively use. For the rest, check whether it can load later or only on the pages that need it.
Step 7: Go easy on web fonts
Each font family and weight is another file to download. Use one or two families and only the weights you need, and consider hosting the font files on your own site, which also avoids a request to a third-party font service.
Step 8: Use a CDN if your audience is spread out
A content delivery network stores copies of your files in locations around the world and serves them from the one nearest each visitor. WordPress's documentation notes that a CDN can greatly reduce the load on your server, and it works best alongside page caching. Many hosts include one.
Step 9: Check PHP and your hosting
- Keep PHP up to date. Newer versions usually bring performance improvements, as well as security fixes. WordPress.org recommends PHP 8.3 or greater; you can usually change the version in your hosting control panel.
- Look at your hosting if the server is slow even with caching on. On shared hosting you have less control; plans with more CPU and memory, a VPS or managed WordPress hosting give more headroom. Our guide to shared vs managed WordPress hosting explains the trade-offs.
Step 10: Measure again
Change one thing at a time and re-test, so you know what helped. Lab scores vary a little from run to run, so look for consistent improvements rather than single results. Field data covers the previous 28-day period, so it takes a few weeks to fully reflect a change.
A quick plan by problem
| If this fails | Try these first |
|---|---|
| LCP | Compress and resize the main image, don't lazy-load it, turn on page caching, check server response time |
| INP | Remove unused plugins and third-party scripts, replace heavy sliders or page-builder elements |
| CLS | Set image and embed dimensions, reserve space for banners and ads, limit font swaps |
| Everything is slow | Check caching and PHP version, then consider whether your hosting plan has enough resources |
Frequently asked questions
What's a good PageSpeed Insights score?
Google treats a performance score of 90 or above as good. The Core Web Vitals results matter more than the score itself, because they reflect what real visitors experience.
Do I need a perfect score of 100?
No. Aim to pass the Core Web Vitals and fix the problems PageSpeed Insights highlights. Chasing the last few points often costs more effort than it's worth.
Why does my score change every time I test?
Lab tests run in a simulated environment and vary slightly between runs. Test a few times and compare averages, and rely on field data where it's available.
Does hosting affect website speed?
Yes. Hosting determines how quickly your server responds and how much traffic it can handle. Caching and lighter pages help on any host, but they can't fully make up for an overloaded server.
For specific caching, image and performance plugins, see best WordPress tools for beginners.
Sources
- Google for Developers: About PageSpeed Insights (field and lab data, performance score and Core Web Vitals thresholds; updated October 21, 2024)
- web.dev: How the Core Web Vitals metrics thresholds were defined (75th percentile assessment)
- WordPress Advanced Administration Handbook: Optimization (images, plugins, database, CDN, hosting and PHP)
- WordPress Advanced Administration Handbook: Cache (page, object, browser and opcode caching)
- WordPress.org: Version 5.5 release notes (lazy-loading images)
- WordPress.org: Requirements (recommended PHP version)
Checked .