WordPress Optimization Tips and Tricks for Better Performance and Speed
Categories: Blog Setup, Featured, Site Optimization Tips, Wordpress
Is your WordPress blog performing at it’s best? How quickly does the page load? Is it sluggish? Your website’s performance is one of the key factors in ensuring that the visitors are having a good experience with your site. So I personally think it is worthwhile to spend some time tuning/optimizing the site for performance. In this article I have listed various tips and tricks on how to speed up a WordPress Site.
Before diving into the optimization tips and tricks I recommend measuring the current performance of the site so you have some benchmarking figures to compare against after you make the changes and see how it has affected the performance.
![]()
How to Measure the Performance of a Site
1. I use the Page Speed tool from Google to measure performance and try to achieve a score of 85+ out of 100. Page speed has a browser addon to measure the performance of a site. Page Speed analyzes web pages and suggests ways to improve their performance based on a set of rules for high performance web pages.

2. You can also use YSlow Firefox addon to measure the page load time of a site. YSlow is a Firefox add-on integrated with the Firebug web development tool. So to use YSlow you will have to get the Firebug addon and then install the YSlow addon.
![]()
The site in question takes about 23 secons to load which is not a very good page loading time. Some optimization could help!
3. The number of database queries a webpage makes to load the page have an effect on the page load time. You can use the following piece of code in the footer of your theme to find out how many database queries a page is making:
Make sure the webpage is not making any unnecessary database queries.
4. You can use the website speed tester to find out how fast your site loads.
Website Speed Tester
5. You can also use the stopwatch on numion.com to test how long it takes to load a webpage.
Basic WordPress Site Optimization Tips and Tricks
- Upgrade to the latest wordpress release (you should be doing this for security reasons anyway)
- Use W3 Total Cache WordPress plugin (Forget WP Super Cache). W3 Total Cache is just awesome… even I use it

- 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.
- Load javascripts in the footer (The golden rule – CSS on top, javascript on bottom)
- Kill some plugins that are unnecesary or doesn’t add much value to your site (Disable or delete these plugins)
- Optimize and Repair your Database from myPhpAdmin. You can use the Optimize DB plugin that does this for you.
- Check your theme Code (Use valid HTML code)
- Get a Good hosting
Intermediate to Advanced Optimization Tips
- Keep your page sizes less than 100kb. Do not use too many unnecessary images and video on a page. Always compress the images appropriately.
- Combine css files into one big css file (One 50kb file loads a lot faster than five 10kb files)
- Combine javascripts into one big file.
- Reduce the number of dynamic PHP and http calls (Use subdomains to share the load)
- Use external scripts. Instead of placing tons of code in your header.php file, use 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, CSS and javascript files (How to Add far future expires header).
- Don’t use ETags unless you are taking advantage of it (How to configure ETags).
You can use the PHP speedy WordPress plugin which takes care of few of the tips mentioned above. The Plugins to Speed Up Your WordPress Site article is also a good read.
Articles you may also like:









