Plugin dependencies
-
I hope this hasn’t been asked many times before – I tried to search but did not see anything related.
Basically, I think WP core would benefit greatly from introducing some sort of dependency configuration for plugins to register themselves so that WP core can selectively load only those plugins necessary for certain functions.
For example, if you happen to have an average number of plugins installed, it seems all of them are loaded for even the basic task of loading additional media library thumbnails – in my case this resulted in 1-2 seconds additional and IMHO unnecessary load times to each admin-ajax request
I could debug and disable plugins myself, but what if the worst offenders are woocommerce and WP widgets (core) based on my xdebug profile? I’m pretty sure I shouldn’t need all of my plugins to query attachments via Ajax..
I tested a simple version by modifying wp-config and loading a separate wp-settings (to hopefully a avoid breaking updates) with the plugin loading guts removed. My admin Ajax calls now take 500ms avg which i think is a pretty big improvement..
Any thoughts? I know it represents a large change..
- The topic ‘Plugin dependencies’ is closed to new replies.