Plugin Author
berkux
(@berkux)
Hi @martje65, very good question. I can reproduce this, plus: PHP 8.4 also has 40 MB . But, surprise: PHP 8.5 only 8 MB. Can you try PHP 8.5 please?
It is possible that PHP 8.3 handles the loading of wp-admin/includes/file.php or the initialization of the WP_Filesystem class with higher memory overhead than 8.2, but this would need to be confirmed with a profiler.
Dear @berkux
unfortunately i can’t go to PHP 8.5 but i have the high load also with PHP 8.4 just like you.
Plugin Author
berkux
(@berkux)
Further debugging: I reduced the plugin step by step until only memory_get_peak_usage() remained. At PHP 8.4 the measured peak was still 38 MB; at PHP 8.5 it was only 8 MB.
To investigate, I added a Diagnose tab (new in version 2.1.0): it captures a full PHP/WordPress configuration snapshot and generates a ready-to-paste AI prompt for analysis.
Comparing the snapshots from my PHP 8.4 and PHP 8.5 environments revealed that OPcache was disabled on 8.4 and enabled on 8.5 — which is most likely the reason for the difference.
Could you confirm whether that is indeed the cause?
Dear @berkux,
I can confirm that the OPcache was disabled on PHP 8.3 and PHP 8.4.
If i put the OPcache to ennabled the WP-Memory-Usage is the same for all of them, thanks for clearing things.