https://artiss.blog/2016/10/how-to-work-out-the-current-state-of-a-plugin/
How to work out the current state of a plugin