Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼303.75ms] Passed 4 tests
Server-side resources used by Admin Color Bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 53.49 ▲4.49 |
Dashboard /wp-admin | 3.44 ▲0.03 | 38.43 ▲6.16 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 37.11 ▼2.52 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 99.39 ▼1,218.77 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 24.99 ▲1.81 |
Admin Color Bar /wp-admin/options-general.php?page=acb-settings | 3.29 | 24.93 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Admin Color Bar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,776 ▲22 | 16.01 ▲0.09 | 5.81 ▼0.13 | 2.24 ▼0.67 |
Dashboard /wp-admin | 2,898 ▲37 | 6.09 ▼0.02 | 117.49 ▼12.94 | 153.19 ▼10.48 |
Posts /wp-admin/edit.php | 2,698 ▲4 | 3.24 ▲0.00 | 61.33 ▼1.77 | 141.80 ▲0.28 |
Add New Post /wp-admin/post-new.php | 1,644 ▼17 | 20.32 ▲4.37 | 383.73 ▼26.04 | 154.09 ▲0.76 |
Media Library /wp-admin/upload.php | 1,699 ▲1 | 5.55 ▲0.06 | 139.90 ▲7.30 | 187.05 ▲7.76 |
Admin Color Bar /wp-admin/options-general.php?page=acb-settings | 1,523 | 3.51 | 76.66 | 139.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > 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
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-color-bar/admin-color-bar.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (Plugin page.)
admin-color-bar/admin-color-bar.php 92% from 13 tests
The main PHP file in "Admin Color Bar" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/language" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! 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
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin