Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼147.67ms] Passed 4 tests
This is a short check of server-side resources used by Debug Bar Roles and Capabilities
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 36.12 ▲0.21 |
Dashboard /wp-admin | 3.06 ▲0.01 | 37.53 ▼12.79 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 43.29 ▼0.93 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 91.35 ▼576.43 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 32.56 ▼0.51 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Debug Bar Roles and Capabilities
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲107 | 15.97 ▲0.32 | 10.47 ▲1.70 | 45.59 ▼0.33 |
Dashboard /wp-admin | 2,969 ▲32 | 6.11 ▲0.07 | 154.30 ▼10.30 | 104.89 ▼5.82 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.00 | 79.89 ▲9.72 | 88.44 ▼3.28 |
Add New Post /wp-admin/post-new.php | 3,687 ▲2,015 | 15.13 ▼3.85 | 491.26 ▲89.70 | 103.25 ▼7.16 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.00 | 161.54 ▲13.71 | 115.10 ▼0.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar-roles-and-capabilities/class-debug-bar-roles-and-capabilities-panel.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/debug-bar-roles-and-capabilities/debug-bar-roles-and-capabilities.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: debug bar, permissions, roles, users, capabilities...
debug-bar-roles-and-capabilities/debug-bar-roles-and-capabilities.php Passed 13 tests
The main PHP file in "Debug Bar Roles and Capabilities" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
A simple add-on for Debug Bar that tabulates all roles and capabilities
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin67 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 7 | 26 | 67 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin