4ecccbc107
- Swap load_dependencies() before register_autoloader() in the constructor so Composer (when a vendor/ install is present) is registered on the spl_autoload stack first and therefore acts as the primary class resolver, with the custom loader as fallback. - Add early-exit guard in the autoloader closure: skip the namespace map loop entirely for classes that don't share the plugin base prefix, avoiding unnecessary iteration on every WordPress class lookup. - Store the namespace map in a static variable so it is allocated only once across all invocations rather than on each call. - Switch from require_once to require inside the autoloader: the autoloader is only invoked for classes not yet defined, making the redundancy check in require_once unnecessary overhead. Resolves #29