How to speed up WordPress
For users to feel they are interacting freely the response time must be within 1 second. This is a blog post about how you reach that goal with the help of some simple Wordpress plugins, Firefox extensions and more.
40 years ago Robert B. Miller wrote a paper on ‘Response Time in Man-Computer Conversational Transactions’ which described three levels of response time. A response time of 0.1 seconds feels instantaneous. A response time within 1 second is fast enough for users to feel they are interacting freely and if the response time go above 10 seconds the user’s will lose its focus on the dialog. Miller concluded that a consistent 2 second response would be ideal.
Then the Internet happened and the rules were changed. In 2001 Zona Research released report that stated that the average web user will wait about eight seconds for a page to download, later known as the ’8 second rule’.
For a long time, by Internet standards, the 8 second rule misguided web workers to create web pages that just barely keeps the user focused. If you already haven’t it’s really the time to create a web page that get your users to feel they are interacting freely. Its time to create a web page that loads up at a lot close to 1 second than 8.
Dust-Me Selectors a Firefox extension
Dust-Me Selectors is a Firefox extension that finds unused CSS selectors. You can test pages individually, or spider an entire site, and you’ll end up with a profile of which selectors are not used anywhere. Essentially it removes unnecessary data that is transferred to the user.
Download Dust-Me Selectors from Sitepoint
WP CSS a WordPress plugin
<link rel="stylesheet" href="/wp-css-compress.php?f=style.css" type="text/css" />
This plugin will combine all your stylesheets in to one, thus reduce the number of HTTP requests required to render the page. It will also strip your files from whitespaces, compress it with GZIP and set a cache expiry time of your choosing.
Download WP CSS from WordPress
WP JS a WordPress plugin
<script src="wp-js-compress.php?f=1.js,2.js,3.js" type="text/javascript"></script>
This plugin will GZIP and JSMIN your JavaScript files as well as allowing the ability to put JavaScript files into a single file at the client’s end. Just like the WP CSS plugin this will reduce the number of HTTP requests and lower your blogs response time.
Download WP JS from WordPress
WP Super Cache a WordPress plugin
This plugin generates static html files from your dynamic WordPress blog. After a html file is generated your webserver will serve that file instead of processing the comparatively heavier and more expensive WordPress PHP scripts. Super Cache also has the feature to compress your html files using GZIP. There is also a special version of WP Super Cache which has the ability to minify HTML.
Download WP Super Cache from WordPress
Download WP Super Cache with WPSCMin from Lyncd
Optimize DB a WordPress plugin
This plugin lets you optimize the tables of your database, to reduce their overhead.
Download Optimize DB from WordPress
Yahoo YSlow a Firefox Firebug extension
YSlow analyzes web pages and suggests ways to improve their performance based on a set of rules for high performance web pages. It lets you know if you have too many DOM elements, if your javascripts are positioned wrong, if you compression is working and much, much more.
Download YSlow from Yahoo
Last, but not least. Upgrade and do a clean up.
Upgrade WordPress to the latest version. Remove the plugins you are not using and upgrade those you are. Keep your code light. Try to code what you want to code with as few words as elements, attributes and functions as possible. Minimize requests, use css sprites and read Yahoos guide about ‘Best Practices for Speeding Up Your Web Site’.
Comments
Make a comment
Projects
- Accordion (jQuery)
- Airport (jQuery)
- Defaultvalue (jQuery)
- Elastic (jQuery)
- Highlight (jQuery)
- Keycan
- Lazy (jQuery)
- Limit (jQuery)
- Password Strength (jQuery)
- Show Password (jQuery)
- Tabify (jQuery)
- Valid8 (jQuery)
Latest posts
- July 8th, 2009 Why are we typing passwords twice?
- July 5th, 2009 Don’t stop password masking; let the user decide
- June 1st, 2009 You can’t validate email addresses with regular expressions
- May 20th, 2009 Konami Code: Why so verbose, when you can make it in 140 characters?
- May 18th, 2009 Let your users know if Firebug slows down your web page.
This was quite thorough!
I only knew about Optimize DB and Dust-Me Selectors. And I’ve been using Minify for CSS and JS shrinking, but now I think I’ll give these plug-ins a try.
Thanks!