Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.61MB] [CPU: ▼274.93ms] Passed 4 tests
Analyzing server-side resources used by Wp My Admin Bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.45 ▲4.93 | 74.88 ▲24.06 |
Dashboard /wp-admin | 8.47 ▲5.06 | 55.75 ▲23.70 |
Posts /wp-admin/edit.php | 8.47 ▲4.83 | 55.49 ▲19.98 |
Add New Post /wp-admin/post-new.php | 10.59 ▲3.62 | 111.37 ▼1,166.67 |
Media Library /wp-admin/upload.php | 8.47 ▲5.17 | 47.74 ▲23.28 |
WP My Admin Bar /wp-admin/options-general.php?page=wp-my-admin-bar | 8.47 | 44.72 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 8.47 | 43.73 |
Server storage [IO: ▲4.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 217 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_debug_mode |
wp-my-admin-bar |
fs_active_plugins |
fs_accounts |
fs_gdpr |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wp My Admin Bar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,941 ▲187 | 15.75 ▲0.11 | 5.96 ▼0.06 | 2.95 ▲0.15 |
Dashboard /wp-admin | 2,998 ▲137 | 6.06 ▼0.12 | 118.94 ▼13.53 | 174.59 ▲18.53 |
Posts /wp-admin/edit.php | 2,765 ▲71 | 3.26 ▲0.02 | 64.29 ▲0.65 | 156.75 ▲16.20 |
Add New Post /wp-admin/post-new.php | 1,772 ▲111 | 22.62 ▲6.27 | 449.66 ▲18.42 | 155.11 ▲5.30 |
Media Library /wp-admin/upload.php | 1,806 ▲105 | 5.55 ▲0.00 | 140.75 ▲2.60 | 205.84 ▲15.95 |
WP My Admin Bar /wp-admin/settings.php?page=wp-my-admin-bar | 26 | 0.94 | 0.04 | 22.48 |
WP My Admin Bar /wp-admin/options-general.php?page=wp-my-admin-bar | 1,352 | 2.45 | 55.63 | 164.90 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 1,456 | 2.74 | 55.78 | 112.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-my-admin-bar/sdk/freemius/includes/class-freemius.php+8218
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 4 options
- fs_gdpr
- fs_accounts
- fs_debug_mode
- fs_active_plugins
Smoke tests 25% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-my-admin-bar/sdk/freemius/templates/ajax-loader.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/wp-my-admin-bar/sdk/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-my-admin-bar/sdk/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-my-admin-bar/sdk/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wp-my-admin-bar/sdk/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wp-my-admin-bar/sdk/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wp-my-admin-bar/sdk/freemius/templates/account/partials/addon.php on line 6
- > PHP Warning
Use of undefined constant WPMYADMINBAR_FILE - assumed 'WPMYADMINBAR_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-my-admin-bar/sdk/wpmyadminbar-fs.php on line 12
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/wp-my-admin-bar/sdk/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-my-admin-bar/sdk/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/settings.php?page=wp-my-admin-bar
- > Network (severe)
wp-admin/settings.php?page=wp-my-admin-bar - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-my-admin-bar/wp-my-admin-bar.php 92% from 13 tests
The main PHP script in "Wp My Admin Bar" version 3.1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 216 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin49,162 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 7,537 | 16,880 | 31,386 |
PO File | 13 | 7,531 | 9,161 | 16,474 |
CSS | 13 | 0 | 0 | 889 |
JavaScript | 3 | 34 | 59 | 194 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,772)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 64.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,772.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 60 | |
▷ Abstract classes | 2 | 3.33% |
▷ Concrete classes | 58 | 96.67% |
▷ Final classes | 13 | 22.41% |
Methods | 1,198 | |
▷ Static methods | 181 | 15.11% |
▷ Public methods | 844 | 70.45% |
▷ Protected methods | 15 | 1.25% |
▷ Private methods | 339 | 28.30% |
Functions | 95 | |
▷ Named functions | 95 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 128 | |
▷ Global constants | 103 | 80.47% |
▷ Class constants | 25 | 19.53% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
sdk/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
sdk/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
sdk/freemius/assets/img/wp-my-admin-bar.png | 29.27KB | 5.43KB | ▼ 81.46% |