
To speed up WordPress, measure the site first, then fix the biggest causes in order: oversized images, no page cache, too many plugins, an old PHP version and a cluttered database. This guide shows how to speed up WordPress step by step, and every setting in it comes from the WordPress, Google, cPanel or LiteSpeed documentation. Change one thing at a time and test again after each step, so you know which change helped.
Key takeaways
- Run PageSpeed Insights before you touch anything and save the results, so you can compare after each change.
- Fix images and turn on page caching first. WordPress's own guide names caching as the quick fix.
- The LiteSpeed Cache plugin is free, but its page cache only works on a LiteSpeed web server or through the QUIC.cloud CDN.
- WordPress recommends PHP 8.3 or greater, and you can change the PHP version per domain in cPanel.
1. Measure before you speed up WordPress
A speed test shows where the time goes and lets you check whether each change made the site faster or slower.
Use PageSpeed Insights, Google's free test. It reports two kinds of data for a page, on both mobile and desktop.
Lab data comes from Lighthouse, which loads your page in a simulated environment and scores it. You can repeat a lab test after every change.
Field data comes from the Chrome User Experience Report and shows how real visitors experienced the page over the previous 28 days. A new or low-traffic site may have no field data yet, so work from the lab data.
Run the test
- Open PageSpeed Insights and enter the address of your home page.
- Read the mobile result first. PageSpeed Insights runs the mobile test on a simulated mid-tier phone and mobile network, so it shows how the page behaves on a slower connection.
- Note the performance score and the three Core Web Vitals.
- Scroll to the diagnostics list, which names the files that cost the most time.
- Repeat the test for one blog post and one heavy page, such as a shop page.
What the numbers mean
| Measure | What it tells you | Good | Poor |
|---|---|---|---|
| Performance score (lab) | Overall Lighthouse result | 90 or above | Below 50 |
| Largest Contentful Paint (LCP) | How long the main content takes to appear | 2.5 seconds or less | Over 4 seconds |
| Interaction to Next Paint (INP) | How fast the page reacts to a tap or click | 200 milliseconds or less | Over 500 milliseconds |
| Cumulative Layout Shift (CLS) | How much the layout jumps while loading | 0.1 or less | Over 0.25 |
A page passes the Core Web Vitals assessment when 75 percent of visits meet the good threshold for all three metrics.
2. Fix your images
Unoptimized images cost time and bandwidth on every page view, so fix them early.
WordPress already does part of the work. Since version 5.5 it lazy-loads images that have width and height attributes, so the browser fetches them only as the visitor scrolls near them. Since version 6.3 it marks the image most likely to be the largest element on screen with fetchpriority="high", so the browser loads that image early. Since version 5.8 you can upload WebP images.
You handle the rest yourself.
- Resize each image before you upload it.
- Pick the right format and compression for each image. WordPress's optimization guide suggests a modern format such as WebP, which produces smaller files.
- Delete images the page does not need.
- Keep the width and height attributes on your images. The browser uses them to reserve space, which stops the layout from jumping and keeps your CLS low.
To compress images that are already in the Media Library, use an image optimization plugin. The LiteSpeed Cache plugin in step 4 includes one.
3. Turn on page caching
WordPress builds every page with PHP and database queries each time someone asks for it. A page cache saves the finished page and serves that saved copy to the next visitor.
The WordPress documentation calls caching the quick fix that gives "the biggest benefit for the smallest hassle". It also warns that without a caching solution, a site slows down sharply as page requests stack up.
Use one full-page cache plugin, not two. Which one you choose depends on your web server. If your host runs LiteSpeed, use the LiteSpeed Cache plugin.
4. Set up the LiteSpeed Cache plugin
LiteSpeed Cache is a free plugin from the WordPress plugin directory. Its tools fall into two groups.
The page cache is a server-level cache. It needs OpenLiteSpeed, a commercial LiteSpeed web server, LiteSpeed-powered hosting or the QUIC.cloud CDN. The optimization tools, which include image optimization, CSS and JavaScript minification, lazy loading and the database cleaner, work on any web server, including Apache and NGINX.
WaseerHost hosting runs on the LiteSpeed web server, which is the server this plugin is built for. You can see the plans on the WordPress hosting page.
Install it and turn on the cache
- Deactivate any other full-page cache plugin.
- In the WordPress dashboard, go to Plugins > Add New, search for LiteSpeed Cache, press Install Now and activate the plugin.
- Go to LiteSpeed Cache > Cache > Cache, set Enable Cache to ON and click Save Changes.
LiteSpeed's beginner guide says you can stop there, because the default settings are chosen to work for most sites.
Check that the cache works
- Open your site in a private browser window, so you are not logged in.
- Right-click the page, choose Inspect to open the developer tools and select the Network tab.
- Reload the page, click the first request in the list and look at the response headers.
X-LiteSpeed-Cache: hitA value of hit means the server sent the page from the cache. A value of miss on the first load is normal, so reload once more. If the header is missing, ask your host whether LSCache is available on your plan.
Use the optional settings with care
- Under LiteSpeed Cache > Page Optimization, the settings CSS Minify, CSS Combine, JS Minify, JS Combine and Load JS Deferred are all off by default. LiteSpeed's documentation says to test these options thoroughly before you enable them on a live site and to purge all caches after each change. Turn on one setting, check your key pages, then move to the next.
- Under LiteSpeed Cache > Image Optimization, press Send Optimization Request to compress the images in your Media Library. The work runs on the QUIC.cloud online service. By default it optimizes only JPG and PNG files, and you can also have it create WebP or AVIF versions. QUIC.cloud has a free level and charges at higher usage.
To clear the cache by hand, go to LiteSpeed Cache > Toolbox > Purge and click Purge All.
5. Remove plugins and themes you do not need
WordPress's optimization guide calls this the first and easiest way to improve performance. It says the number of plugins and how well they perform have a large effect on site speed.
- Open Plugins and check what each plugin does for your site.
- Deactivate and delete the ones you no longer use.
- If the site is still slow, disable plugins one at a time and run the speed test after each. This shows which plugin costs the most.
- For a slow plugin you need, look for a lighter plugin that does the same job.
The same guide says a fast, lightweight theme performs far better than a heavy one loaded with graphics.
6. Update your PHP version
WordPress runs on PHP, and the WordPress optimization guide notes that newer PHP versions usually include better performance. The WordPress requirements page recommends PHP 8.3 or greater.
Check your current version
In the WordPress dashboard, go to Tools > Site Health > Info and open the Server section. It shows your server setup, including the PHP version.
Change it in cPanel
- Log in to cPanel and open MultiPHP Manager in the Software section.
- Select the checkbox for the domain you want to change.
- Choose a version from the PHP Version menu.
- Click Apply.
Some hosts show a different PHP selector in cPanel. Before you switch, update WordPress, your theme and your plugins, because old plugins may not support a new PHP version. If the site shows an error after the change, set the previous version again and update or replace the plugin that failed.
On WaseerHost you can select PHP 8.0 to 8.5 per site in cPanel. The PHP hosting page has the details.
7. Clean the database
Over time the database collects data the site no longer needs.
Limit post revisions
WordPress saves a revision each time you update a post, and by default it keeps all of them. To cap the number, add this line to wp-config.php, above the comment line that tells you to stop editing.
define( 'WP_POST_REVISIONS', 3 );With this value WordPress keeps three revisions per post and deletes older ones when you next update the post.
Remove old data
Go to LiteSpeed Cache > Database > Manage. The page lists cleanup tasks such as Post Revisions and Expired Transients, and an Optimize Tables button. Deleting revisions is permanent, so back up the database first.
Watch the autoloaded options
Autoloaded options are plugin and theme settings that WordPress loads on every page. The WordPress guide says too many of them can slow a site and suggests you keep the total under 800 KB. WordPress stores them in the wp_options table, and the guide tells you to check with your hosting provider for the steps to view and change them.
8. Add a CDN for distant visitors
The distance between your server and your visitor adds delay to every request. A content delivery network, or CDN, stores copies of your static files, such as images, CSS and JavaScript, on servers in many regions and sends each visitor the copy from a nearby location.
A CDN helps most when your visitors are far from your server or spread across several countries.
Cloudflare, for example, caches static content by default and does not cache HTML pages unless you add a cache rule. QUIC.cloud, the CDN from the makers of LiteSpeed Cache, can cache WordPress pages as well.
9. Check your hosting
If you have done every step above and the server still responds slowly, the limit may be the hosting plan. WordPress's optimization guide says that moving to a host with SSD or NVMe storage can make a big difference, and that a plan with higher resource limits may help on shared hosting if you are reaching your current limits.
Choose the data center closest to most of your visitors and let a CDN cover the rest.
WaseerHost shared hosting uses the LiteSpeed web server and NVMe storage, with data centers in the USA, Germany and Finland. If you decide to move, WaseerHost offers free website migration.
Troubleshooting
| Problem | Likely cause | What to do |
|---|---|---|
| The layout looks broken after you enable CSS or JS settings | A combine, minify or defer setting conflicts with your theme or a plugin | Turn the last setting off, purge all caches and test again |
| Visitors see old content | The cache still holds the old page | Purge the cache from LiteSpeed Cache > Toolbox > Purge |
| The site shows an error after a PHP change | A plugin or theme does not support the new version | Switch back in cPanel, update or replace the plugin, then try again |
Frequently asked questions
Test the site with PageSpeed Insights, then work through the fixes in order. Resize and compress images, turn on a page cache, delete plugins you do not use, move to PHP 8.3 or greater and clean the database. Test again after each change.

Written by
Web & AI Systems Lead
Web and AI Systems Lead at Wasevo, the company behind WaseerHost. He builds web applications and AI systems.


