WordPress plugin intelligence profile

Angry Creative Inspector

Inspects, logs and with the aid of WP-CLI, it may even repair possible issues with your WordPress installation.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.2
Current version0.8.4
WordPress coverageTested up to WordPress 4.2
Minimum stackWP 4.0 · PHP —
Directory statusactive
Last directory update8 Sept 201511y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Angry Creative Inspector version 0.8.4 as active, updated 11y ago and tested up to WordPress 4.2.

Overview

About this plugin

The Angry Creative Inspector, or Angry Inspector for short, will weigh, measure and find possible issues with your WordPress installation. This plugin is especially recommended to maintainers of WordPress installations that needs to continously monitor the health of their sites. Got WP-CLI?

Then you may even be able to repair what’s wrong with your WordPress. Read on to learn more.

The inspector has two basic types of inspection routines; regularly repeating inspections run once every 24 hours and inspections triggered by a WordPress hook or user action. Currently, the following regularly running inspection routines are supported out of the box:

  • File permissions check – You didn’t do a chmod 777 on all files, right?
  • Git modifications check – Is your WordPress revisioned by Git? Then we log uncomitted file changes.
  • Database collation check – Does your tables have the proper character set and collations?
  • Site visibility check – Is your website blocking search engines?

Then there’s the following WordPress hook or otherwise user action triggered routines:

  • Plugin enabling/disabling – Who disabled or enabled that plugin?
  • User registrations – Logs all user registrations. No more, no less.
  • User profile updates – Logs all user profile updates, even password changes.
  • User capabilitiy changes – Who promoted or demoted that user?
  • Site registrations – Who created that site in your site network?
  • Site enabling/disabling – Who disabled or enabled that site in your site network?
  • Javascript error logging – Keep track of javascript errors, even the ones that appears in your visitor’s browsers.

A little configuration is needed to take full advantage of the file permissions and site visibility routines, see installation instructions.

Doing inspections and viewing inspection logs

Login to your WordPress site with an administrator account and navigate to the Angry Inspector page under the ‘Settings/AC Inspector’ menu in the WP admin panel (in network admin if multisite). In here you should see the inspection log and may trigger the scheduled inspection routines manually by clicking the “Inspect now” button. Also take note of the “Inspection routines” and “Action routines” tabs where you among other things may change the log level for each routine.

Set log level to ‘ignore’ to completely disable a routine.

Inspect and repair using WP-CLI

org for instructions. Then navigate your commandline shell to your WordPress install directory and issue the following command:

wp angry-inspector inspect

You may also call a specific inspection routine like this (use all lowercase name of class or function without “ACI_Routine_”-prefix and replace underscores with dashes):

wp angry-inspector inspect file-permissions

Any inspection remarks while inspecting with WP-CLI will cause the inspector to look for a possible repair method and prompt you with the question wether you would like to make an attempt at repairing if one is found. Want to skip inspection and go directly for repairing? Here’s how:

wp angry-inspector repair

To call a repair method for a specific inspection routine:

wp angry-inspector repair site-visibility

Please note that for utilizing a repair method like the one for file permissions, you need to run the command as super-user (root) and add –allow-root to your WP-CLI commands, like this:

sudo wp angry-inspector repair file-permissions --allow-root

That’s all there is to it, really. Note that the given log_level option is just a default and may be overridden in the ‘Settings/AC Inspector’ menu in the WP admin panel (in network admin if multisite) like all the other registered inspection routines.

Creating your own inspection routines

Are you skilled in the arts of WordPress development and have a need for a check not covered by the above? Then you should extend the inspector with your own inspection routine! It’s really simple.

php or in a plugin (after plugins loaded):

if ( function_exists( 'aci_register_routine' ) ) {

', 'log_level' => 'warning' ); // Possible values: notice, warning, fatal, ignore

$action = 'ac_inspection'; // Default inspection action run once every 24 hrs

aci_register_routine( 'my_inspection_routine', $options, $action );

function my_inspection_routine() {

$inspection_passed = false;

// Put your inspection code here, // then log your results like so:

', __FUNCTION__ ); }

// No need to return anything... return;

}

}

For a bit more advanced developers, you may also register a class as an inspection routine. The syntax and function used is the same, it’s just a matter of passing the class name instead of a function name. The inspector will by default look for a class function called ‘inspect’ to register as inspection method, otherwise you may add ‘inspection_method’ => ‘your_inspection_function’ to the options array to use any class function you like as your inspection method.

The reason why you would want to register a class instead of just a function is that it gives you the ability to extend the settings for your routine beyond just the log level and maybe even add a repair method to call if the inspection fails (WP-CLI only).

First off, here’s how you extend the settings for your routine (inside your inspection routine class):

public static function settings_field( $options, $args = array() ) {

$routine = $args["routine"];

>_field_name * **/

>

<tr valign="top"> <td scope="row" valign="top" style="vertical-align: top;">Example setting field</td> <td> <p class="description">Here be extra settings field:)</p> </td> </tr>

php

}

public static function settings( $options ) {

// Here be code that parses and validates submitted values

return $options;

}

Then when you register your routine:

' );

aci_register_routine( 'my_inspection_routine_class', $default_options );

// Optional extra settings fields add_action( 'my_inspection_routine_class_settings_field', array( 'my_inspection_routine_class', 'settings_field' ), 10, 2 ); add_filter( 'my_inspection_routine_class_settings', array( 'my_inspection_routine_class', 'settings' ), 10, 1 );

Your extra settings fields should now be visible in either the Inspection or the Action routines tab under the ‘Settings/AC Inspector’ menu in the WP admin panel (in network admin if multisite).

php file in the plugin directory.

As for registering a repair function, it works the same as when registering a class with an inspection method. The inspector looks for a class function called ‘repair’ by default. Override with any class function you like by defining ‘repair_method’ => ‘your_repair_function’ in the options array.

However, a repair method will never be called automatically. org/ ) installed and issue the appropriate commands, see “Inspect and repair using WP-CLI” above.

Happy… no wait, angry inspecting! 🙂

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • inspect
  • inspection
  • log
  • monitor
  • monitoring
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.2

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.2.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.2
Minimum requirementsWordPress 4.0 · PHP not listed
Update activity8 Sept 201511y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.