Update code after reviewing PR #5566

@nickminutello did a nice work to expose `isInstalled(String)` method in PR #5566.

After reviewing it, I made the `Plugin` class static.
This changes needs also to be reviewed :)