Benchmarks
Plugin footprint 82% from 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.04MB] [CPU: ▼9.81ms] Passed 4 tests
Analyzing server-side resources used by Admin Color Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.45 ▼4.65 |
Dashboard /wp-admin | 3.37 ▲0.02 | 47.41 ▼17.97 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 48.73 ▼4.41 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 88.70 ▼12.22 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 42.56 ▲5.43 |
Admin Color Bar /wp-admin/options-general.php?page=acb-settings | 3.26 | 33.62 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/admin-color-bar/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Admin Color Bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 13.56 ▼1.03 | 1.70 ▼0.12 | 42.63 ▲0.50 |
Dashboard /wp-admin | 2,215 ▲9 | 5.85 ▲0.94 | 109.17 ▲5.97 | 38.64 ▼0.96 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.05 ▲0.03 | 43.08 ▲4.09 | 35.40 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,537 ▲6 | 17.34 ▼6.18 | 669.78 ▼46.03 | 56.23 ▼4.11 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.25 ▼0.01 | 110.75 ▲4.81 | 47.14 ▲0.33 |
Admin Color Bar /wp-admin/options-general.php?page=acb-settings | 1,118 | 2.27 | 59.57 | 31.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-color-bar/admin-color-bar.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-color-bar/admin-color-bar-admin.php:15
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Plugin page.) image missing
admin-color-bar/admin-color-bar.php 92% from 13 tests
The entry point to "Admin Color Bar" version 1.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/language" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin309 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 50 | 71 | 271 |
JSON | 1 | 0 | 0 | 16 |
Markdown | 1 | 11 | 0 | 14 |
JavaScript | 1 | 0 | 2 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 3 | 16.67% |
▷ Public methods | 14 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 22.22% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin