PaulSpoerry.com

You found me… insights on technology, philosophy, Windows, hacking and more.
  • rss
  • Home
  • Archive
  • Links
  • Contact
  • Categories
  • Search
  • About

Diagnose slow WordPress performance using FireBug

PaulSpoerry | August 4, 2007

I have been pretty frustrated over the past few weeks with the performance of a few of my WordPress sites. At first I was convinced that it was my web host. perhaps it was their web or DB severs; perhaps that I’m on shared hosting. After putting up with it for a while I decided I needed to get to the bottom of the issue. It had to be my host, a plugin, or some content that it just to stinking big. I found an article by Idano called Nailing Down Slow Performance in Wordpress. The approach outlined entailed reverting to the default theme, disabling all plugins, and then one by one enabling the plugins to find the culprit. Sounds like a lot of work eh? I already know my theme is relatively heavy, but I like it so it’s not going anywhere. I suspected it might be a plugin… but did I REALLY want to go thru the process or turning them all off then one by one turning them back on? Naw…

Enter FireBug. Firebug integrates with Firefox to put a wealth of web development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page. If you don’t already have FireFox and FireBug, you should check them out…. particularly if you do any web development. For the record I typically use IE, I’m not anti-Microsoft or anything like that, but it’s nice to have FF and FB around for development purposes. Once installed enable FireBug by going Tools -> FireBug  and then deselecting the Disable FireBug check. Then go to Tools -> FireBug -> Open FireBug. At the bottom of the screen you’ll now see a console window for FireBug. Hit the NET tab and point your browser to your website.

What you’re seeing is the total number of requests made by the browser and how long each one took. With my standard plugins enabled, my homepage took a crazy 12.65 seconds to render! TOTALLY UNACCEPTABLE.

 siteperf 12seconds Diagnose slow WordPress performance using FireBug

I began scrolling through the results and immediately saw that the lightbox plugin, as well as an Amazon Context Links plugin were the cuplript (image below shows the lightbox stats).

siteperf lightbox Diagnose slow WordPress performance using FireBug

I then went to my plugins page and disabled each of the plugins. Removing those two plugins took my page render time down to 7.79 seconds. Better… but still not GOOD. I repeated the process above until I found another performance culprit… a call the the MyBlogLog tracker is taking 2.44 seconds. This is not a plugin, but a script code I added to the header of my website… 2.44 seconds, gone. I like MyBlogLog… but not that much.

So how much time did I shave off by removing the Lightbox, Amazon Context Links plugins and the MyBlogLog link tracker?

siteperf lightboxamazonbloglogdisabled Diagnose slow WordPress performance using FireBug

Yup… 9.06 seconds shaved off my front page load time. 3.59 seconds still isn’t excellent performance, but my front page usually has YouTub videos, linked images, etc. I then noticed the time to render a sidebar widget I put in place to show where else I can be found on the net was making a bunch of requests. I move it to my About Me page… nobody really click it anyway.

siteperf widget Diagnose slow WordPress performance using FireBug

In total my average front page load time is now down to about 3.2 seconds. I could probably do even better, but I’m happy with the performance increase so far. The average page on my site, when it’s mostly text, is down to around 1.5 seconds. w00t! Feel much more snappy!

FYI… if you CANNOT live without the lightbox effect, there’s a new Slimbox plugin, which claims to be a 7kb clone of the previous Lightbox plugins. I haven’t tried it yet… it’s a cool effect, but I’m not sure if it’s worth it.

[Post to Twitter]  [Post to Delicious]  [Post to Digg]  [Post to Ping.fm]  [Post to Reddit]  [Post to StumbleUpon] 

Related posts:

  1. Wordpress stats plugin release for all Wordpress users
  2. Download Wordpress plugins
  3. Top FireFox Extensions for Web Developers
  4. Wordpress 2.5 release candidate released
  5. Fix for Freshy2 theme, Customize plugin for Wordpress 2.6

Categories
Code, Web Life, Wordpress
Comments rss
Comments rss
Trackback
Trackback

« The Henry Rollins Show – America Is Under Attack Ron Paul on Fox news – fair and balanced? »

5 responses

[...] google searches led me to some good content. Initally

Squashing Wodrpess Performance Bugs » A Division by Zer0 | April 12, 2008

[...] google searches led me to some good content. Initally I discovered Firebug from a post explaining how it can help you diagnose Wordpress performance issues. That was quite helpful to tell the truth. I managed to immediately spot that the Wordpress [...]

[...] http://www.paulspoerry.com/index.php/2007/08/04/diagnose-slow-wordpress-performance-using-firebug/ [...]

JonStarbuck.co.uk - Wordpress is very slow | April 17, 2008

[...] http://www.paulspoerry.com/index.php/2007/08/04/diagnose-slow-wordpress-performance-using-firebug/ [...]

[...] site slowness: initally, my site was running very slow.

the comprehensive online presence of jessica mullen » Blog Archive » under construction: what not to do when launching a site | July 29, 2008

[...] site slowness: initally, my site was running very slow. I had no idea what was causing it, so after some googling I found the suggestion to use Firebug to determine the source of disruption. It worked like a [...]

[...] Some plugins could also be the cause of slow

Wordpress running slow — Andrew Calderbank-Link | August 15, 2008

[...] Some plugins could also be the cause of slow page loads.  You could disable them all and then re-enable them one by one checking each time if it has an effect on the page load time.  For those of you who use Firefox there is a great plugin called firebug that you can use to diagnose how long each element of your page takes to load.  For an excellent guide on doing this see http://www.paulspoerry.com/2007/08/04/diagnose-slow-wordpress-performance-using-firebug/ [...]

[...] my morning web crawl i stumbled on a post

slackers.se» Blog Archive » Wordpress performance analysis | January 30, 2009

[...] my morning web crawl i stumbled on a post at paulspoerry.com which covers how to analyze Wordpress performance with Firebug. This was an application of Firebug [...]

Leave a comment

You must be logged in to post a comment

Recent Posts

  • FireFox 3.5 Release Confirmed for Tues
  • Pre-Order Windows 7 for $49.99
  • FireFox 3.5 Geolocation – scary accurate
  • Google Voice Adding 1 Million Phone Numbers
  • Your Credit Score vs each State in the US

Popular Posts

  • Google Chrome’s JavaScript Engine Is CRAZY FAST
  • Google Chrome’s JavaScript Engine Is CRAZY FAST
  • Google won’t search for Chuck Norris because it knows you don’t find Chuck Norris, he finds you.
  • How to get an invite to what.cd
  • µTorrent 1.8.3 Final (uTorrent 1.8.3)

Recommended Hosting

rss Comments rss