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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼297.52ms] Passed 4 tests
Server-side resources used by Admin Bar Tools
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.18 | 57.05 ▲5.15 |
Dashboard /wp-admin | 3.53 ▲0.12 | 33.40 ▼1.01 |
Posts /wp-admin/edit.php | 3.75 ▲0.11 | 35.68 ▼0.40 |
Add New Post /wp-admin/post-new.php | 7.01 ▲0.03 | 97.68 ▼1,183.37 |
Media Library /wp-admin/upload.php | 3.41 ▲0.10 | 26.06 ▼5.31 |
Admin Bar Tools /wp-admin/options-general.php?page=admin-bar-tools | 3.40 | 23.34 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- Illegal file modification detected: 2 files (0.00KB) outside of "wp-content/plugins/admin-bar-tools/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/admin-bar-tools/img/icon-128\303\227128.jpg"
- (new file) "wp-content/plugins/admin-bar-tools/img/icon-256\303\227256.jpg"
Filesystem: 42 new files
Database: no new tables, 1 new option
New WordPress options |
---|
abt_options |
Browser metrics Passed 4 tests
Admin Bar Tools: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,886 ▲164 | 15.89 ▲0.23 | 6.80 ▲1.19 | 2.48 ▲0.31 |
Dashboard /wp-admin | 2,942 ▲84 | 6.11 ▼0.01 | 118.74 ▼10.76 | 154.78 ▼1.15 |
Posts /wp-admin/edit.php | 2,741 ▲50 | 3.25 ▲0.01 | 64.07 ▲1.73 | 140.07 ▼3.89 |
Add New Post /wp-admin/post-new.php | 1,702 ▲41 | 16.93 ▲0.97 | 405.22 ▼22.09 | 161.51 ▲1.49 |
Media Library /wp-admin/upload.php | 1,751 ▲53 | 5.50 ▼0.01 | 142.44 ▲8.53 | 192.75 ▼0.30 |
Admin Bar Tools /wp-admin/options-general.php?page=admin-bar-tools | 1,444 | 7.66 | 166.10 | 145.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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
Please fix the following
- 10× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/admin-bar-tools/class/class-abt-add-admin-bar.php
- > /wp-content/plugins/admin-bar-tools/class/class-abt-return-data.php
- > /wp-content/plugins/admin-bar-tools/modules/cancel-activate.php
- > /wp-content/plugins/admin-bar-tools/admin-bar-tools.php
- > /wp-content/plugins/admin-bar-tools/class/class-abt-connect-database.php
- > /wp-content/plugins/admin-bar-tools/class/class-abt-base.php
- > /wp-content/plugins/admin-bar-tools/class/class-abt-activate.php
- > /wp-content/plugins/admin-bar-tools/lib/abt-strings.php
- > /wp-content/plugins/admin-bar-tools/class/class-abt-admin-page.php
- > /wp-content/plugins/admin-bar-tools/class/class-abt-admin-settings-page.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
4 plugin tags: toolbar, development, admin menu, admin bar
admin-bar-tools/admin-bar-tools.php Passed 13 tests
"Admin Bar Tools" version 1.5.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
62 characters long description:
A plugin that allows you to add useful links to the admin bar.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,285 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 130 | 355 | 1,117 |
PO File | 3 | 95 | 159 | 164 |
JSON | 2 | 0 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 10.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 6 | 13.95% |
▷ Public methods | 31 | 72.09% |
▷ Protected methods | 8 | 18.60% |
▷ Private methods | 4 | 9.30% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 4 | 28.57% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
18 compressed PNG files occupy 0.31MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/original/logo.png | 8.51KB | 9.65KB | 0.00% |
img/original/instagram_profile_image.png | 6.51KB | 7.53KB | 0.00% |
img/original/linkedin_banner_image_1.png | 8.84KB | 8.86KB | 0.00% |
img/original/facebook_cover_photo_1.png | 8.26KB | 8.26KB | 0.00% |
img/original/pinterest_board_photo.png | 4.98KB | 5.83KB | 0.00% |