Skip to content

System Status

Barberklingen\BasePlugin\Modules\Admin\SystemStatus

Adds a Barberklingen Base section to WooCommerce > Status > System status, below WooCommerce's own sections. It is booted unconditionally by BasePluginSetup, so nothing needs wiring up.

The section is part of the normal report, which means it is included when someone clicks Get system report and copies it into a support ticket.

What it shows

Row Value
Package barberklingen/base-plugin
Version Installed version, e.g. 2.6.23 or dev-master (a1b2c3d)
Custom roles Number of roles registered by the security module
One row per role The capabilities the role actually holds in the database

The version comes from PackageVersion and works on both Composer 1 and Composer 2.

Role drift

Capabilities are read from the database, not from the role classes, because that is what actually applies to users. Both differences are reported per role:

  • Declared in code but not registered — usually role changes that have been deployed without running wp security setup afterwards.
  • Added outside the role class — capabilities a site adds through the custom-user-caps filters. Expected, shown for reference.

See Security for the roles themselves.