50 Responses

  1. Hafiz Rahman // January 4th, 2008 at 6:32 pm

    The last point is particularly helpful. Why I didn’t think about hardcoding certain obvious values before? Thanks for the info, gotta modify header.php :)

    The title tag might need to stay dynamic, though. For single post and so forth.

    Anyways, I was expecting to read something about using caching plugin, or even redirecting to a html version during extremely high traffic (like David Airey with one of his posts about the cracking), but then again the title of this post says “simple ways”. So it’s all good.

    Cheers!

  2. Thássius V. // January 4th, 2008 at 6:48 pm

    Great tips. Talking about the first one, the new version of WordPress makes it even easier to have up to date plugins because it tells users when there are new versions of these plugins.

    I recommend the plugin WordPress Automatic Upgrade, which makes the updating proccess as simple as pressing one button.

  3. Thássius V. // January 4th, 2008 at 6:49 pm

    I came up with a question… On my blog I have tons of plugins, but almost all of them are disabled. If I completely delete them from my Plugins folder, would it make any difference in the blog’s speed?

  4. Nathan Chapman // January 4th, 2008 at 7:31 pm

    About your example to remove whitespace from CSS code, you could download a version with white space to your computer, then upload a version without any whtiespace to your server.
    Then, if you need to change soemthing you have the easy-to-read version on your local computer.
    A good online service for formatting and removing whitespace is the CSS Formatter and Optimizer, an online tool.

  5. Blogging Magazin // January 4th, 2008 at 7:32 pm

    I guess another important tip is to enable WordPress cache. This is a great feature of the system and can speed up the site.

  6. Hafiz Rahman // January 4th, 2008 at 10:11 pm

    @ Thássius V. : Disabling alone should be enough to speed up WordPress. Deleting them will save you space, but won’t increase the speed anymore.

  7. Bram // January 5th, 2008 at 8:01 am

    Some of these things actually made sense to me!

    Especially the queries etc, i didn’t think about that before!

  8. Thássius V. // January 5th, 2008 at 9:44 am

    Once I heard about a plugin called WP Super Cache. Somebody said it makes blog loading even faster than WP-Cache does. WPCandy could try it and tell its users the results.

  9. Michael Castilla // January 5th, 2008 at 10:15 am

    @Bram: Haha, yeah after doing some research, I learned a ton of stuff I hadn’t known before.

    @Thássius: I think I’ll do that. I’ll go install it now and see what’s up. I know a friend who uses it for when he receives a lot of traffic and he says it helps a ton.

  10. kahi // January 6th, 2008 at 11:38 am

    I love when people write about things they know really well. But I don’t think this article is that case. Try to research, try to measure and you will get know that these advices have almost no influence on performance.

  11. Michael Castilla // January 6th, 2008 at 12:15 pm

    @Kahi: I did do my research and the things I listed here in this post is what I found as a result of my research.

  12. kahi // January 6th, 2008 at 3:17 pm

    @Michael Castilla: What do you mean by research? I speak about exactly expressable values. DB queries and generation times before all. Do you have some numbers?

  13. bboywicked // January 6th, 2008 at 7:16 pm

    I love this, very helpful! :D thank you so much for the tips and the great post. Keep it up!

  14. Julian Johannesen // January 6th, 2008 at 9:20 pm

    how much does decreasing whitespace in your css really speed things up? are we talking 1% faster? 10% faster?

  15. Thássius V. // January 6th, 2008 at 11:07 pm

    @Julian Johannesen: Depends on the situations. By decreasing whitespace in the CSS, it makes the file smaller and faster to be loaded by user. Using the CSS Formatter and Optimizer, I could make my CSS file 30% smaller.

  16. hellyeahdude.com // January 8th, 2008 at 3:11 am

    Thassius is correct Julian. Decreasing the file size will speed things up. Think about downloading a file, the smaller the file, the better chance you have of getting it right away. Faster someone can download, faster the browser can start decoding and translating the code.

    But with modern-day browsers and internet speeds, it probably won’t matter too much. The good benefit of using single line CSS is the ability to go back and be able to read and fix much easier. It is much simpler to find the DIV ID’s as well as being much faster for hand coding out CSS. Single line CSS fan right hurr!

  17. Jermayn Parker // January 8th, 2008 at 11:03 pm

    Whats up Kahi’s bum???

    I do agree that while this is a spot on article, something new could have been a better option (like the plugin Thássius V. suggested).

    In saying that i do like the idea of cutting down the php querries in the header, boy does that not get messy at times??

  18. kahi // January 9th, 2008 at 12:37 pm

    @Jermayn Parker - it’s all about that listening to advices in this article is wasting of time withou any effect, sure probably except the “disable unused plugins” advice.

    By the way, making header static (point 5) does not cause any queries-count decrease, it’s mistake, advicing based on guess.

  19. Weekend Roundup #15 » Blogging News and Reviews // JaypeeOnline // January 13th, 2008 at 3:22 am

    [...] your WordPress blog running slow? Here’s 4 simple ways to speed up WordPress. Via WPCandy. After reading this post, I realize that I have a lot of cleaning up to [...]

  20. Mosey // January 13th, 2008 at 11:05 am

    The last point is a huge revelation for me, thanks! :D Never quite thought about that before. With regards to the CSS, does the short-hand form work for all browsers?

  21. Michael Castilla // January 13th, 2008 at 12:56 pm

    @Mosey: Haha no problem. And yes I’m pretty sure short-hand CSS works in all browsers, since it’s just leaving out spaces.

  22. Destos // January 15th, 2008 at 1:54 pm

    @kahi and @Michael
    I believe kahi is correct on your last point and you might want to redact if before everyone start taking out that vital dynamic content from their headers. I am pretty sure Wordpress autoloads all those values from the database in one query and then just servers the values from php’s memory.

    To test this you could use wordpress’s query number display code which i don’t know off the top of my head. And just check and see if the total amount of queries lessens.

  23. CreativeBurst.ORG » Hacking Wordpress // January 21st, 2008 at 10:23 am

    [...] 4 Simple Ways To Speed Up WordPress [...]

  24. Chris Thomson // January 21st, 2008 at 5:25 pm

    Thanks for the helpful tips! Now I’ve gotta implement these…

  25. Jeffro2pt0 // January 22nd, 2008 at 3:04 am

    Great tips. One of the easiest things you could do to speed up the loading of your site is to minimize or eliminate third party services/widgets from being used on your blog. If the 3rd party site is loading slow, it’s going to cause the blogs it’s displaying on to also load slowly. Whenever possible, substitute a thirdparty service/widget with a WordPress plugin. This helps keep things local to your blog.

  26. fikirbozan // January 23rd, 2008 at 7:13 am

    Thanx a lot. These are very useful. I will try!

  27. Angel Romero // January 24th, 2008 at 1:54 pm

    Very, very helpful article. I am about 4 months into the whole Wordpress movement and some of these seem obvious. However, I simply did not think about them being issues. Thanks a lot.

  28. Peter // January 26th, 2008 at 6:21 am

    Interesting article :

    http://aciddrop.com/2008/01/21/boost-your-website-load-time-with-3-lines-of-code/

    Please read through the comments for WP related issues and follow-up in new releases of the script ( 0.3.1 at the time of writing )

    More thoughts on this issue ( read the comments as well please )

    http://paulstamatiou.com/2006/06/22/5-ways-to-speed-up-your-site

  29. WordPress’i Hızlandırmanın 4 Basit Yolu | Cnkt // February 8th, 2008 at 6:30 am

    [...] 4 Ocak 2008 tarihinde İngilizce olarak wpcandy.com sitesinde Michael Castilla tarafından http://wpcandy.com/4-simple-ways-to-speed-up-wordpress/ adresinde [...]

  30. Achmatim.Net ~ Achmad Solichin » Blog Archive » 4 Tips untuk Mempercepat WordPress Anda // February 11th, 2008 at 9:14 pm

    [...] ini ditulis berdasarkan artikel di situs WPCandy.Com     Post a [...]

  31. Як захистити і покращити свій Wordpress - Blogoreader 2.6 – українська блоґосфера - блоґи, новини, статті, персони // February 13th, 2008 at 12:04 am

    [...] матеріали: WPCandy, Matt [...]

  32. WordPress’i hızlandırmak | YusufWeb.Net // February 13th, 2008 at 10:29 am

    [...] sizin için avantaj getirecektir. Öncelikle Michael Castilla‘nın ingilizce olarak derlediği yazının Cnkt tarafından yapılan Türkçe çevirisini okuyabilirsiniz. Zorbey.org‘da da bu konuyla [...]

  33. Notdefteri » Blog Arşivi » WordPress’i hızlandırmak // February 14th, 2008 at 5:25 am

    [...] sizin için avantaj getirecektir. Öncelikle Michael Castilla‘nın ingilizce olarak derlediği yazının Cnkt tarafından yapılan Türkçe çevirisini okuyabilirsiniz. Zorbey.org‘da da bu konuyla [...]

  34. WordPress’i hızlandırmak | # MujaHeed.ORG // February 15th, 2008 at 4:46 pm

    [...] sizin için avantaj getirecektir. Öncelikle Michael Castilla‘nın ingilizce olarak derlediği yazının Cnkt tarafından yapılan Türkçe çevirisini okuyabilirsiniz. Zorbey.org‘da da bu konuyla [...]

  35. Max R // February 20th, 2008 at 10:02 am

    Some observations:

    The thing about removing queries and other PHP stuff: not every one has the same impact. WP actually tries to cache lots of stuff in memory, so that even when you place several functions that’d normally require a trip to the database get pulled from cache instead. That way, instead of the overhead of a database query, you only have the (much smaller, IMO mostly negligible overhead of a PHP function.

    There’s a very small overhead in using php functions (in general) vs just putting in some static html. It’s there, but it’s small. You should consider each case separately to see if the speed benefit outweighs the convenience of keeping things dynamic.

    Compressing CSS, JS and even HTML are not only interesting from a visitor bandwidth viewpoint (even though there’s still folks that don’t have 20Mbit connections at their disposal, don’t disregard them!), there’s also your own bandwidth to consider, especially if you get the occasional traffic spike. Also, minimizing the amount of stuff that gets called from your page (CSS files, JS files, images, etc): the visitor’s browser will open up a new connection for every single one, slowing things down. Don’t just minimize connections to other sites, keep an eye on connections to your own site as well. One big issue is that lots of WP plugins come with their own versions of prototype.js and the like, while there’s a version included with WP itself — so in the end you’ll end up with three different versions of prototype.js being included on your page. Bah.

    Here’s a great tool to test the impact of making your code smaller and less dependant on external stuff.

    I like your article, but there’s so much more to discover when it comes to getting your sites smaller and faster. Initially, that’s all I wanted to say. Sorry about going on and on. =]

  36. Geek Mother // February 28th, 2008 at 9:15 am

    I heard that one plugin in particular could really slow down your blog is Text Control ( http://dev.wp-plugins.org/file/text-control/trunk/text-control.zip?format=raw)

    Can anyone verify that?

  37. 63 Essential Wordpress Hacks, Tutorials, Help Files and Cheats | Speckyboy - Wordpress and Design // March 9th, 2008 at 3:14 am

    [...] 4 Simple ways to Speed up Wordpress (Source: WP [...]

  38. 63 essenziali Wordpress Hacks, Tutorials, Help Files e Cheats : technorati.it // March 13th, 2008 at 2:43 am

    [...] 4 Simple ways to Speed up Wordpress (Source: WP [...]

  39. Wordpress Tutorials/Hacks « The house of software freeware // March 13th, 2008 at 3:53 am

    [...] 4 Simple ways to Speed up Wordpress (Source: WP [...]

  40. 63 Essential Wordpress Hacks, Tutorials, Help Files and Cheats | Speckyboy - Wordpress and Design » 쟈스민(JASMIN) // March 23rd, 2008 at 10:46 am

    [...] 4 Simple ways to Speed up Wordpress (Source: WP [...]

  41. Wordpress Kurulumu - 3! Kod Optimizasyonu! | alialtugkoca // April 12th, 2008 at 6:03 am

    [...] 4 Simple Way To Speed Wordpress [...]

  42. Все о Wordpress » Blog Archive » Лучшие ресурсы для пользователей WordPress // April 17th, 2008 at 3:58 am

    [...] (или справочный лист по WordPress) (см. также advanced help sheet ). Four Simple Ways to Speed Up WordPress (или Четыре простых способа ускорить WordPress) также [...]

  43. Все о Wordpress » Blog Archive » 4 простых способа улучшения быстродействия WordPress // April 18th, 2008 at 9:40 am

    [...] Оригинал статьи: 4 Simple Ways To Speed Up WordPress [...]

  44. 38 ways to optimize and speed up your WordPress blog | WordPressGarage.com // April 23rd, 2008 at 7:52 am

    [...] with static HTML, every time a page loads, your browser just reads the HTML. An example from WP Candy: With PHP requests: <title><?php bloginfo(’name’); ?><?php [...]

  45. [11] Як захистити і покращити свій Wordpress // April 24th, 2008 at 6:26 am

    [...] матеріали: WPCandy, Matt [...]

  46. 155 Wordpress Resources, Tutorials, Plugins, Themes, AJAX, Podcasting…WP Monster List | Speckyboy - Wordpress and Design // April 27th, 2008 at 12:52 pm

    [...] Daily Blog Posting To Your WordPress Blog. 124. Huge Compilation of WordPress Code. 125. 4 Simple ways to Speed up Wordpress. 126. WordPress Date Button. (Source: WP Designer. 127. Wicked WordPress Archives in One Easy Step! [...]

  47. Sumesh // April 29th, 2008 at 12:16 am

    Going with #2, also clear out database tables created by plugins.

    Instead of writing CSS without any whitespace (which makes it unreadable, a better idea is to write CSS in the normal way and compress it with CSSClean (don’t be too aggressive on compression lest it strips out necessary rules). [oh wait, I just noticed it has been told by someone else. Oh well!]

    The PHP engine is infinitely faster than MySQL, so the only thing of concern is database queries. However, in case of traffic spike, PHP can be a bottleneck too.

  48. Sumber Inspirasi Terbaik Untuk WordPress User | purnomo.name // May 2nd, 2008 at 9:28 pm

    [...] Diantara posting terbaiknya adalah WordPress Help Sheet (lihat juga advanced help sheet). Four Simple Ways to Speed Up WordPress merupakan informasi yang sangat berguna untuk Anda pengguna WordPress yang hosting [...]

  49. Speed Up WordPress Blog // May 5th, 2008 at 1:20 am

    [...] 4 Simple ways to speed up WordPress [...]

  50. Web Hosting Sri Lanka // May 9th, 2008 at 4:58 am

    Cool info. Thanks for sharing.

Leave a reply