Aller au contenu principal
Performance

Slow WordPress? 15 optimizations to gain speed

Key takeaways

  • Table of Contents
  • 1. Enable caching
  • 2. Optimize your images

Category: Performance | Reading time: 12 min

A slow WordPress site isn't just frustrating for your visitors — it's deadly for your SEO. According to Google, 53% of mobile users abandon a site that takes more than 3 seconds to load. Each additional second of loading reduces conversions by 7%. If your WordPress site is slow, you're losing traffic, revenue, and credibility.

Good news: in the vast majority of cases, a slow WordPress site isn't a death sentence. With the right optimizations, you can cut your loading time in half, or even by a third. Here are 15 concrete and effective optimizations to speed up your WordPress site today.

1. Enable caching

Caching is the most impactful optimization you can implement on WordPress. Without caching, each page visit triggers dozens of PHP and SQL queries, which is extremely costly in server resources.

With an effective caching system, your site generates static versions of your pages that the server can serve instantly, without executing PHP every time. The result? A loading time 3 to 10 times faster.

Recommended caching solutions

  • WP Rocket: premium all-in-one solution, ideal for beginners and experts alike
  • W3 Total Cache: free and very comprehensive, but more complex to configure
  • LiteSpeed Cache: excellent choice if your host uses the LiteSpeed server
  • WP Super Cache: official WordPress plugin, simple and effective

If you're hesitating between these solutions, check out our complete comparison of WordPress caching plugins. Also consider the quality of your WordPress hosting which directly impacts performance.

"Caching is the most powerful lever to improve WordPress site performance. It can reduce loading time by more than 60% in just a few minutes."

2. Optimize your images

Images represent on average 50 to 75% of the total weight of a web page. An unoptimized photo can weigh 3 to 5 MB, when it could be reduced to 50-100 KB without visible quality loss.

Image optimization best practices

  1. Compress your images: use tools like TinyPNG, ShortPixel, or Imagify
  2. Convert to WebP format: this modern format offers a 25-35% reduction compared to JPEG
  3. Resize to the correct size: don't load a 4000px image to display it at 800px
  4. Use Lazy Loading: load images only when they enter the viewport

We recommend using ShortPixel or EWWW Image Optimizer to automate image optimization. These plugins automatically compress your images on upload and can process your existing media library in the background.

3. Use a CDN (Content Delivery Network)

A CDN distributes your site's static files (images, CSS, JavaScript) across a network of servers located worldwide. The result: your visitors download these files from the server closest to their geographic location.

Without a CDN, a visitor from Tokyo accessing your site hosted in Paris has to wait for data to travel halfway around the world. With a CDN, static files are served from a server in Tokyo, drastically reducing latency.

Recommended CDNs

  • Cloudflare: generous free plan, DDoS protection included
  • KeyCDN: excellent value for money, easy to integrate
  • BunnyCDN: very performant and affordable
  • Amazon CloudFront: ideal for high-traffic sites

Integrating a CDN can reduce loading time by 30 to 50% for your international visitors. It's a particularly worthwhile investment if you have a global audience.

4. Clean up your database

Over time, your WordPress database becomes bloated with unnecessary data: article revisions, drafts, spam comments, orphaned metadata, and expired transients. This excess can significantly slow down your SQL queries.

How to clean up your database

  • Post revisions: WordPress automatically saves a copy on each save. Limit them via wp-config.php: define('WP_POST_REVISIONS', 5);
  • Spam comments: regularly empty your spam folder with WP-Sweep or Advanced Database Cleaner
  • Expired transients: this temporary data often remains in the database after expiration
  • Orphaned metadata: data linked to deleted posts or pages

Regular cleanup (monthly or quarterly) can reduce your database size by 20 to 50%.

5. Choose a lightweight theme

Your WordPress theme is the foundation of your site. A heavy theme with dozens of built-in features, dozens of fonts, and complex animations can significantly slow down your site, even with all other optimizations in place.

Themes like Astra, GeneratePress, or Flavor weigh less than 50KB and offer exceptional performance. Conversely, some "all-in-one" themes exceed 5MB and load dozens of unnecessary CSS and JavaScript files.

Criteria for choosing a high-performance theme

  1. Weight under 100KB
  2. Less than 10 HTTP requests
  3. PageSpeed score above 90
  4. Compatibility with major caching plugins
  5. Regular updates and responsive support

6. Minimize plugins

Each plugin installed on your site adds PHP code, CSS, and JavaScript. Even an inactive plugin can leave traces in your database and affect performance.

Rules to follow

  • Delete unused plugins: don't just deactivate them, delete them completely
  • Avoid redundancy: don't use two plugins for the same functionality
  • Favor lightweight plugins: compare the weight and number of requests
  • Test each plugin's impact: use Query Monitor to measure their impact

As a general rule, maintain your site with fewer than 20 plugins. If you exceed this number, seriously evaluate each one. Our security plugin comparison helps you choose one that won't weigh down your site's performance.

7. Implement Lazy Loading

Lazy Loading is a technique that defers the loading of images and videos until they're visible in the user's screen. Instead of loading all images on a page at once, they load as the user scrolls down the page.

