Ways to make your wordpress load faster
March 14, 2010 by: adminEveryone wants to speed up their web pages. There are many ways to decrease the load time of your wordpress website. That includes caching your query results, pages and script outputs, minimizing number of files associated with each page, compressing files etc. There are some steps that you can follow for your wordpress based blog/website. Try these suggestions if you feel your wordpress is slow.
- Analyze current load time: There are many free tools available for analysing the speed of your website. You can use firefox plugins like YSlow (Integrated with firebug)from Yahoo or Pagespeed from Google. That gives you complete detail of Page load time, external references etc and suggest you on the optimization. You can also use online tools like Pingdom
- APC: "Alternative php cache" caches php queries.
- Mysql Query cache: http://wordpress.org/extend/plugins/db-cache-reloaded/ Caches outputs of mysql queries. So, reduces load on mysql and cpu.
- Page cache plugins: wp-cache and wp-supercache are plugins that stores static html versions of generated wordpress pages. When a visitor requests a page, it delivers cached files instead of calling all php functions and executing database queries again hence minimizing the load time a lot. ached files should be delivered. Wp-Supercache is one of the best wordpress plugins out there.
- CDN: Content delivery networks are used to serve static contents of the websites without using the server bandwidth. It will impact on the speed as well. There are many CDN services available out there including popular Amazon Cludefront http://aws.amazon.com/cloudfront/ and free Coral CDN http://www.coralcdn.org. You can use Free CDN plugin to enable this.
- Minify: Minification is the process of removing all unnecessary characters from source code, without changing its functionality. These unnecessary characters usually include white space characters, new line characters, comments and sometimes block delimiters; which are used to add readability to the code, but are not required for it to execute.
- Optimise your theme: Your theme might be responsible for slowing down your website. Try to minimize your database operations and optimize your code by reducing function calls.
- Use less plugins: Use a plugin if you are sure you need it. Some plugins consume more resource than even wordpress core. So, if you feel your website is slow, review the plugins you used. Dont install any plugins that are not used.
- Check your server configuration: Make sure your web host is optimized for wordpress.
- Replace php queries with static html codes: There are many function calls that are made in your theme just to produce something that is already known to you. You can just avoid that and use static html codes instead. For ex:
- Host your images in flicker/picasa: There are many free image hosting website available. You can use one to reduce load on your server. There are many plugins to help you do this including constructing a photo gallery.
- Height and Width tags for images: Make sure you use these tags for your images. This will speed up page generation in the browser.
- CSS sprites
- Use scripts in separate files
- Css in the top, js in the bottom
- Disable unused plugins
- if (function_exists
- Optimize DB: Optimize your database table periodically. You can use command for this or use tools like phpmyadmin. There are plugins available to do this, just google for!
- Reduce Image Size
- Restrict content in page -Use excerpt, page navi, split comments per page


Pretty good post, but I wish you included links and example code to support these bullets. I have made my own WordPress Optimization Guide…. let me know what you think!
I wanted to let you know you wrote a great article.