Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.15MB] [CPU: ▼154.87ms] Passed 4 tests
This is a short check of server-side resources used by WP Admin Bar Control
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 23.44 ▲1.24 |
Dashboard /wp-admin | 2.99 ▼0.08 | 20.32 ▼16.85 |
Posts /wp-admin/edit.php | 3.04 ▼0.07 | 26.53 ▼3.20 |
Add New Post /wp-admin/post-new.php | 4.99 ▼0.45 | 62.28 ▼593.20 |
Media Library /wp-admin/upload.php | 2.99 ▼0.01 | 19.91 ▼6.23 |
Yummi Plugins /wp-admin/admin.php?page=yummi | 2.97 | 18.68 |
Admin Bar Control /wp-admin/admin.php?page=wpabc | 2.97 | 19.90 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wpabc |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Admin Bar Control
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,767 ▲166 | 15.62 ▼0.27 | 5.51 ▲0.71 | 75.74 ▲0.14 |
Dashboard /wp-admin | 3,030 ▲134 | 6.13 ▼0.05 | 117.38 ▼12.63 | 188.22 ▲17.33 |
Posts /wp-admin/edit.php | 2,838 ▲98 | 3.04 ▼0.19 | 63.11 ▼2.74 | 143.08 ▲1.91 |
Add New Post /wp-admin/post-new.php | 3,881 ▲182 | 18.90 ▲0.39 | 440.44 ▼18.91 | 187.97 ▲10.53 |
Media Library /wp-admin/upload.php | 1,848 ▲96 | 5.57 ▲0.09 | 134.07 ▼11.93 | 210.66 ▲31.32 |
Yummi Plugins /wp-admin/admin.php?page=yummi | 2,620 | 8.46 | 213.97 | 218.36 |
Admin Bar Control /wp-admin/admin.php?page=wpabc | 2,474 | 3.90 | 86.72 | 201.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- wpabc
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpabc
- > User notice in wp-includes/functions.php+5663
WP_Admin_Bar::add_node was called incorrectly. The menu ID should not be empty. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/admin.php?page=yummi
- > Notice in wp-content/plugins/wp-admin-bar-control/includes/yummi-plugins.php+117
Undefined variable: tab
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-admin-bar-control/wp-admin-bar-control.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/wp-admin-bar-control/includes/yummi-plugins.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=yummi
- > Network (severe)
https://www.paypalobjects.com/en_IT/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: admin, hidden, plugins, switch, plugin...
wp-admin-bar-control/wp-admin-bar-control.php 85% from 13 tests
"WP Admin Bar Control" version 0.9.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,357 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 181 | 268 | 1,131 |
CSS | 2 | 1 | 3 | 226 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 150)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 1.22 |
Average class complexity | 247.00 |
▷ Minimum class complexity | 247.00 |
▷ Maximum class complexity | 247.00 |
Average method complexity | 21.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 150.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/dashicons-yummi.png | 1.81KB | 0.85KB | ▼ 52.89% |