Inside this Article
1. Choose a Fast WordPress Host2. Choose Your WordPress Theme Wisely3. Take Advantage of Caching Plugins4. Optimize Your Images Using Photo Editors5. Optimize Your Images Using a Plugin6. Use a Content Delivery Network (CDN)7. Minify JS and CSS Files8. Use GZIP Compression9. Do a Plugin Inventory10. Give Your Database a Cleanup11. Deal With Page and Post Revisions12. Use Accelerated Mobile Pages#13. Use Optimization to Speed Up Your Homepage#14. Use Media Offloading Services#15. Prevent Hotlinking#16. Audit Your WordPress Website to Identify BottlenecksAct Now to Boost Your WordPress Website
1. Choose a Fast WordPress HostTo get the best speeds, you need a WordPress-optimized hosting service that offers both fast server speeds and SSD storage. You’ll also want to look for hosts that give you at least PHP 7.2, such as A2 Hosting or SiteGround — because if you’re still running on PHP 5.2, your website is likely to be 400% slower. If you can find a host with LiteSpeed Web Server or NGINX, even better, as either of these two will speed up your servers considerably. Liquid Web offers some great-value plans with NGINX, for example. Hosting your WordPress website on a shared server is the cheapest route. But because you’re sharing the server with hundreds of other websites, at busy times your page loading speeds will be affected. In many cases, shared hosting isn’t going to meet your needs. Cloud hosting is a much faster alternative to shared hosting, simply because it gives you access to a far greater level of resources (bandwidth and CPU power, for example). Essentially, cloud hosting taps on servers all around the world to provide guaranteed resources when you need them. Many hosting providers are now using cloud hosting for their managed WordPress plans. Managed WordPress hosting using cloud servers is the best way to ensure that you get the performance you need. To learn more about managed WordPress hosting, check out our in-depth article. Here’s a quick comparison table outlining the best WordPress hosts we’d recommend:
|Host||Speed Enhancement Features||WordPress Support||Performance||Uptime Guarantee||Cost||Free Migration|
|Liquid Web||NGINX, PHP 7, pre-installed image optimization plugin, and more||☆☆☆☆☆||☆☆☆☆||100%||$$$||Yes (unlimited)|
|WP Engine||PHP 7.2, Global CDN, server-side caching, and more||☆☆☆☆☆||☆☆☆☆☆||99.95%||$$$||Yes (via automated migration plugin, but assistance available if needed)|
|GoDaddy||Load-balanced servers optimized for WordPress, SSD storage||☆☆||☆☆☆||99.9%||$||No|
|Flywheel||VPS, CDN, globally available data centers, server-side caching, expert performance assessments||☆☆☆☆☆||☆☆☆☆☆||99.9%||$$||Yes (unlimited)|
|SiteGround||Cloudflare CDN, WordPress SuperCacher, SG Optimizer plugin||☆☆☆||☆☆☆||99.99%||$||Yes (one free migration with GrowBig or GoGeek plans)|
|InMotion Hosting||SSD, NGINX, advanced server caching, PHP 7||☆☆☆||☆☆☆||99.9%||$||Yes (for up to three websites, but only on a case-by-case basis)|
|Kinsta||Google Cloud Platform, Kinsta Cache plugin, and more||☆☆☆☆☆||☆☆☆☆☆||99.9%||$$$||Yes (one or more migrations depending on your plan)|
2. Choose Your WordPress Theme WiselyYour WordPress theme can have an enormous impact on how fast your website is, so there’s a lot more to the decision process than just picking one that looks good. Look for a theme that:
- Is lightweight and/or optimized for performance
- Has the features that you need
- Won’t bloat your website with features that you’ll never use, or offers the option to disable unnecessary features (such as sliders, galleries, and parallax scripts)
3. Take Advantage of Caching PluginsMany of the hosts we mentioned above include proprietary caching plugins with their plans, but if your host doesn’t, there are plenty of effective alternatives. A caching plugin can dramatically improve your page loading speeds – by up to five times, in fact. Here’s how caching plugins work. The first time a page is loaded, the plugin copies the page, so the next time anyone goes to that page, the cached version is shown. This gives the server a bit of a break from generating pages, and means that your website won’t slow down if a lot of people are visiting your website at the same time. WP Rocket is one of the best caching plugins available – and it’s beginner-friendly, too. With a single click, you can cache your website instantly. This fully-featured plugin also automatically turns on all the settings you need for the most effective caching, such as GZIP compression, page caching, and cache pre-loading. An alternative to WP Rocket is W3 Total Cache. This plugin has tons of features including page caching, object caching, GZIP compression, minification support, and CDN support. With so many settings and options, it’s less beginner-friendly than WP Rocket – but great if you want more control over the settings.
4. Optimize Your Images Using Photo EditorsImages can reduce your bounce rate and increase your conversion rate, which is great for your business. There is, however, an unfortunate problem with images: they can slow your website down. As smartphones get more advanced, they come with cameras with increasingly higher megapixels — and more megapixels means bigger file sizes. Before you upload photos to your WordPress website, you need to reduce the file sizes of those photos. Ideally, you want a full-page image to be no larger than 80-100KB in size.
5. Optimize Your Images Using a PluginIf you’d rather not have to use photo editing software, there are plugins that can do this for you. You can configure the level of compression and let the plugin reduce your file sizes automatically. It’s a quick way of optimizing images on the fly. One of the best image optimization plugins available is the EWWW Image Optimizer. It’s super easy to use and offers a range of advanced features. For instance, you can even optimize images stored outside of your media library, or optimize images in batches through the bulk optimization feature. You won’t need to sign up for an account to get an API key, either. Smush is another image optimization plugin, but this one has both free and premium versions. It gives you a range of options to reduce your image file sizes, including automatic compression during uploading and the compression of your existing media library. With the premium version, you can optimize up to 50 images at once. The only drawback to using an image optimization plugin over photo editing software is that adding more plugins to your WordPress installation can affect performance (see #9). Despite this downside, the speed improvements gained through compressing images is greater than the loss of speed through plugins – and many of the plugins are optimized to minimize their impact, too.
6. Use a Content Delivery Network (CDN)Many professional bloggers have begun to use CDNs to improve their page loading times. Essentially, a CDN ensures that all the static files on your website – including CSS, JS and images – are delivered rapidly to your visitors using servers located as close to them as possible. If you have a lot of rich media on your website, this can make a huge difference to your loading speeds. When you’re looking for a CDN, there are certain features that you should be looking out for, such as:
- DDoS Protection
- SSL certification
- Automatic image/video optimization
7. Minify JS and CSS FilesIt’s well known that JS and CSS files can greatly impact the performance of your website. Both the size of the files and the number of JS and CSS calls for each page can slow down your page loading speeds. The good news is that you can easily minify these files. You can also install a plugin, such as Autoptimize, to do it for you. Autoptimize is the best plugin if you want a simple setup that you can leave running in the background. All you have to do is check a few boxes to start the optimization process. Fast Velocity Minify has more settings to choose from, meaning it’s a little less user-friendly than Autoptimize. However, you can choose to exclude certain files from being minified and change other aspects of the minification process, such as not merging Google Fonts. Fast Velocity Minify is ideal if you want more control over what is (and isn’t) minified.
8. Use GZIP CompressionIn the same way that compressing files on your computer saves space, using GZIP compression on your WordPress website reduces the file sizes being served up to your visitors. This means their web browsers have less data to load — and can then load your site more quickly. (It also has the added benefit of reducing bandwidth usage, if you don’t have unlimited bandwidth.) Plugins can handle the GZIP compression process, so you don’t need to manually mess with your .htaccess file. WP Performance Score Booster is a solid choice for GZIP compression and comes with a host of other features, including removing query strings from CSS and JS files. After using it, you can check out the difference in your website’s speed using Pingdom. If you’d rather manually enable GZIP compression yourself, you’ll need to use your cPanel or FTP to get inside your .htaccess file (in the public_html directory). If your hosting provider uses NGINX servers, you’ll need to add this code at the end: gzipon;
9. Do a Plugin InventoryWordPress plugins are way too easy to hoard. You probably have plugins that you’ve installed, but you never actually use them. They sit there on your website, taking up space and cluttering the server like a plugin junkyard. You need to be careful about duplicate plugins and plugins that don’t really achieve much (or anything) for your website. It’s quite common to try out different plugins that do the same thing – and then forget to delete them after you’ve made your choice. The more plugins that you have installed, the bigger your database – and the bigger the impact on your loading speeds. (Read our test on WordPress plugin speed here.) Take a look at your plugin list and do an honest inventory. Are there any plugins that you’ve never used or that serve no purpose on your website? Are there plugins that do the same function as another? Deactivate — or, even better — uninstall them to improve your website’s performance.
10. Give Your Database a CleanupIf your website has been live for a while, it’s quite likely that your database has become bloated. Plus, when you delete plugins, there are often settings and data left behind. This can impact your website’s performance, so cleaning out all this old data can speed things up. You can do a manual cleanup of your database, but plugins such as WP-Optimize can do it for you. These also offer you the ability to schedule database optimizations on a regular basis to keep your website performing well.
11. Deal With Page and Post RevisionsOne of the biggest culprits for slow loading speeds is your page and post revisions. Every time you edit a page or post, WordPress saves each revision — but it’s likely that you really don’t need all those old revisions! Plugins such as WP-Sweep make it easy to delete these old revisions, but be sure to make a backup before you start. You might also want to consider limiting the number of revisions WordPress makes – or even disabling the revisions function entirely. To limit the number of revisions stored or to disable revisions, you’ll need to edit the wp-config file. You can access this through your hosting control panel or via FTP. Add this code to set the revisions to a maximum of three: define( ‘WP_POST_REVISIONS’, 3 ); Add this code to disable revisions (one autosave version will still be retained per post),: define( ‘WP_POST_REVISIONS’, 0 );
12. Use Accelerated Mobile PagesAMP (Accelerated Mobile Pages) is a recent development in the world of SEO. Not only does it make your pages load almost instantly on mobile devices, but it also improves your Google search rankings. AMP is completely CSS-based, which is one of the reasons that it’s so fast. Another feature of AMP is that it effectively forces you to streamline your website and avoid using inline CSS and animations that tend to slow down your website. AMP by Automattic is a plugin developed by the company behind WordPress itself. It makes using AMP a simple process: install, activate, and you’re done. Alternatively, for more customization options, you could use AMP for WP – Accelerated Mobile Pages. This plugin allows you to add custom code, set up Google Analytics, and much more.
#13. Use Optimization to Speed Up Your HomepageIn most cases, your homepage is the first page that your visitors will land on, so it needs to load as quickly as possible. There are a number of things you can do:
- Using excerpts instead of displaying the full post
- Not using social sharing widgets on your homepage (reserve these for posts and internal pages)
- Not using widgets on your homepage layout
- Going for a minimalist look: this is better for both your loading speeds and your visitors’ user experience (UX)
#14. Use Media Offloading ServicesIf your website is home to large downloadable files like videos, games, audio, and PDFs, this can have a huge impact on your whole site. Ideally, you want to offload these files from your own hosting space to dedicated media hosting services. Two popular media offloading services include Amazon S3 and Google Cloud Storage.
#15. Prevent HotlinkingHotlinking is when other people link to your files from their own websites. Not only does it steal bandwidth from you, but it also increases the burden on your server. If you have infographics, for example, you may find that a lot of websites are directly linking to the image files and slowing down your website as a result. It’s a simple enough process to prevent hotlinking – you just have to insert a piece of code into your root .htaccess file.
#16. Audit Your WordPress Website to Identify BottlenecksIf you’ve done all you can to speed up your website but are still experiencing performance issues, there are tools you can use to find the source of the problem. For instance, performance monitoring software such as New Relic enables you to identify slow plugins and problems with database optimization. The Query Monitor plugin is also an excellent choice for discovering and resolving performance issues.
Act Now to Boost Your WordPress WebsiteThese are just a few of the more immediately actionable ways in which you can improve the speed of your WordPress website. It’s also a good idea to regularly monitor the performance of your website – and we have a helpful list of the 7 Best Website Monitor Plugins and Tools for WordPress to get you started. If it’s time for a new web host, check out our list of the Best Managed WordPress Hosting providers.