Benchmarks
Plugin footprint 82% from 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.01MB] [CPU: ▼8.43ms] 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.46 ▲0.00 | 37.82 ▼0.94 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.76 ▼10.10 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.99 ▼1.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.37 ▼20.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.17 ▲5.13 |
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-256\303\227256.jpg"
- (new file) "wp-content/plugins/admin-bar-tools/img/icon-128\303\227128.jpg"
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
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 / | 2,814 ▲68 | 14.35 ▲0.00 | 1.86 ▲0.30 | 39.82 ▼1.15 |
Dashboard /wp-admin | 2,195 ▲21 | 5.63 ▼0.05 | 91.01 ▲3.78 | 39.73 ▼0.88 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.00 | 40.64 ▼2.33 | 36.01 ▼4.02 |
Add New Post /wp-admin/post-new.php | 1,526 ▼7 | 23.66 ▲0.60 | 684.98 ▲27.85 | 53.59 ▼1.07 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.14 ▼0.08 | 94.47 ▼2.90 | 44.07 ▲2.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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 0% 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
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/admin-bar-tools/class/class-abt-phpver-judge.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/class/class-abt-connect-database.php
- > /wp-content/plugins/admin-bar-tools/lib/abt-strings.php
- > /wp-content/plugins/admin-bar-tools/class/class-abt-activate.php
- > /wp-content/plugins/admin-bar-tools/class/class-abt-admin-settings-page.php
- > /wp-content/plugins/admin-bar-tools/admin-bar-tools.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Parse error
syntax error, unexpected '=>' (T_DOUBLE_ARROW) in wp-content/plugins/admin-bar-tools/class/class-abt-admin-page.php on line 139
- > PHP Parse error
syntax error, unexpected '=>' (T_DOUBLE_ARROW) in wp-content/plugins/admin-bar-tools/class/class-abt-add-admin-bar.php on line 59
- > PHP Parse error
syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/admin-bar-tools/class/class-abt-base.php on line 276
- > PHP Parse error
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, admin menu, admin bar, development
admin-bar-tools/admin-bar-tools.php Passed 13 tests
"Admin Bar Tools" version 1.6.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,404 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 147 | 396 | 1,232 |
PO File | 3 | 99 | 149 | 168 |
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.34 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 7 | 14.58% |
▷ Public methods | 36 | 75.00% |
▷ Protected methods | 8 | 16.67% |
▷ Private methods | 4 | 8.33% |
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/favicon.png | 0.29KB | 0.29KB | 0.33% |
img/original/twitter_header_photo_2.png | 3.59KB | 3.59KB | 0.03% |
img/original/instagram_profile_image.png | 6.51KB | 7.53KB | 0.00% |
img/original/facebook_cover_photo_2.png | 3.81KB | 3.81KB | 0.00% |
img/original/youtube_profile_image.png | 4.98KB | 5.83KB | 0.00% |