WordPress Security and Performance

How to Speed Up WordPress: The Complete Guide

A step-by-step plan to make WordPress fast: measure first, fix hosting and PHP, add page and object caching, optimize images, cut CSS and JavaScript, and tame plugins.

Speed gauge moving from slow to fast beside a WordPress waterfall chart showing caching, images and scripts optimized

To speed up WordPress, measure first, then fix the biggest bottleneck: usually slow hosting or an old PHP version, missing page caching, oversized images, or too much CSS and JavaScript from plugins and the theme. Work in that order. Caching and image optimization often halve load times on their own, and the remaining gains come from loading less code and removing slow plugins.

This guide gives you the full sequence, what to check at each step and which fix is worth it. For the ranking side, see Core Web Vitals in WordPress.

Step 1: Measure before you change anything

Use two kinds of data:

  • Field data (real users): the Core Web Vitals report in Search Console, and the top of PageSpeed Insights when your site has enough traffic.
  • Lab data (a test run): Lighthouse in PageSpeed Insights or Chrome DevTools, and a waterfall from WebPageTest.

Test three templates, not just the home page: a blog post, a category or shop page, and your most important landing page. Note TTFB, LCP, total page weight and the number of requests. Re-test after each change, so you know what helped.

Step 2: Fix the server side

If Time to First Byte (TTFB) is above about 600 ms for uncached pages, no front-end trick will make the site feel fast.

  • PHP version: run a currently supported PHP 8.x release. Each major version has brought real speed gains over PHP 7.
  • OPcache enabled, so PHP does not recompile files on every request (PHP and OPcache tuning).
  • Hosting resources: crowded shared hosting is the most common cause of slow TTFB. Managed WordPress hosting or a well-configured VPS usually fixes it (choosing hosting).
  • Server location close to most of your visitors, or a CDN in front (step 5).

Details in how to reduce TTFB.

Step 3: Add page caching

Without caching, WordPress runs PHP and dozens of database queries for every visit. A page cache stores the finished HTML and serves it directly. This is the single biggest win for most sites.

  • Use your host's server-level cache if it has one (often the fastest option).
  • Otherwise use a caching plugin such as WP Rocket, LiteSpeed Cache (on LiteSpeed servers), WP Super Cache or W3 Total Cache. Use only one.
  • Exclude dynamic pages: cart, checkout, account, and anything personalized.

See caching explained and caching plugins compared.

Step 4: Add an object cache for dynamic sites

Logged-in users, WooCommerce carts, membership and LMS sites cannot use full-page caching for every page. A persistent object cache (Redis or Memcached) keeps database query results in memory between requests and cuts load on those pages significantly. See setting up Redis object cache.

Step 5: Use a CDN

A content delivery network serves images, CSS and JavaScript (and sometimes whole pages) from servers near each visitor. Cloudflare, Bunny CDN and your host's CDN are common choices. See CDN setup for WordPress.

Step 6: Optimize images

Images are usually most of a page's weight.

  • Resize before uploading: no 4000 px photo for a 800 px column.
  • Serve modern formats, WebP or AVIF, with good compression.
  • Let WordPress output srcset so phones get smaller files (responsive images).
  • Lazy-load images below the fold, but not the main hero image; give that one fetchpriority="high" (lazy loading).
  • Always set width and height to avoid layout shifts.

Step 7: Reduce CSS and JavaScript

Every plugin may add its own files on every page. Check the waterfall for scripts that do not belong: a contact form script on the blog, a slider library on pages with no slider.

  • Unload assets where they are not needed (with code or an asset manager plugin).
  • Defer non-critical JavaScript and delay third-party scripts such as chat widgets until interaction.
  • Remove unused CSS or generate critical CSS for above-the-fold content.
  • Minify and combine carefully; on HTTP/2 combining matters less than not loading code at all.

Code examples in removing unused CSS and JavaScript.

Step 8: Optimize fonts

Self-host your fonts, load only the weights you use, preload the main one, and use font-display: swap. Two families with four weights each is a common hidden cost. See optimizing web fonts.

Step 9: Find slow plugins and queries

Install Query Monitor on staging and look at the slowest database queries and which component made them. Look for plugins that run heavy queries on every page, call external APIs without caching, or load admin features on the front end. Replace or reconfigure them. See finding slow plugins.

Step 10: Clean the database

Large autoloaded options load on every request. Revisions, expired transients and orphaned meta bloat tables over time. Check autoload size and clean up carefully, with a backup. See autoloaded options and database optimization.

Step 11: Control background load

  • Replace WP-Cron with a real server cron on busy sites (WordPress cron).
  • Reduce the Heartbeat API frequency in the admin (Heartbeat API).
  • Block abusive bots at the firewall so they do not consume PHP workers.

Common mistakes

  • Installing several optimization plugins that do the same job and conflict.
  • Lazy-loading the LCP image, which makes the main metric worse.
  • Chasing a 100 Lighthouse score instead of real-user metrics.
  • Caching pages that must be dynamic, such as the cart or checkout.
  • Optimizing the front end while TTFB is still two seconds.

Frequently asked questions

What is the fastest way to speed up a WordPress site?

Turn on page caching and compress your images. On most sites these two changes give the biggest improvement for the least effort.

Do too many plugins slow WordPress down?

The number matters less than what each plugin does. One badly coded plugin can be slower than twenty light ones. Measure with Query Monitor and the browser waterfall.

Is a page builder bad for speed?

Builders add CSS, JavaScript and extra markup. They can still be fast with careful settings and caching, but a lightweight block theme usually starts faster.

What is a good load time for WordPress?

Aim to pass Core Web Vitals for real users: LCP under 2.5 seconds, INP under 200 milliseconds and CLS under 0.1, on mobile.

Conclusion

Speed comes from doing less work per visit: a fast server, cached pages, light images, and only the code each page needs. Follow the steps in order and measure after each one, and you will know exactly what made the difference. Further reading: web.dev on Web Vitals and the WordPress optimization guide. Running an LMS? Our Tutor LMS speed guide covers course and lesson pages.

Want an expert to make your site fast? See our speed optimization service.

Save this practical guide

Add us as a preferred Google source, or ask an AI assistant to summarize this page and link back to the original guide when it is useful.

· Tutor LMS developers

Guides written and reviewed by the TutorLMS Expert development team. Every hook, function, table and setting we mention is checked against the Tutor LMS and Tutor LMS Pro source code before it is published.

Keep reading

Need a custom Tutor LMS solution?

Tell us what you are building or what is broken. A Tutor LMS developer reads every inquiry and replies with next steps and a free estimate.

Get a free Tutor LMS consultation

Tell us what you are building or fixing. A Tutor LMS developer replies with honest advice and next steps.

  • No obligation
  • Tutor LMS and Pro specialists
  • Your details stay private

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.