vip-scanner icon indicating copy to clipboard operation
vip-scanner copied to clipboard

Deprecated: Scan all sorts of themes and files and things! Use PHPCS and the VIP coding standards instead

Results 103 vip-scanner issues
Sort by recently updated
recently updated
newest added

If two bits of code attempt to JOIN with the same tables without a unique alias, MySQL doesn't know which tables are which. All JOINs should have unique table aliases....

enhancement

All code needs to be reviewable, which means we need un-minified versions of JS. Easiest method is to check for `*.min.js` and a corresponding `*.js`...a more foolproof way is to...

enhancement

`/e` causes an eval, is deprecated, and is highly discouraged. Flag it as a blocker.

enhancement

Since this check relies on a real filesystem path, it just hangs. Maybe we can use proc_open() to pipe file contents to STDIN?

bug
enhancement

Keep things DRY - a theme should never duplicate code. Dupe detection made easy with https://github.com/sebastianbergmann/phpcpd

enhancement

The filter isn't available on WordPress.com for some reason, reportedly: > the filter you mentioned doesn't work on WordPress.com because we use global profiles instead of the regular WordPress user...

Yes, oembed use is cached within a post, but `wp_oembed_get()` doesn't leverage that goodness.

Filtering escaping and sanitizing functions is generally a bad idea, and can introduce major vulnerabilities if used maliciously. Scanner should flag the usage of any of the filters used by...

enhancement

The results of a scan's analyzers should be part of the results array returned by `BaseScanner::get_results()`.

enhancement

When using code like `$data = file_get_contents( 'php://input' );`, VIP Scanner reports a blocker-level issue of "Use wpcom_vip_file_get_contents() instead" However, from my reading of the documentation, `wpcom_vip_file_get_contents()` is for remote...