• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty
Affordable VAST/VPAID for Wordpress has arrived. Serve ads with your videos starting today!

Keeping WordPress Overhead Down: How to Catch and Disable Greedy Plugins

3 February 2008 / Alec Kinnear / 8 Comments

I’ve been wondering about WordPress plugin overhead for some time. How does one keep track of how much processor time and overhead any given plugin requires?

We run fairly streamlined WordPress installs at Foliovision with about 30 active plugins per site. A lot of them are one-trick ponies developed in-house so we know the code isn’t creating a huge load.

But anyone who has been working on Macintosh computers from the old days (System 7, 8 & 9) knows very well that every extensions (and some people were running 50 of them) slows down your compuer and increases the chances of a system conflict. There were whole expensive utilities devoted to keeping extensions and control panels under control. Any one else remember long hours spent with Conflict Catcher?

conflict catcher screenshot
conflict catcher screenshot

Here’s what WPdesigner.com has to say on his own plugin issues:

With the WP Download Monitor plugin, the front page of my blog had to operate with 136 queries on every page load. After uninstalling that plugin, the front page needed only 10 queries to work. 136 versus 10 and all I have to do is give up tracking the downloads, hmmm.. oh what, oh what should I do? I deactivated / uninstalled it, of course.

So some plugins are clearly worse than others. I hope I didn’t publish that post recommending Lucia’s LinkyLove for DoFollow. In the comments to the post above David Airey notes.

I found the real culprit – the LinkLove plugin for DoFollow comments.

By de-activating it I’ve dropped the queries from 117 to 24 on my blog post with 46 comments.

Lucia’s LinkyLove plays complicated games rewarding commenters for more comments with better links. A pox on this sort of brownie point system. I will get DoFollow turned on and will rely on Akismet and common sense to keep the spammers off. Everybody else is welcome to followed links.

Ironically enough David’s post recommending Lucia’s LinkyLove still stands and is ranked high – that is not taking very good care of one’s visitors. Perhaps he just forgot. Even more ironically, Lucia publishes another plugin to track CPU greedy plugins. I don’t recommend this plugin, as it is ugly and is less useful than adding a simple PHP tag to your footer to track both database queries and CPU time.

<!--<?php echo $wpdb->num_queries; ?> <?php _e('queries'); ?>. <?php timer_stop(1); ?> <?php _e('seconds'); ?>.-->

At this point you can load any page on your weblog and check the number of database queries and the CPU time just by viewing source. If you are really on a roll, you can remove the html comment markup from around the PHP tag and you will be able to see the load times and database queries without checking source. So will your visitors, but for a half an hour of quick testing it really doesn’t matter.

Here’s the PHP code alone:

<?php echo $wpdb->num_queries; ?> <?php _e('queries'); ?>. <?php timer_stop(1); ?> <?php _e('seconds'); ?>.

So with 30 WordPress plugins running, what’s the damage on Foliovision.com and client sites? 

wordpress database queries cpu time
wordpress database queries cpu time

On Foliovision.com, 37 queries. 0.465 seconds for the home page and 30 queries. 0.506 seconds for a single post. The client sites are mostly in the same thirtyish queries neighbourhood. Clearly in there are a couple of plugins which are borderline greedy. I’ll have Peter do some tests on Monday. For comparision, with over 41 plugins, Saman’s install requires over 1.6 seconds to generate a page.

Generally I am happy about this result. It means the base FolioPress suite is quite efficient. Efficiency in coding is very important to me. Alas, the big three in OS have quite forgotten about efficiency: MS Windows, Apple OS X and KDE are all horribly inefficient: I have to run a quad processor to get decent performance out of Apple. Absurd. But malicious inefficiency in coding is a subject for another post.

How important is it to avoid greedy WordPress plugins? If you get little or no traffic or you are on a dedicated server, it’s probably not all that important. But if you are on shared hosting (broken link – http://www.ngtech.gr/blog/en/programming/php/turbo-charging-wordpress-or-how-i-made-my-wordpress-blog-1000-faster-2006-10-21.html) and you ever get Dugg, Slashdotted or listed at Yahoo, watch out. Your hosting may be disabled for a week due to the one or two errant plugins.

Here’s a small case study of a plugin gone bad: Comment relish issues #1, #2 & #3. This one has a happy ending as the plugin was eventually repaired and made useable.

Alec Kinnear

Alec Kinnear

Alec has been helping businesses succeed online since 2000. Alec is an SEM expert with a background in advertising, as a former Head of Television for Grey Moscow and Senior Television Producer for Bates, Saatchi and Saatchi Russia.

Categories: WordPress

Related Posts

  1. FV WordPress Plugins

    FV WordPress Plugins

  2. WordPress 4.2 Database Update Difficulties

  3. Reducing SQL queries in WordPress Templates

    Reducing SQL queries in WordPress Templates

Reader Interactions

Comments

  1. David Airey 4 February 2008 at 2:26 am

    Hi Alec,

    Thanks for reminding me of my post on the LinkLove plugin.

    I’ve updated the article now to mention the resource usage, and how I’ve since uninstalled the plugin.

    You’re right. I should’ve done that as soon as I discovered the issue.

    All the best.

    Reply
  2. ADAC 4 February 2008 at 7:35 pm

    Great post, especially the piece of code to help you find out how many queries are being made.

    I have to admit I’m a little lazy when it comes to things like this. I pretty much go by the “if it works don’t fix it” idea. This is a nice quick way to see if there is a problem before the site breaks.

    Reply
  3. Mihai Secasiu 31 October 2009 at 4:37 am

    I had no idea the Download Monitor plugin does so many queries. I have it installed on my blog for such a long time and I didn’t notice any performance issues. I didn’t test either :) I like the plugin a lot. … hmm I should find some time to test it and fix this one too :)

    Reply
  4. Avatar photoalec 31 October 2009 at 12:14 pm

    Hi Mihai,

    Thanks for stopping by. Loved your sleuthing on the issues with large static sites with lots of pages (we build CMS not weblogs) in Wordpress.

    We will get on that bug as well. I’d like to see it fixed and we can repair the code too. We’ll look at your fix and then let’s put together a campaign to get this fixed in the next version. It’s really inexcusable. Slow page loads in the page manager really are a nuisance for our own editing as well.

    No excuses that this bug has been out there so long.

    Bad, bad Automattic. Matt Mullenweg what are you thinking of?

    Reply
  5. Mihai Secasiu 31 October 2009 at 12:31 pm

    There is already a ticket opened for the bug after I reported this: core.trac.wordpress.org/ticket/10852 . Seems like it’s going to be included in wp 2.9

    Reply
  6. Avatar photoalec 1 November 2009 at 10:19 am

    Hi Mihai,

    Thanks for the link to the thread. Expect to see us on that thread in the next couple of days.

    Great news that it will be rolled into Wordpress 2.9. Optimisation should keep happening. Good catch.

    Reply
  7. Tammy Hart 13 November 2009 at 11:03 am

    Thank you so much, exactly what I needed!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You can click here to Subscribe without commenting

Primary Sidebar

Categories

  • Business
  • Camera Reviews
  • Case Studies
  • Design
  • FV Player
  • Internet Marketing
  • IT
  • Life
  • SEO
  • Slovak
  • Video of the Week
  • WordPress

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!