Does anyone on here know if there is any performance downside on loading plugins when the plugins are inside another folder to maintain the structure of the code it is distributed under?
What I mean is this.
I create a plugin like so:
bin\cake bake plugin Code\MyPlugin
The plugin is created inside:
I then create other things for that plugin such as helpers, components and behaviors etc:
When these plugins are pushed to GitHub the plugin can then be installed via composer like:
composer require code/my-plugin
Then the plugin can be loaded:
bin\cake plugin load Code/MyPlugin
And the plugin is loaded. All is working fine.
Where the plugin is required I then add it, in the UsersTable for example:
A behavior which resides inside the App itself instead of a plugin would be loaded as:
So, my question is this:
Is there any downside in terms of performance,
when loading code which resides inside a plugin such as in:
As opposed to loading in any other way?
Am using CakePHP version 4.3 by the way.
The reason why I ask this is because the site is loading really slow. The Users/login page is taking close to 3 seconds which is far too long. So, am not sure if the problem is being caused because of the way the plugins which the App is using resides in a structure as explained above. The same Users/login page, exactly same code functionality, loads in less than 30 seconds with debug enabled. But the difference is only that this other Users/login page uses CakePHP version 4.2 so am wondering what is causing the problem.
Any input would be welcome.