extracted check version to module

also added some wordpress specs and applied
rubocop
Implented feedback from @jhart-r7
redirection returns an URI
typos
Favor & over and
Use constant for WORDPRESS_VERSION_PATTERN
Land #3558, @FireFart's improvements to wordpress mixin