Is your WordPress painfully slow?
Then you urgently need to act, because it may cost you plenty of readers!
Under certain circumstances, your Google ranking can suffer, and according to a press release, so can the likelihood that your web pages are shown in the Facebook news feed.
Or maybe you're simply a speed freak (like me!) who wants to shave a few more milliseconds off your load time?
Then I have 13 tips for you on how to speed up WordPress and boost your website's performance drastically.
How can I test my load time?
To find out where your WordPress blog has room for improvement at all (and whether optimization measures bring anything in the first place), you should always test your load time.
By far the best tool for this is PageSpeed Insights, which not only runs a complete Lighthouse test and shows the optimization potential, but also shows how you do on the Core Web Vitals:

You can also check Core Web Vitals and other performance values with our free Page Speed Checker.
1. Hosting
You can get a hosting package including a domain for a WordPress website from as little as €1.00 per month. But if you choose a host based on price alone, you end up paying more in the end.
And not just through lousy customer support and poor availability, but also through slow load times.
That can be because the server software is outdated and doesn't offer the latest technologies yet, because the server isn't configured properly, or because too many customers share the available server resources.
In general, I advise against mass hosters like Strato, 1 & 1, DomainFactory, One.com or HostEurope.
Please get yourself a decent hosting package and not junk. Even if it costs a few euros more per month!
The hosts I can recommend without reservation include:
My extensive WordPress hosting comparison covers what to look for when choosing a host. I also tested 5 popular providers of managed WordPress hosting there.
You'll also find speed tests of various German hosting providers in my web hosting comparison.
2. Enable gzip compression
Enabling gzip compression is one of the most important optimization measures and noticeably boosts your website's load time.
You do this by enabling the modules mod_deflate or mod_gzip, which makes sure JavaScript, HTML and CSS files are transferred in compressed form. That reduces their file size by up to 70%!
To do this, all you have to do is log in to your FTP server (you should have received the login details when you opened your hosting package).
Then you open your website's .htaccess file with a plain text editor and paste the following code at the beginning of the file:
AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/x-shockwave-flashOn web servers running an older Apache version, the mod_deflate module may not exist yet, and you have to use the mod_gzip module instead.
In that case, simply paste the following code in place of the code above:
mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*3. Enable browser caching
If browser caching isn't enabled, Chrome, Firefox and co. don't store the files loaded on your website (such as images or CSS files) locally on the computer. That means every further page view fetches all files from your server again.
That can lengthen the load time enormously. That's why it's essential to allow browsers to store files for a longer period of time.
You can enable browser caching via the .htaccess file, just like the compression with mod_deflate.
All you have to do is paste in the following code, which keeps files of every kind stored in your visitors' browser cache for one year (31,536,000 seconds):
ExpiresActive On ExpiresByType text/css A31536000 ExpiresByType text/x-component A31536000 ExpiresByType application/x-javascript A31536000 ExpiresByType application/javascript A31536000 ExpiresByType text/javascript A31536000 ExpiresByType text/x-js A31536000 ExpiresByType text/html A3600 ExpiresByType text/richtext A3600 ExpiresByType image/svg+xml A3600 ExpiresByType text/plain A3600 ExpiresByType text/xsd A3600 ExpiresByType text/xsl A3600 ExpiresByType text/xml A3600 ExpiresByType video/asf A31536000 ExpiresByType video/avi A31536000 ExpiresByType image/bmp A31536000 ExpiresByType application/java A31536000 ExpiresByType video/divx A31536000 ExpiresByType application/msword A31536000 ExpiresByType application/vnd.ms-fontobject A31536000 ExpiresByType application/x-msdownload A31536000 ExpiresByType image/gif A31536000 ExpiresByType application/x-gzip A31536000 ExpiresByType image/x-icon A31536000 ExpiresByType image/jpeg A31536000 ExpiresByType application/json A31536000 ExpiresByType application/vnd.ms-access A31536000 ExpiresByType audio/midi A31536000 ExpiresByType video/quicktime A31536000 ExpiresByType audio/mpeg A31536000 ExpiresByType video/mp4 A31536000 ExpiresByType video/mpeg A31536000 ExpiresByType application/vnd.ms-project A31536000 ExpiresByType application/x-font-otf A31536000 ExpiresByType application/vnd.ms-opentype A31536000 ExpiresByType application/vnd.oasis.opendocument.database A31536000 ExpiresByType application/vnd.oasis.opendocument.chart A31536000 ExpiresByType application/vnd.oasis.opendocument.formula A31536000 ExpiresByType application/vnd.oasis.opendocument.graphics A31536000 ExpiresByType application/vnd.oasis.opendocument.presentation A31536000 ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000 ExpiresByType application/vnd.oasis.opendocument.text A31536000 ExpiresByType audio/ogg A31536000 ExpiresByType application/pdf A31536000 ExpiresByType image/png A31536000 ExpiresByType application/vnd.ms-powerpoint A31536000 ExpiresByType audio/x-realaudio A31536000 ExpiresByType image/svg+xml A31536000 ExpiresByType application/x-shockwave-flash A31536000 ExpiresByType application/x-tar A31536000 ExpiresByType image/tiff A31536000 ExpiresByType application/x-font-ttf A31536000 ExpiresByType application/vnd.ms-opentype A31536000 ExpiresByType audio/wav A31536000 ExpiresByType audio/wma A31536000 ExpiresByType application/vnd.ms-write A31536000 ExpiresByType application/font-woff A31536000 ExpiresByType application/vnd.ms-excel A31536000 ExpiresByType application/zip A315360004. Compress images
Most images that you've taken with your own camera or created yourself with Photoshop or GIMP are bigger than they need to be.
And that's true even if you've already saved them at a lower quality level on your PC.
Even if you save a JPG in Photoshop at quality level 8/12 and as a Progressive JPG (or in GIMP at quality level 85 and as a Progressive JPG), you can usually still make it 5-15% smaller without the quality suffering.
With PNG images the savings are usually even bigger and, depending on the image, can be 50-80%.
To compress all the images of your WordPress installation, you can use programs on your own computer, such as ImageOptim (Mac) or the File Optimizer (Windows).
It's easier, though, to use the WordPress plugins EWWW Image Optimizer or Compress JPEG & PNG images for compression. They let you bulk compress images you've already uploaded and also automatically compress all newly uploaded images.
You can also shrink individual images with our free Image Compressor.
5. Install a caching plugin
A caching plugin is an absolute must if you want to speed up WordPress. WordPress itself generates dynamic websites, which means every element on your page (e.g. menus, widgets, posts etc.) triggers a database query on every page view.
For some websites whose content changes quickly or that want to display content in real time, dynamic loading may make sense. For most blogs, online magazines or niche sites, however, it's more of a hindrance. Too many database queries worsen the load time, and the reader gets no benefit from the dynamic loading.
A caching plugin helps by generating static files from the dynamic content (so-called page caching), which drastically reduces the number of database queries needed to display a website (not to be confused with server requests, which don't change because of the caching plugin).
The plugin then regenerates these static files after a set interval (e.g. one day) and/or when the content changes.
As a caching plugin I recommend Cache Enabler:

Setup is child's play:
Install it, activate it, done! You don't need to configure anything.
It's the fastest free caching plugin I know. It beats some other plugins, like W3 Total Cache, by a mile. It also works with most themes, plugins and setups.
I get good results with the WP Super Cache plugin as well. Thanks to its simple setup (just turn on caching under Settings > WP Super Cache and you're done!) and its clear user interface, it's very well suited for beginners.
6. Deactivate unnecessary plugins
Plugins often load an unnecessary number of CSS or JS files or slow WordPress down with too many database queries. On top of that, plugins are always a security risk, especially those that aren't maintained regularly.
So the rule is: the fewer plugins, the better!
Go through your plugin list regularly and ask yourself: Do I really need this? And if not, get rid of it! If you need it but only use it occasionally, I recommend activating it only when you use it and deactivating it again right afterward.
Some of the biggest load time killers are, for example:
- Social media plugins (Twitter or Instagram feeds, Facebook like boxes, share buttons without caching etc.)
- Page builders (e.g. Visual Composer)
- Broken Link Checker (deactivate after use)
- Google Maps
- Comment plugins
- Contact forms
- Forum plugins (Simple:Press, bbPress etc.)
- WooCommerce and other e-commerce plugins
7. Use a lean WordPress theme
Popular WordPress themes such as Avada, X Theme, Enfold, The 7, Divi etc. offer many settings, integrations, ready-made demos and/or a visual editor, which can make designing a website a lot easier.
But as great as this building-block approach is, it also has drawbacks. Many functions and design elements get loaded even if you don't use them at all. Unnecessarily many or unnecessarily large CSS and JavaScript files drag your load time into the basement.
All-in-one themes also often come with the installation of many more plugins (e.g. sliders, contact forms, WooCommerce, bbPress, widgets). So please also check whether you really use the plugins that come with the theme. Even when the theme recommends installing a plugin, in most cases you can get by without it.
With some themes, such as Avada, individual functions can be switched off completely, so the corresponding CSS and JS files are no longer loaded.
In the end, though, it's better to decide in advance on a theme that has only the functions you really need, even if you have to search a little longer for it.
8. Clean up, combine and compress JS and CSS files
WordPress installations are often slowed down by too many loaded JavaScript and CSS files, especially if you've installed a pile of plugins or use a multi-purpose theme that offers many functions.
For one thing, you can fix that by deactivating unnecessary plugins that weigh on the load time and by using a theme that isn't so overloaded (see point 7).
For another, you can speed up WordPress by combining as many JS and CSS files as possible to reduce the number of server requests, and by compressing them to reduce the size of the individual requests.
You can do that by hand, but it requires a lot of prior knowledge of WordPress programming. It also means you have to dig deep into the theme, which can lead to complications.
It's easier to use the free plugin Autoptimize:

Configuring the plugin is dead simple: you go to Settings > Autoptimize and tick Optimize HTML Code?, Optimize JavaScript Code? and Optimize CSS Code?
With most themes and plugins, using Autoptimize shouldn't cause any complications.
If something isn't displayed or doesn't work properly (be sure to check the mobile version too!), you have to find out what's causing the complication.
You can usually find that out quite quickly by showing the advanced settings, excluding certain CSS and JavaScript files from the optimization and checking whether the complications disappear.
9. Lazy load images
Compressing your images is an important step toward a better load time.
If your blog or individual blog articles are very image-heavy, though, that may not be enough.
In that case you should fall back on so-called lazy loading, which makes sure images are only loaded once a user scrolls to the relevant spot.
For that you can install an extra plugin, such as a3 Lazy Load, which in my experience works with many themes and setups.

It's easier, though, to use Autoptimize for it (if you've already installed it anyway).
You can enable lazy loading by ticking the checkbox for lazy-loading images in the Images tab of the settings.

10. Use a current PHP version
Check whether your host provides a PHP version that still receives security updates. The official PHP overview shows which versions are currently supported.
WordPress recommends PHP 8.3 or higher in its official hosting requirements.
You can usually change the PHP version in your server's settings area. If not, ask your host whether they'll do it for you.
11. Use HTTP/2
HTTP/2, the successor of HTTP/1.1, offers clear speed advantages over the older version of the Hypertext Transfer Protocol, which was the transfer standard on the web for over 16 years.
In case you're interested in where the extra speed comes from:
With HTTP/1.1 all requests are still processed one after another, while with HTTP/2 several requests can now be processed in parallel (which, for example, means you no longer need to combine image files into CSS sprites or all JS and CSS files into one).
Headers are also transferred in compressed form, and thanks to server push the server can prioritize the requests that matter most to the client (that is, the browser user).
With this tool from KeyCDN you can test whether your server supports HTTP/2.
If it doesn't, ask your host to implement it, or take it as a reason to switch hosts right away.
If you have a vServer or dedicated server with root access, you may even be able to set this up yourself.
12. Disable or cache Gravatar
If a blog article has a lot of comments, that can slow the article's load time down massively, because the Gravatar image of every commenter gets loaded.
The plugin FV Gravatar Cache helps. It caches Gravatar images on your own server, which in my experience improves the load time a little.
Alternatively, you can switch off custom avatar images completely and replace them with a default image.
For that I use WP User Avatar:
13. Disable emojis
There are some functions in the WordPress core that affect load time negatively and aren't strictly necessary.
For example, a small script gets loaded that ensures emoji support in older browsers.
You can switch that off fairly safely and thereby save a server request (the JavaScript file wp-emoji-release.min.js, 10.5 KB in size).
It won't make your website exorbitantly faster, but it never hurts to save a few little milliseconds, right?
You can also switch off the emoji script in Autoptimize's settings by ticking Remove emojis in the Extra tab:

If you don't use Autoptimize, you can also do this with the plugin Disable Emojis.






