Solution:1
My conjecture is that since you are calling this module both on the initiation snare and as administrator sees, that when the module is actuated the admin_notices snare is called (well in a similar cycle). Thus your module is tossing out the reverberation at a point during the enactment interaction. As such this is surprising way of behaving since an initiation isnt hoping to reverberate out anything.
I likewise see no requirement for this capacity to run on initiation. Possibly call it on admin_notices and assuming fundamental adjust your rationale in the capacity with the goal that this notice just shows once the module has been actuated.
Also, at present your code isn’t assessing regardless of whether the outsider module is dynamic or even introduced. Thus, clients would receive that message regardless of whether they had this other module introduced and actuated.
There is as of now an extraordinary library for adding required and prescribed modules to WordPress establishment called TGM Plugin Activation. I’d unequivocally suggest that you utilize that as opposed to making your own rationale.