• 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.php

    To 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.

Viewing 1 replies (of 1 total)
  • Plugin Support Amjad Ali

    (@amjadali688)

    Hi @antonynz ,

    Thank you so much for taking the time to share these details!

    I’ve shared your suggestion with our internal team so they can review it and consider improvements to the autoloader implementation in future updates.

    Let us know if you have any other questions or suggestions.

    Warm regards,

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.