Wordpress - extracted check version to module

inspired by @jvazquez-r7 I also added some wordpress specs and applied rubocop suggestions.
Also added support for a custom wp-content directory.

See #3554 for some more rspecs