Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.28ms] Passed 4 tests
Analyzing server-side resources used by Admin Bar Fix
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.41 ▼4.02 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.40 ▼3.40 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 51.11 ▲0.76 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.99 ▼15.54 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.33 ▼2.15 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Admin Bar Fix
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 14.37 ▲0.02 | 2.01 ▲0.27 | 43.52 ▼0.02 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▲0.06 | 85.99 ▼15.26 | 43.47 ▲4.63 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.03 | 38.88 ▼0.33 | 40.27 ▲4.82 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.14 ▲4.70 | 627.73 ▼42.63 | 61.18 ▼15.12 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.14 ▼0.10 | 95.52 ▼15.98 | 42.73 ▼2.73 |
Admin Bar Fix /wp-admin/admin-bar-fix.php | 26 | 0.42 | 0.17 | 13.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/admin-bar-fix/styles/icon.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/admin-bar-fix/styles/vertical.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/admin-bar-fix/styles/ghost.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/admin-bar-fix/styles/bottom.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin-bar-fix.php
- > Network (severe)
wp-admin/admin-bar-fix.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: margin, adjustment, adminbar, fix, enhancement...
admin-bar-fix/admin-bar-fix.php 92% from 13 tests
"Admin Bar Fix" version 2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
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
There were no executable files found in this plugin535 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 24 | 18 | 481 |
PO File | 1 | 17 | 19 | 54 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.86 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 14.50 |
▷ Minimum method complexity | 8.00 |
▷ Maximum method complexity | 21.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin