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 YSlow Firefox addon to measure the page load time of a site. YSlow analyzes web pages and suggests ways to improve their performance based on a set of rules for high performance web pages. 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!
2. 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.
3. You can use the website speed tester to find out how fast your site loads.
Website Speed Tester
4. 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 wp super cache Wordpress plugin.
- 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.
Tags: Site Optimization Tips, Web development, Wordpress, WordPress Tweaks








#1 by Dimmka on May 30, 2009 - 5:12 pm
Как по мне – тема раскрыта четко, спасибо за пост!
#2 by Towel on May 31, 2009 - 12:21 am
I’ve just noticed a couple of url requests same you mention: and a couple of similar in one of my ‘on the fly’ scripts so must look at replacing for the hardcoded domain/URL there.
#3 by George Serradinho on June 12, 2009 - 2:29 am
Hi,
thanks for this, really needed to check how my site performs.
I used the speed test from iwebtool and my site’s home page loaded in 1.22 seconds.
#4 by DDlinks on July 14, 2009 - 2:23 am
thank u for the great tips
#5 by JaY Srivastava on September 12, 2009 - 2:05 pm
Simply Awesome, Thanks i have used some of them on my website as well
Thanks.
JaY Srivastava´s last blog ..Dell 9.99mm Adamo XPS ultraportable teaser kicks-off
#6 by Bill on November 7, 2009 - 4:33 pm
got a need for speed using web optimizer and hyper cache with thesis 1.6 Yslow 88
Gunning for 90+
I saw a post here that I cannot find with the specific instructions on how to transfer css to one file but cannot find it now. please advise. wonder if this can be employed in custom.css within Thesis (asking them)
Bill´s last blog ..Republican Women Convention, Nov 13-15
#7 by janice on December 8, 2009 - 11:18 pm
Nice article – the web optimizer seriously broke my site, wouldn’t touch it again. WPCache works well for me.
#8 by Keith Davis on December 21, 2009 - 2:56 pm
Google Webmaster tools now has a section for page upload time.
I checked all my html sites and they were all super fast.
My Wordpress site was super slow. What a disappointment after all the hype about Wordpress.
I’ve just started looking round for tutorials giving advice on speeding up Wordpress sites and came across this post.
wp super cache seems to be the plugin that everyone uses…. will probably start there.
Keith Davis´s last blog ..The eyes have it!
#9 by hotels in Turkey on December 30, 2009 - 5:27 am
website speed tools should be like this. very useful and easy…
hotels in Turkey´s last blog ..Buying Properties in Turkey | 2 Star Hotel for Sale Turkey | Turkish Hotel Buy | Marmaris
#10 by Bill on January 10, 2010 - 6:17 pm
Really informative , being a beginner i learn many things from it. thanks for sharing it.
#11 by Amal Roy on January 31, 2010 - 9:23 pm
Now Thats what i call pro tips. I have implemented ome of theme in my site. I it loads really fast now.
Thanks Friend
Amal Roy´s last blog ..How To Update Kaspersky Manually / Offline (without Internet) Step By Step Guide
#12 by 搞笑图片 on March 1, 2010 - 12:45 am
Thanks for the optimization tips.
The Yslow is the best
#13 by Webdesign Roosendaal on March 4, 2010 - 12:57 pm
Nice. I’ve done some research in optimizing Apache servers and here are a few tips to Google more about:
- turn off eTag. It’s mostly used to put an extra label on images, but the Last-Modified header can be used for that.
- turn on GZIP, but make sure you put some exceptions in the code for users of IE6.
- turn on Cache AND Expire headers. It’ll save you a lot of traffic.
Webdesign Roosendaal´s last blog ..Professionele presentatie bouwbureau Holm de Jong