Adding support for checking extensions.

See: websharks/wp-php-rv#1