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
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.16ms] Passed 4 tests
A check of server-side resources used by Color Your Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.77 ▼3.75 |
Dashboard /wp-admin | 3.38 ▲0.07 | 49.15 ▼1.77 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.84 ▼0.16 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 96.42 ▼10.97 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.69 ▼0.05 |
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, 9 new options
New WordPress options |
---|
widget_recent-posts |
cyb-ios-full-mode |
cyb-post-type |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
cyb-switch |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Color Your Bar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 13.62 ▼0.76 | 1.70 ▼0.06 | 42.64 ▼0.16 |
Dashboard /wp-admin | 2,252 ▲49 | 5.09 ▲0.25 | 107.73 ▲1.56 | 38.15 ▼7.18 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.31 ▲0.32 | 41.80 ▼5.30 | 36.30 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,554 ▲6 | 17.86 ▼5.57 | 640.06 ▲22.57 | 36.92 ▼25.80 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.35 ▲0.05 | 95.66 ▼15.91 | 42.22 ▼7.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- cyb-switch
- theysaidso_admin_options
- cyb-post-type
- widget_recent-comments
- can_compress_scripts
- cyb-ios-full-mode
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/color-your-bar/color-your-bar.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: ios full mode, chrome bar, google chrome mobile, chorme address bar, chrome android...
color-your-bar/color-your-bar.php 85% from 13 tests
The main PHP script in "Color Your Bar" version 2.0 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
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 detected240 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 56 | 237 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 20 | |
▷ Named functions | 20 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin