Is your WordPress blog performing very good? How much time does it take to load? Is it fast or sluggish? Your blog’s performance is one of the major factors in ensuring that the users are having a fine experience with your blog. So I personally feel that it is worthwhile to spend some time optimizing the site for performance. In this article(WordPress optimization tips) you will see listed various tips and tricks on how to speed up a WordPress blog.
Before moving into the optimization tips, I recommend you to measure the current performance of the site, so you have some idea to compare against after you make the changes and check how it has affected the performance.
How to Measure the Performance of a Blog
Combination of the following tools can be used to measure the performance of your blog.
1) PageSpeed Insights
Use the PageSpeed Insights tool from Google to measure performance.Try to get a score of 80+ out of 100. PageSpeed Insights analyzes web pages and suggests procedures to improve their performance based on a set of rules for high-performance web pages.
You can also use YSlow addon for Chrome or Firefox for measuring the page load time of a blog. YSlow has an add-on integrated with the Firebug web development tool.
The site itself takes about 23 seconds to load which is not good page loading time. Some optimization could help!
3) Manual Observation
A stopwatch can also be used on your computer (or an online one) to test how long it takes to load a blog.
4) Database Questions
The number of database queries a webpage takes to load the page have impact on the page load time. The following piece of code is used in the footer of your theme to find out how many databases queries are made by page
Make sure the webpage is not making any unnecessary database queries.
5) Speed Tester
You can use the website speed tester to find out how fast your blog loads.
WordPress optimization tips
- Upgrade to the latest WordPress release
- Use W3 Total Cache WordPress plugin. W3 Total Cache is very good.
- Optimize your images so they load quickly.
- Kill some plugins that are unnecessary or doesn’t add much value to your site.Disable or delete those plugins.
- Optimize and Repair your Database from PHPMyAdmin. wp optimize plugin can be used for this purpose.
- Check your theme Code.
- Get good web hosting service.
Intermediate to Advanced WordPress optimization Tips
- Use a good hosting provider .
- Keep your page sizes less than 200kb. Avoid using unnecessary images and videos on a page. Always compress the images.
- Combine CSS files into one big CSS file.
- Use sub-domains to share the load.
- Minimize simple unnecessary PHP queries. For example, instead of using <?php get_bloginfo(‘wpurl’); ?> just replace it with your WordPress installation URL so the browser can simply read it instead of making a query.
- Use external scripts. Instead of placing tons of code in your header.php file, put the code in external scripts. This allows the browser to cache the script so it won’t have to read it for every other page.
- Add far future expires header to images
- Don’t use ETags unless you are taking advantage of it.