#1 by Sandy Allain on January 26, 2012 - 11:11 pm
These tips are awesome! While most people would just hire a seo consultant and leave all the work to him, it often results in a clunky site as the consultant works on promoting the site and not optimizing it. That causes the users to experience more lag when the number of visitors increase and nothing is done about the site. Cheers to an optimized website for everyone!
#2 by Videos2worship on January 17, 2012 - 6:44 pm
Awesome tips. It made a huge difference on my site. Any ideas how to apply CSS sprite?
#3 by Leet Computing on December 23, 2011 - 2:36 pm
First of all… very good tips! you wrote this a while back but it all still very useful. I too love W3 Total Cache. I used to use WP super cache but i found it buggy. I definitely would say that site performance is quite a strong factor now in google’s algorithm as i’ve been tweaking the hell out of my sites for more speed and have seen a pleasant rise in rankings.
#4 by film streaming on December 11, 2011 - 6:30 pm
Thanks for the tips & tricks.
Don’t forget that two other major speed factors of a website (not just wordpress) are the geographical location of the server, and the actual speed of the server.
#5 by murtaza kanpurwala on October 10, 2011 - 9:39 am
wp cache is good plug in
Also the css and js can be compressed
#6 by Ben Smith on October 6, 2011 - 2:55 pm
I tend to make sure images are well optimised but still look good, as you still need to showcase your products / services. Ive never heard of YSLOW, I use Googles Page Speed tool, but I will give it a try as Im using FF more now.
#7 by Josh on September 16, 2011 - 8:43 am
Try using DustMe CSS Selectors for identifying unused CSS selectors
#8 by web design on September 13, 2011 - 7:35 am
yslow and pagespeed are great tools
been working on site speed for years; only recently have its benefits been proven
A+
#9 by Sean on August 19, 2011 - 3:13 am
HI,
It is just not try. But it really work to make fast speed in php. Thanks Guru.
#10 by Mcneri Tech and Public Health Blog on August 18, 2011 - 1:08 pm
Thank you for such a comprehensive and concise post. You have touched on a lot of the things I have implemented or tested in the last two weeks since I converged my blogs into one megablog. I like WP Supercahe and WP total cache. They are works of art equivalent to Michelangelo! You did not talk about Yottaa, a service that monitors websites and evaluates them based on various benchmarks including YSlow. I have been toying with it these last few days too. Another relatively new service is Incapsula, a reverse DNS provider and Cloudflare, another reverse DNS provider. They help by caching some of your files offsite and distributing these files from their various servers across the globe. An additional thing that I noticed especially with Cloudflare is that at the medium setting, Akismet goes on holiday. It filters quite a number of spam IPs and spam bots.
Thank you for your great website and blog articles.
#11 by Freeview Recorder on August 14, 2011 - 1:32 pm
Thanks for the tips & tricks.
Don’t forget that two other major speed factors of a website (not just wordpress) are the geographical location of the server, and the actual speed of the server.
A cheap webserver at the opposite end of the earth to the main users of the website is not a good idea !
#12 by khasiat madu on July 29, 2011 - 2:01 am
I am a WP user and found your tips very useful. Maybe it is useful to list of all the variables (including the location) where the tweaks can be made too. My site loading time improved from average 2.6 seconds to 1.8 seconds!
#13 by Colorado SEO Consultants on July 21, 2011 - 5:37 am
While my site isn’t too heavy, we still had some annoying lag issues, which is not what you want clients to see as a first impression. I followed your advice elsewhere on this blog to minimize simple PHP queries and I cannot tell you what a huge difference it has made in overall page and total website load times. Thanks for that and all the other suggestions you’ve posted. Your blog has been a huge help with our optimization!
#14 by Reiki Edinburgh on July 7, 2011 - 3:39 pm
Some excellent optimization tips here. Something that so many web designers overlook and yet one of the most important points.
#15 by Steve on June 27, 2011 - 3:28 pm
These are great tips! I use Total Cache but I haven’t heard of a few of the other tips so thank you for sharing.
#16 by Mark Sim on June 13, 2011 - 11:48 pm
Yslow is a great tool for checking the speed of a WordPress website. Always make sure that you have the latest version from WordPress.org. If you have an old version, chances might be your site will run slower so be sure to upgrade! Anyways, there are many useful tips here and they are guaranteed to work. Thanks for sharing some WordPress optimisation tips and tricks. Really appreciated!
#17 by Mahadir on June 12, 2011 - 10:39 am
I just installed W3 Total Cache on my WordPress blog. Thanks for this nice article. But I think WP Super Cache also a good plugin for speed optimizer, I’ll try know using W3 Total Cache and compare the difference.
#18 by Louis R. on May 21, 2011 - 1:01 am
Nice, Tried out the PHP Speedy, helped alot. Thanks
#19 by Willie @ laptop backpacks on May 20, 2011 - 1:18 pm
Hey man thanks for this great list! I actually haven’t been using any of these on my wordpress sites and I should be, my load times for my pages are sometimes just nasty and it has to change. I’m gonna put some of these tips to good use. Thanks!
- Willie P
#20 by Ashton on May 19, 2011 - 11:51 pm
you are awesome man given such a good post, it helps me a lot for my blog
thanks
#21 by murtaza on May 2, 2011 - 6:18 am
Nice one , i will implement it on my wordpress blog
#22 by Converse All Stars on April 26, 2011 - 7:08 pm
We all have a plenty of time, but we never have enough. The maximum time to load a website is 2 sec max.
#23 by Surseance van Betaling on April 11, 2011 - 5:23 pm
Hi, I’m always using a wordpress CMS to build a website. Easy to use, but sometimes a little bit slow to load a page. Thanks for your tips!
#24 by joomla on April 10, 2011 - 1:13 am
I use also min, details http://groups.google.com/group/minify
#25 by schiphol vertrek on March 26, 2011 - 2:01 pm
Please,please,please do a tutorial about setting up wordpress in combination with for example amazon cloud servers…!
#26 by Colorado SEO Consultant on March 20, 2011 - 11:49 pm
I would also invest more time to understand and use tags and category than anything else; so many WP pages have useless tags which end up being confusing and do not allow a reader to find what they want at all.
#27 by Slaapkamer Ideeen on March 14, 2011 - 9:21 pm
The quicker the page, the better. Im using WordPress, but for me it’s taking too much time to load a page. I have to work on it.
#28 by elle on March 7, 2011 - 5:13 am
Great tips! I really learned a lot from this post, thanks again.
Bargain Outlet
#29 by admin on February 12, 2011 - 2:24 am
I prefer to host the frequently used images on a cloud server because then the browser can do more parallel operations which gives you a slight performance boost.
#30 by aankomsttijdenschiphol on February 11, 2011 - 7:15 am
Is it better to host videos/ images on your server or is it better to use a cloud server like amazon or something?
#31 by Nicole Powel on January 27, 2011 - 7:16 am
hey
thanks for the tips, my website is just too slow, according to what I would like. I need to check how quickly does the page load.
Do you know how to optimize Magento?
best wishes
Nicole
#32 by Akash on January 26, 2011 - 10:30 pm
Nice article .
#33 by James on January 4, 2011 - 4:46 pm
Thanks for the tips. With the way Google is now giving more credit to sites that are faster, this helps a lot. For having a well groomed, fast site, Google might knock you down in the rankings.
#34 by Michael on December 31, 2010 - 4:51 am
Great tips on how to optimize my WP website.Thanks for all of your hard work!
#35 by Tony on December 28, 2010 - 12:25 am
Speed is very important. It is also an indicator of how important it should be according to some.
#36 by William@Forex Bulletproof on December 14, 2010 - 12:17 pm
Hello, many, many thanks for taking the time to share.. It was useful for my team. Thanks for all of your hard work!
.-= William@Forex Bulletproof´s last blog ..Forex BulletProof Review & Get 10 Off =-.
#37 by Aankomsttijden Schiphol on December 6, 2010 - 8:28 pm
I think website speed is so overrated…i have never had problems with my rankings and the speed factor..
#38 by Weekendje Scheveningen on November 12, 2010 - 10:08 am
Thanks for the “Basic WordPress Site Optimization Tips and Tricks” Will try them out!
#39 by Paul Web on October 29, 2010 - 1:04 am
Good pick with Yslow, it’s an excellent tool and I’ve used it for years to check the load speed and slow loading bits of my websites. It’s literally saved me tens of hours trying to find the best ways to tweak the speed of individual pages, and probably saved hundreds of hours of load lag!
#40 by koronis on October 16, 2010 - 7:52 am
Your suggestion on reducing the number of plugins brings to mind the possible advantages and positive impact that the new SEO all in one plugin from Yoast will have on improving site speed. Combining 7 popular and commonly used plugins into one plugin has to be a good move. I’m curious if anyone here has any experience with the new plugin still in Beta, but looking pretty solid.
.-= koronis´s last blog ..Buy Refurbished Laptops The First Step =-.
#41 by Justyna @Marketing with Wordpress on October 10, 2010 - 3:54 pm
hello!
I am impressed by the list. I totally agree that nowadays the speed of the website is quite important. So many new sites are build every single day, and even small issues matter. Your article reminds me of the famous 6 seconds to death. It takes 6 seconds to decide whether to stay on a site or not.
Thanks for the list, I will definitely use it.
Justyna
.-= Justyna @Marketing with WordPress´s last blog ..How to run a webinar – the key steps =-.
#42 by Mark @ Defuse on October 5, 2010 - 11:25 pm
Normally when starting wordpress optimization site speed comes to mind but php themes are usually slow if not customized.
.-= Mark @ Defuse´s last blog ..How do I optimize my network of websites =-.
#43 by Gerry @ Finest Laptops on August 25, 2010 - 11:00 pm
Couldn’t agree with you more on the suggestion to use W3 Super Cache. I had all kinds of problems with Super Cache and the installation of W3 Super Cache made a significant difference in load time and bandwidth used. As a suggestion anyone installing it check your bandwidth used in your cPanel AWSTATS and you will see what I mean. Thanks for the great tips.
.-= Gerry @ Finest Laptops´s last blog ..Laptops Under 1000 =-.
#44 by admin on August 25, 2010 - 10:48 pm
The latest version of W3 Total Cache works nicely with WordPress 3 and Thesis.
#45 by Martyna on August 25, 2010 - 9:48 am
Hallo
Thanks for the list. I will start with the YSlow. You mentioned that the traditional cache is slow. and proposed the W3 TOTAL CACHE. Do you know a new version of it that works well the the updated versions of WordPress and Thesis?
have a great day, best,
Martyna
.-= Martyna ´s last blog ..The Leadership Skills of the Future Part II =-.
#46 by ixwebhosting review on August 18, 2010 - 2:00 pm
One of the biggest performance boosts you can get from an application running on PHP is to install APC (Alternative PHP Cache) or any other opcode caching program. This caches the compiled binary PHP code in order to process future requests much faster. Best of all it requires no change to the PHP code to benefit from the speed.
.-= ixwebhosting review´s last blog ..IX Web Hosting Review =-.