WordPress resource consumption


Wordpress resource consumption

WordPress resource consumption

One of the best advantages WordPress offers is that the application can easily be extended thanks to the number of the free plugins available on the official repository. This however,  hides risks. The installation and activation of too many plugin may increase the resource consumption of the application which might be penalised by the hosting service provider. Before proceeding with the installation of any specific plugin, it would be good to put it on test on a local environment and check how it works. Before publishing to live, make sure you have a backup copy to revert. The same goes to themes as well. There are a number of themes published on the official website. Some of them are indeed professionally developed, but of course there are some with coding issues that may cause troubles.

Speaking of resource consumption, I would like to highlight 3 main aspects of the problem.

  • Memory usage
  • CPU usage
  • and Mysql issues in a form of slow queries

As these 3 are separate issue which is some cases could be connected, they require different approaches to resolve.

WordPress memory usage

The error  that refers to insufficient memory is “Out of memory …” either displayed on the home page or on a specific inner page. WordPress triggers it when the maximum amount of memory is reached and there are not enough resources in order to complete the request. So the question here is how to resolve this.

Generally speaking there are a number of methods that would give positive effect over the memory usage. The main ones are :

  • Remove the plugins you do not need. I can assure you that WordPress does not need 20+ active plugins in order to operate normally.
  • Upgrade PHP Version. Note that newer PHP Versions are better optimised and this way decrease the resource consumption. For example PHP4 compared with PHP3 consumes over 45% less memory. So if your hosting provider supports multiple PHP version, I would recommend migration to newer version.
  • Another available course of action is of course adding more memory. This depends on the situation. If the website is less known and the problem is caused by a number of plugins which are not actually needed, then upgrading the memory may not be wise.
  • Perhaps the best solution is going further and investigate what exactly is the root of the problem. There are a few great plugins that would help to measure the usage and pinpoint the top consumer. Such investigation requires a bit more skills and if you are new on the field, you may need help from experienced developer. Plugins that give better idea on which plugin consumes the majority of the resources are P3 Profiler; Memory Viewer and Debug Bar.


Do you want to share your opinion?

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


*

We are not industry specific. We are WordPress specific. We work with everyone to help them find solutions with their troubles.
If you show us the problem you are experiencing, we will show you how to fix it. It is that simple.


Here you can check the latest resolved WordPress issues

Reported WordPress issues

  1. wordpress shipping cost reduction total cart price
  2. wc_get_product_ids_on_sale() …getting product on sale in WooCommerce
  3. Preserving custom pages via redirect
  4. Wordpress - get_template_part() section not showing
  5. Can't click behind my Iframe. Is it possible?
  6. To show toggle and simple menu
  7. Post in WordPress
  8. Get Json Data when a variable matches with ACF custom field in WooCommerce
  9. BuddyPress shared user-base on Multisite separate sites
  10. How to show product variation in cloumn instead of row in Wordpress?

WordPress problems we are working on

  1. All pages redirect to home page
  2. Is possible to read a value from a dynamic HTML table and pass it to an input form?
  3. Google Shopping With Multiple Titles
  4. Wordpress - white screen of death when trying to update a page and/or a file in Editor
  5. cart is not working with more than 3 variations Woocommeerce.?
  6. Apache set Access-Control-Allow-Origin from http to https
  7. Wordpress works fine on admin dashboard but not loading for public
  8. Tranform in ::before breaking child elements in Wordpress navigation menu - CHROME
  9. How to flash error message in wordpress?
  10. Warning: Illegal string offset while searching of product

Resolved issues

  1. How to edit this function to improve performance in Wordpress?
  2. Wordpress get post id
  3. Open Lightbox on onload page
  4. Blogs posts on an alternative page?
  5. Style don't change in form
  6. Using Consolibyte's PHP Devkit to Add a Customer to Quickbooks POS Desktop v.12 w/ Web Connector
  7. How to reset all fields when adding to WooCommerce Cart
  8. Wordpress Rest API and AngularJS ui-sref and custom HTML
  9. Importing contact form in front-page.php
  10. Wordpress - adding a custom font via font-face
wppotion - powered by persistence and passion