Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.90ms] Passed 4 tests
An overview of server-side resources used by Contextual Adminbar Color
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.13 ▼4.94 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.15 ▲1.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.43 ▼2.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 81.41 ▼21.58 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.80 ▲2.24 |
Adminbar settings /wp-admin/tools.php?page=contextual-adminbar-color | 3.20 | 30.81 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Contextual Adminbar Color
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.73 ▲0.43 | 1.62 ▼0.17 | 44.31 ▲0.11 |
Dashboard /wp-admin | 2,213 ▲25 | 4.86 ▼0.21 | 95.83 ▼7.42 | 37.84 ▼2.98 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.04 | 34.50 ▼7.27 | 37.07 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.60 ▼0.72 | 657.47 ▼8.63 | 52.64 ▼0.39 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.21 ▲0.04 | 93.76 ▼20.96 | 43.00 ▼4.20 |
Adminbar settings /wp-admin/tools.php?page=contextual-adminbar-color | 1,130 | 1.71 | 27.23 | 29.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contextual-adminbar-color/contextual-adminbar-color.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: staging, environments, production, scheme, environment...
contextual-adminbar-color/contextual-adminbar-color.php 92% from 13 tests
Analyzing the main PHP file in "Contextual Adminbar Color" version 0.3.1
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.3" instead of "5.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,306 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 144 | 72 | 822 |
PHP | 3 | 36 | 21 | 484 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
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 | 10 | |
▷ Named functions | 10 | 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
9 PNG files occupy 0.48MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 115.31KB | 34.04KB | ▼ 70.48% |
images/schemes/scheme-red.png | 0.79KB | 0.15KB | ▼ 81.53% |
assets/screenshot-3.png | 214.98KB | 84.13KB | ▼ 60.86% |
images/schemes/scheme-darkgray.png | 0.78KB | 0.15KB | ▼ 81.15% |
images/schemes/scheme-green.png | 0.80KB | 0.15KB | ▼ 80.88% |