Since WordPress 5.5, Lazy Loading is natively supported via the loading="lazy" attribute. However, for finer control, you can use plugins like WP Rocket or a3 Lazy Load.

This technique can reduce the initial loading time by 30 to 50% on pages containing many images.

8. Enable GZIP compression

GZIP compression compresses your HTML, CSS, and JavaScript files before sending them to the visitor's browser, which drastically reduces the size of transferred data. It's like sending a compressed file instead of a raw file.

Most caching plugins (WP Rocket, W3 Total Cache) offer an option to enable GZIP compression. Otherwise, you can enable it via .htaccess or ask your host.

GZIP compression can reduce the size of text files by 60 to 80%, which translates to significantly faster loading times.

9. Update your PHP version

PHP is the language on which WordPress runs. Each major new version of PHP brings significant performance improvements. The difference between PHP 7.4 and PHP 8.2 can be on the order of 20 to 30% in terms of execution speed.

Yet today, approximately 30% of WordPress sites still run on outdated versions of PHP (7.x or even 5.x). This is not only a performance problem but also a major security risk.

To learn more, check out our dedicated article: PHP and WordPress: why updating the PHP version is crucial.

10. Configure Object Caching

Object Caching stores the results of frequent database queries in memory. Instead of querying the database every time the same information is requested, WordPress can retrieve it instantly from the cache.

For an effective Object Cache, you need an in-memory storage backend:

  • Redis: the most popular, extremely fast
  • Memcached: lightweight and effective for small projects
  • APCu: good alternative if Redis isn't available

Object Caching is particularly beneficial for sites with high traffic or WooCommerce stores where many queries are repetitive.

11. Limit the Heartbeat API

WordPress's Heartbeat API sends requests to the server every 15 seconds when you're logged into the administration. This API is useful for real-time notifications, automatic backups, and edit conflict detection.

However, on shared servers, these regular requests can consume precious resources, especially if multiple administrators are logged in simultaneously.

How to reduce Heartbeat impact

  • Reduce frequency: change from 15 seconds to 60 seconds
  • Disable it completely if you don't need it (use with caution)
  • Use WP Rocket which includes a Heartbeat management option

12. Reduce database autoloads

Autoloads are data that WordPress automatically loads on each page. Some options, like plugin data, are loaded even if they're not needed for the current page.

A large number of autoloaded options can significantly slow down the loading of each page. You can check the amount of autoloaded options by running this SQL query:

SELECT option_name, LENGTH(option_value) AS size FROM wp_options WHERE autoload = 'yes' ORDER BY size DESC LIMIT 20;

If you find large options, consider cleaning up your database or configuring certain plugins not to store their data in autoload.

13. Limit external resources

Each external resource that your page loads — Google fonts, advertising scripts, social widgets, analytics — adds extra HTTP requests and latency.

Best practices

  • Single font: use one font with the necessary weights
  • Deferred scripts: load non-critical scripts in defer or async mode
  • Host locally: download critical fonts and scripts to your server
  • Audit regularly: check with GTmetrix which external resources are slowing down your site

14. Use HTTP/2 or HTTP/3

HTTP/2 and HTTP/3 are the latest versions of the HTTP protocol. They offer major improvements over HTTP/1.1, including:

  • Multiplexing: load multiple files simultaneously over a single connection
  • Header compression: reduce metadata size
  • Resource prioritization: load critical elements first

Most modern hosts support HTTP/2, and more and more are moving to HTTP/3. Verify that your host enables it and that your SSL certificate is properly configured.

15. Monitor performance continuously

Optimizing your site once isn't enough. Performance can degrade over time due to new publications, new plugins, or server-side changes.

Recommended monitoring tools

  • Google PageSpeed Insights: free, provides concrete recommendations
  • GTmetrix: detailed analysis with waterfall chart
  • Pingdom: real-time monitoring from different geographic points
  • Query Monitor: WordPress plugin to analyze PHP, SQL queries and hooks

Schedule monthly performance checks and react quickly if you notice degradation.

Conclusion: a high-performing site is a profitable site

Your WordPress site's performance isn't a luxury — it's a business success factor. A fast site attracts more visitors, retains them longer, and converts them more effectively.

These 15 optimizations provide a solid foundation for transforming a slow site into a high-performance one. However, each site is unique, and some optimizations require technical expertise to implement correctly.

At WpDefender, we help WordPress site owners optimize their performance professionally and sustainably. Our team analyzes your site in depth and implements the most relevant optimizations for your situation.

Ready to speed up your WordPress site?

Free quote with no commitment. Our team analyzes your site and proposes a customized optimization plan.

Request a free audit

You'll also enjoy: WordPress Caching: comparison of the best plugins | WordPress migration without performance loss | Why update PHP | Troubleshooting WordPress errors

Your site is compromised? We take care of everything.

Don't waste time. Every minute counts for your traffic and SEO.

Need urgent help? Scan my site
Available now — Response within 30 minutes Immediate intervention
🛡️
WpDefender Bot Online now

Hello! I'm the WpDefender assistant. How can I help you?

Select your problem: