How to fight WordPress with the unauthorized changes in the plugins configuration values PHP?

The issue is. There is a site on WP, there is a task to figure out what he slowly processed by the web server before it returns content. For this we decided to use xdebug, webgrind, and the plugin P3 Profiler Plugin. The problem is that at the stage of activation, the web server stops running out of memory, with the result that he falls out with an error, which is not surprising, website files weigh more polugigabayta, the base is three hundred megabytes. The obvious solution would seem to enable in the settings of the web server change settings using htaccess to set memory_limit to a value greater than the necessary minimum, and to continue the work.

But then suddenly it turns out that about 4 of the plugins and even the theme (Avada) in your code contain @ini_set( 'memory_limit', '256M' ), while in some cases without any inspections and conditions.

Note the question: it is clear that it can be stupid everywhere to remove this unauthorized change to a configuration setting of PHP, but maybe there is some more elegant way to solve this problem? PHP version - 5.5.30-1~dotdeb+7.1 (cli) (built: Oct 1 2015 17:38:39).
July 2nd 19 at 14:16
0 answer

Find more questions by tags PHPWordPress