Dipstick for Craft CMS

Dipstick is a Craft 6 plugin. Craft 6 is still in beta, and so is Dipstick (6.0.0-beta.1) — try it on staging first and use caution on production sites.

Command line and CI

Dipstick is for Craft 6, which is in beta. Use caution on production.

php artisan craft:dipstick:scan [--json] [--no-probe] [--fail-on=critical|warning|notice|none]

Exit codes: 0 nothing at or above --fail-on (default critical), 1 something is, 2 the audit couldn't run. Every run is stored and shows up in the control panel. --json prints the score, grade, counts and findings (rule, severity, source, site, evidence with project-relative paths, fingerprint, title).

php artisan craft:dipstick:probe [--requests=3] [--no-render] [--json]

Runs the runtime probe in the current process (it's sandboxed and nothing is kept). Audits run it as a child process; use this to see probe errors. If the queue worker's PHP isn't on the path, set DIPSTICK_PHP_BINARY to the PHP CLI binary.

A CI step:

- run: php artisan craft:dipstick:scan --no-probe --fail-on=warning

More plugins

Pairs well with Dipstick