How can I discover the resource requirements of plugins and themes before deploying them?

[ad_1]

A usual workflow of mine is to start building a new site locally.

I set up a new apache vhost, create the database, install the themes and plugins and start building the basic layouts.

My lab host is fairly powerful: It has a lot of ram and cpu.
If a plugin causes an issue then I know that it probably with resource consumption then I know that it likely isn’t fit for deployment in production.

However, there is a huge difference between the specs on my lab host and the specs on my deployment machines. So its easy for a resource-hungry plugin to consume large amounts of everything locally and for me not to notice.

Is there something I can do to inspect the resource consumption of locally-running instances of wordpress?

I just thought – maybe there are tools for generally testing resource consumption of web applications. Is anyone here using anything that fits that description?

What are your wider thoughts on this and the surrounding issues?

​

[ad_2]
2 Comments
  1. Not a direct answer to your question, but check out Roots Trellis for deploying in-parity development, staging and production environments.

  2. That’s not really how it works… it’s more complicated than that. No plugin or theme can say “you need a 2GB server”. What really matters is what volume of traffic your server can handle. Each user that makes a request on your site requires the PHP process to consume a chunk of CPU + memory. If your PHP mem is set to 256MB, and 10 people hit your site at the same time, then you’re going to use 10 x 256MB and a ton of CPU (to simplify things). Caching and tools like Redis reduce that load.

    You can measure mem/cpu usage with a plugin called Query Monitor or New Relic’s tools, or good old `top.` For load testing, I use loader.io.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer