Performance improvement with autoloader
-
Thanks for the plugin.
It has been found this plugin is using the PSR-4 autoloader which causes performance issues when other plugins are using the same autoloader method. For instance with Elementor installed which declares the autoloader before WP Forms Lite, the Elementor autoloader is looking up 652 non existent files in the WP Forms plugin using the PSR4 “findFileWithExtension”. Here is a sample of the files being requested which do not exist:wpforms-lite\vendor\composer/../../src\Pro\Forms\Fields\InternalInformation\Frontend.php
wpforms-lite\vendor\composer/../../src\Pro\Forms\Fields\InternalInformation\Frontend.php
wpforms-lite\vendor\composer/../../src\Lite\Forms\Fields\InternalInformation\Frontend.php
wpforms-lite\vendor\composer/../../src\Lite\Forms\Fields\InternalInformation\Frontend.php
wpforms-lite\vendor\composer/../../src\Forms\Fields\InternalInformation\Frontend.php
wpforms-lite\vendor\composer/../../src\Forms\Fields\InternalInformation\Frontend.php
wpforms-lite\vendor\composer/../../src\Pro\Forms\Fields\Email\Frontend.php
wpforms-lite\vendor\composer/../../src\Pro\Forms\Fields\Email\Frontend.php
wpforms-lite\vendor\composer/../../src\Lite\Forms\Fields\Email\Frontend.php
wpforms-lite\vendor\composer/../../src\Lite\Forms\Fields\Email\Frontend.php
wpforms-lite\vendor\composer/../../src\Forms\Fields\Email\Frontend.php
wpforms-lite\vendor\composer/../../src\Forms\Fields\Email\Frontend.phpTo better isolate this plugin’s composer autoloader can you please change the autoloader method to authoritative? This will prevent the non-existent file exist checks and give potentially give a large performance boost.
For more information:
https://github.com/composer/composer/issues/10205
Will also reach out Elementor to hopefully get them to change their autoloader method as well to prevent this.
You must be logged in to reply to this topic.