vip-scanner
vip-scanner copied to clipboard
Deprecated: Scan all sorts of themes and files and things! Use PHPCS and the VIP coding standards instead
Moving (or hiding) the admin bar isn't allowed on VIP. We should make a note of CSS changes.
For the same reason that `extract()` is blocked, we should block variable variables. It just makes determining what's in the current scope super confusing.
For example, `after_theme_setup` should be `after_setup_theme`. What other commonly mis-named hooks can we flag?
The use of `die()` and `wp_die()` should be flagged except in the case of use within an AJAX handler. This is especially true in plugins which could take down WordPress...
`posts_per_page` = -1 just sets `nopaging` = true internally. You can also manually set `nopaging`.
Conditionals aren't available before then. To be fully accurate, need to tokenize the source, and trace the function calls to check everything before `parse_query` for conditional tag functions. http://codex.wordpress.org/Conditional_Tags
Since CSS files are often concatenated for performance reasons, and older versions of IE have issues with more than 4096 selectors per file, we should flag when this limit may...
In addition to Scanner's static analysis, Scanner should support dynamic analysis of sites. This would consist of finding site urls and crawling them, while recording what happens, such as expensive...
Some of my pages produce a blank output, no error messages on page, in wp log or php error log. If I delete some pages it works. Not sure if...
If a flagged issue has a file / line number, and it's under version control, we can add historical info from version control to the error.