When you've built your website using the popular WordPress platform, it can make running and maintaining a website a lot easier than manually doing it. But some of that ease and automation can also cause excessive resource usage if you're not careful.

Make WordPress run efficiently

With the way that WordPress functions, there are a lot of things that it does on its own because a wide array of people might be trying to build their site with it.

There are things you can do to help ensure that your WordPress install is streamlined, and optimized to load the fastest that it can, while also reducing your account's usage demands for running WordPress.

  1. Use WordPress caching

    By default every visitor that comes to your WordPress website will require the server to run a PHP script to pull your page or post data from the database.

    You can utilize a WordPress caching plugin to reduce the amount of redundant and duplicate database calls to display your site.

    WP Super Cache (Easier to setup, more basic)

    W3 Total Cache (More advanced caching options)

  2. Don't use intensive WordPress plugins

    One of the great features of WordPress is that you can extend its capabilities by using plugins. However some plugins are known to be more intensive than others, and if you run these on a medium to high traffic WordPress website you could run into issues:

    CMS Tree Page View Constant Contact WordPress Widget Digi Auto Links
    Disqus Comment System FireStats WordPress Geo Mashup
    Google Talk Widget NextGEN Gallery PHP Code for Posts
    Quotes Collection Reveal IDs Simple Post Thumbnails
    Skype Status VaultPress WassUp Real Time Analytics
    Wordgento wpCloaker WordPress Facebook
    WP Forum Server WP Live Stream Online Backup for WordPress
    WP Autoresponder and News Plugin WP Super Heatmap WP Symposium
    Yet Another Related Posts Plugin
  3. Log out of admin dashboard when not in use

    When you're logged into the WordPress admin dashboard it continually sends requests to the server. So if you're stepping away from your computer, or not directly working on your WordPress website, log out of the admin dashboard and close out any tabs with it open to cut down on your usage.

  4. Disable wp-cron.php

    WordPress tries to schedule its own activities using a wp-cron.php script. Unfortunately this script gets called everytime a visitor comes to your site and can cause high usage over the day.

    You'll want to setup a cron job to call the wp-cron.php script at a more appropiate interval, something like every 4-6 hours works well.

    0 */6 * * * cd /home/userna5/public_html; php -q wp-cron.php

    Then you'll want to open up your wp-config.php file and add the following entry to it to disable the default wp-cron from running:

    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
    define('DISABLE_WP_CRON', 'true');
  5. Limit search engine crawlers and bots

    Use a robots.txt file to control the rate at which search engines crawl your website, and what files they are allowed to index.

  6. Block malicious users from your website

    If you have certain User-Agents hitting your WordPress site and causing excessive usage, you can force these users to a 403 Access Denied page by placing rules in your .htaccess rules file.

    The below rule for instance would block any user that had the word Baiduspider, HTTrack, or Yandex in their User-Agent.

    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} ^.*(Baiduspider|HTTrack|Yandex).*$ [NC]
    RewriteRule .* - [R=403,L]

This is by no means an exhaustive list of what you can do to reduce the usage from WordPress, but these are some of the most common problems we see from WordPress users and it should hopefully be enough to keep your WordPress site running smoothly.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Help Center:
Email Address
Optional, but our team may contact you for more information.
Did you find this article helpful?

Post a Comment

Email Address:
Are you a bot?

Please note: Your name and comment will be displayed, but we will not show your email address.

News / Announcements

Update to SSL Certificates - Certificate Warnings
1969-12-31 11:00 am EST
Hits: 692

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.