This post will go over some of the main causes for a slow WordPress site and walkthrough some solutions that can help to speed up any WordPress website.
Diagnosing the Problem
There are a few tools that you can use to get an idea of where the problem(s) might lie.
First, run a test on a few of your website’s slowest pages on WebPagetest.org. WebPagetest is a tool developed by Google that will give you a high-level view of the performance of your site – from there, you can see which areas of your site need the most work.
The main metrics to look out for are as follows:
Time to First Byte – This is how long it takes for the server to start sending over content to be rendered by the browser. In the context of WordPress, this is often where you’ll see the biggest impact from running a lot of plugins.
Keep Alive Enabled – Any reputable web host should have this enabled. This allows multiple requests to be served via the same socket. If you don’t have this enabled, contact your web host or click here to read how to enable it.
Compress Images – Exactly what it sounds like, this grade indicates whether the images found on the submitted page were properly optimized for the web. Generally this means saving JPEGs with a quality of 70% or less in Photoshop – a very slight but noticeable decrease in image quality. This can make a huge difference if your theme is utilizing a lot of images.
Thankfully, this is an easy tweak, and just requires editing your .htaccess file in most cases. Placing the following rules above the “# Begin WordPress” comment should be enough to get you started:
Effective Use of CDN – If your website or blog has a large audience, you’ll want to look into using a CDN like Amazon Cloudfront to host your images and static files. This allows you to use the power and distribution of enterprise-grade servers to host your images, offering a clear performance benefit for users that are far away from your website’s actual server.
Speeding up WordPress even further
Once you’ve ran and understand the results of WebPagetest, you’ll likely need to do some tweaking to get WordPress running optimally on your setup. If you noticed a large Time to First Byte, try installing the P3 Plugin Performance Profiler by GoDaddy. This will let you run a scan of your site and should give you a decent idea of what plugins may be causing your WordPress site to run slowly.
If you’re using Google Chrome, I also highly recommend the PageSpeed Insights Chrome Extension. This adds a tab to your Chrome Developer Tools with more detailed suggestions from PageSpeed Insights:
Running a fast website means that you’ll need to stay updated with the latest standards and software. The best solution now may not be the best solution a few years down the road. A safe bet is to bookmark the official WordPress guide to optimization, which is updated regularly with best practices on speeding up WordPress.
Did we miss something, or do you have any tips or tricks for speeding up WordPress that you’d like to share? Let us know in the comments below!