WordPress Website Speed Optimization, Step by Step

Test your WordPress site with PageSpeed Insights, learn what LCP, INP and CLS mean, then improve images, caching, plugins and fonts on mobile.

Published 1 December 2026

For WordPress website speed optimization, test a page in Google PageSpeed Insights before you change anything. Use the Mobile results, and write down LCP, INP and CLS if they are shown. Then fix what the report finds, such as a large image or slow code. Make one change at a time and test the same page again.

Save your first results

Open PageSpeed Insights and enter the full address of a page that matters, such as a product or service page. Test the home page separately. Choose Mobile, then copy this record:

Page: ____________________   Date: __________
Real visitors: LCP ____ s   INP ____ ms   CLS ____
Lab scores: ____ / ____ / ____   Middle score: ____
Change made: ____________________
New lab scores: ____ / ____ / ____   Middle score: ____

Scores can change between tests, so run three and write down the middle one. With made-up scores of 62, 70 and 66, that is 66.

The report can show two kinds of results:

  • Real visitors: results from Chrome users over the last 28 days. They may cover this page or the whole site, so check the label. With too few visits, you may not see any.
  • Lab test: a test that copies a phone on a mobile network. Use it to find problems and compare your changes. Its performance score is good from 90, needs work from 50 to 89, and is poor below 50.

The lab test can show a change right away. Real visitor results take longer, because they still include older visits.

Understand the three Core Web Vitals

  • LCP, or Largest Contentful Paint: when the biggest image or block of text appears. Good is 2.5 seconds or less. Poor is over 4 seconds.
  • INP, or Interaction to Next Paint: how quickly the page responds when someone uses it. Good is 200 ms or less. Poor is over 500 ms.
  • CLS, or Cumulative Layout Shift: how much things move around on the page. Good is 0.1 or less. Poor is over 0.25.

A result between good and poor needs work. Google looks at the 75th percentile, so at least 75 out of 100 visits should be good.

If LCP is poor, check the main image and how quickly the server responds. If INP is poor, look for heavy scripts. If CLS is poor, look for images without a set size, late banners and font changes.

Make large images smaller

Backup first: save your files and database before changing many images. Keep the original photos too, because some tools replace them.

  1. Resize photos for the space they use. Do not upload a huge phone photo for a small product picture. Keep it sharp enough to show fabric and colour.
  2. Try WebP, then check on a phone that the product still looks right.
  3. Do not lazy-load the main image if it is the LCP item. Images lower on the page can load later.
  4. Give each image a width and height, or save its space in another way, so the page does not jump.

Example with made-up numbers: six 900 KB images use 5,400 KB. After resizing, each is 120 KB, so all six use 720 KB. That saves 4,680 KB. At a steady 5 megabits per second, the images alone would take about 8.6 seconds before and 1.2 seconds after. Here is the sum, using 1 KB = 1,000 bytes:

Before: 5,400 x 8 / 5,000 = 8.64 seconds
After:    720 x 8 / 5,000 = 1.152 seconds

Real pages have other work to do, so times will differ. Smaller images also save your customers' mobile data.

Set up one page cache

A page cache saves a ready-made copy of a page, so the server does not need to build it for each visitor. Ask if your host already has one, because two can cause problems.

Backup first: save your files and database before you install or change a cache tool. Test it on staging first if you can.

On a WooCommerce store, do not cache the Cart, Checkout or My Account pages. Test this with two phones:

  1. Without logging in, add a product on the first phone and open the cart. The cart on the second phone must be empty.
  2. Log in on the first phone and open all three pages. The second phone, not logged in, must not show that customer's name, address or orders.

If either test fails, turn off the page cache, clear it and ask your host for help. Check COD checkout too.

After you change a price, clear the page cache and check the price in a private window.

Find slow plugins and extra code

One plugin can slow a page more than several small ones. After a backup, use staging to turn off one plugin, test three times, then turn it back on before testing another. Do not turn off security or backups on the live site to get a better score.

Also check live chat, maps, videos, social feeds and tracking code. Keep only what you use. A normal WhatsApp link may be enough in place of a chat box, and a directions link may be enough in place of a map. If you need a new plugin, use these plugin checks.

Use fewer fonts

Try one font family with only the weights you need. A system font is already on the phone, so it does not need to download. If you use a web font, WOFF2 can make its file smaller. Check the size of an Urdu font too, and test that its letters look right.

Test like your customers

Use an ordinary Android phone on mobile data, not your shop's WiFi. This also shows what customers may see when load-shedding turns off their router. Open a private window, then go from the home page to a product and start an order. Write down the slow step and test it again after each change.

If the server is still slow when the page is cached, show the report to your host. Ask about server location, PHP version and account limits. If you may change host, our WordPress hosting guide lists other things to compare, such as backups, storage and the renewal price. Before you move, follow the backup and restore plan.

Common questions

Do I need a PageSpeed score of 100?

No. Fix slow pages and steps that make it hard to order. Google says trying to get a perfect score only for SEO may not be the best use of your time.

Will a better speed score put me first on Google?

Not necessarily. Google uses Core Web Vitals in ranking, but good results do not promise a top place. Your page also needs to be relevant to the search.

Why does PageSpeed Insights have no real visitor data?

A new page, or one with few Chrome visits, may not have enough data. The report may show results for the whole site instead. If there are none, use the lab test and check the page on a real phone.

Sources

Read next

Check a domain name