Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼297.19ms] Passed 4 tests
Analyzing server-side resources used by Front-end Toolbar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.09 | 61.56 ▲0.64 |
Dashboard /wp-admin | 3.44 ▲0.03 | 34.96 ▼4.56 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 38.63 ▼1.48 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.07 | 104.35 ▼1,183.36 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 30.96 ▲6.14 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Front-end Toolbar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,916 ▲162 | 15.78 ▼0.14 | 6.12 ▼0.06 | 2.58 ▼0.66 |
Dashboard /wp-admin | 2,885 ▲24 | 6.16 ▼0.03 | 120.47 ▼18.40 | 163.89 ▲1.03 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.23 ▼0.01 | 62.56 ▼2.90 | 138.23 ▼8.69 |
Add New Post /wp-admin/post-new.php | 1,711 ▲50 | 20.79 ▼2.02 | 432.71 ▼19.92 | 166.53 ▲9.73 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.50 ▼0.05 | 140.09 ▼13.13 | 191.30 ▼0.29 |
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
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/admin-bar-plus/admin-bar-plus.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: site-name, front, admin, front-end, logged in...
admin-bar-plus/admin-bar-plus.php Passed 13 tests
The main PHP file in "Front-end Toolbar" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
121 characters long description:
This plugin adds the WordPress menu from the admin sidebar under the {site-name} menu on the front-end WordPress toolbar.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin196 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 34 | 26 | 196 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG images were not found in this plugin