Can wp_script_is used in pluginA check if a script is being enqueued/registered from pluginB?
Now that I see you were hooking into plugins_loaded, this makes sense because it is fired much earlier than wp_enqueue_scripts. It is expected that your function would return 0 at this point. See here and here for the order in which actions are generally fired. Try to add an action at wp_enqueue_scripts with a late … Read more