Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼306.90ms] Passed 4 tests
An overview of server-side resources used by Adminbar Default Menu Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▼0.02 | 48.87 ▼2.28 |
Dashboard /wp-admin | 3.45 ▲0.04 | 35.98 ▲2.95 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 35.36 ▼31.31 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.06 | 94.18 ▼1,194.15 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 26.49 ▲0.13 |
Adminbar Manager /wp-admin/options-general.php?page=adminbar-manager/index.php | 3.28 | 22.67 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Adminbar Default Menu Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲46 | 15.84 ▲0.22 | 6.28 ▲0.00 | 2.20 ▼0.08 |
Dashboard /wp-admin | 2,897 ▲39 | 6.12 ▼0.09 | 120.87 ▼26.02 | 154.49 ▼14.45 |
Posts /wp-admin/edit.php | 2,696 ▲11 | 3.23 ▼0.01 | 63.31 ▼33.57 | 138.47 ▼8.90 |
Add New Post /wp-admin/post-new.php | 1,755 ▼18 | 21.63 ▲0.62 | 439.14 ▼26.36 | 159.49 ▲2.99 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.50 ▲0.00 | 140.73 ▼1.54 | 184.75 ▼2.87 |
Adminbar Manager /wp-admin/options-general.php?page=adminbar-manager/index.php | 1,042 | 2.38 | 52.36 | 121.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=adminbar-manager/index.php
- > Notice in wp-content/plugins/adminbar-manager/index.php+110
Trying to access array offset on value of type bool
SRP 50% 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adminbar-manager/index.php:123
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: adminbar menu, admin bar, remove admin bar menuchange adminbar color, toolbar
adminbar-manager/index.php 92% from 13 tests
This is the main PHP file of "Adminbar Default Menu Manager" version 1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("adminbar-manager.php" instead of "index.php")
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 plugin133 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 13 | 133 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 13 | |
▷ Static methods | 2 | 15.38% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin