Too Many Plugins Slow Down Your WordPress Blog

I know you’re crazy about using plugins for your WordPress blogs. I am, too!

Plugins can enhance your blogs in so many ways. Do you want to encourage readers to sign up for your RSS feed? Is cutting down or eliminating comment spam important to you? How about optimizing your blog pings, streamlining your SEO efforts, automating backups, or even creating an archives page?

WordPress Plugins can be found for these and many other tasks. Check out the WordPress Plugin Directory where you can search over 1,500 plugins. Download as many as you want and try them out. No doubt you will find some real keepers.

The only caution here is that some plugins may not be updated to work with your WP version. Check the authors’ website to pick up the important details about the plugins you like. The best and most stable plugins are usually updated fairly quickly after WP is updated.

The downside to loading up your blogs with plugins is that too much of a good thing is…well, too much! Too many requests to your server to create your pages and your visitors are outta there. Why? It just takes too long. Also, all those plugins need to be kept up-to-date, so that means more time spent on blog maintenance.

Check to see if your theme and all the plugins you use are taking up too much server time by adding one line to the footer.php file of your theme:

<!-- <?php echo get_num_queries(); ?> queries -->

Essentially, we’re calling on the server to tell us how many times the server was accessed to create your page. The only way you will see the result of get_num_queries() is to go to your blog and View > Page Source. Look for a comment line in the footer, something like

<!-- 12 queries -->

If you see more than 20 or so queries, your server is being worked too hard and your pages will load slowly. Deactivate plugins, one at a time, and refresh your blog page. You’ll see the number of server requests, or queries, drop.

Delete plugins that are too costly in terms of the number of queries they demand and you’ll find a happy medium between too many requests that slow down your server and too few requests that make for a dull blogging experience.

How To Test New WordPress Themes and Validate They’re Error-Free

Now that you’ve polished your css and straightened your templates it’s time to test your new WordPress theme. Will it work like you want it to? How do you expect each ‘page’ to look? Did you want to have the full post or posts on each page or just the post excerpt on certain pages?

That’s a lot of questions you’ve already answered up to this point. Somewhere along the way you could have made a mistake. Testing your new theme will help you find any unexpected behaviors.

  • Copy your theme directory so you know you have a backup.
  • Give your theme a meaningful name in the header of the stylesheet.
  • Name your new theme folder with the name you gave in the style.css file and upload it to your WordPress theme folder, probably located at your domain.com/wordpress/wp-content/themes/.
  • Validate that your xhtml is error-free by viewing the source code, copying the source and pasting into the validate by direct input tab of the XHTML Validator from W3C.
  • Validate that you have an error-free stylesheet by copying or uploading style.css to the W3C CSS Validation Service.
  • Go into your blog admin panel and choose Presentation on the main menu.
  • Look for your new theme under the available themes and double-check the name of the theme and its description before you activate it by clicking on it. If the theme is listed under Broken Themes that means that WordPress can’t find one or more files that are needed. Try uploading again and make sure the style.css is in there.
  • Upload any plug-ins that your theme needs to the wp-content/plugins folder. Activate your plugins from the Plugins menu. Update any plugins that are out-of-date.
  • View your site and click everywhere to see that the blog is acting like it should.
  • Post on your blog about your new theme!