Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.92MB] [CPU: ▼49.84ms] Passed 4 tests
This is a short check of server-side resources used by jQuery Color Picker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.57 ▼36.45 |
Dashboard /wp-admin | 2.08 ▼1.22 | 5.25 ▼43.10 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 6.39 ▼38.58 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 6.47 ▼81.22 |
Media Library /wp-admin/upload.php | 2.08 ▼1.14 | 5.42 ▼28.78 |
Color Picker /wp-admin/options-general.php?page=Color-Picker | 2.08 | 5.58 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_colorpicker |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for jQuery Color Picker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲161 | 13.71 ▼1.06 | 5.52 ▲3.64 | 43.31 ▲0.81 |
Dashboard /wp-admin | 2,214 ▲26 | 5.86 ▲0.95 | 108.91 ▼1.13 | 38.44 ▼7.23 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.04 ▼0.02 | 39.74 ▲4.21 | 35.83 ▲0.50 |
Add New Post /wp-admin/post-new.php | 1,530 ▼4 | 18.12 ▼5.34 | 606.16 ▼77.68 | 63.95 ▲1.86 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.24 ▲0.04 | 95.67 ▼5.12 | 44.15 ▼0.22 |
Color Picker /wp-admin/options-general.php?page=Color-Picker | 852 | 2.02 | 24.91 | 31.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the layout handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=Color-Picker
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the layout handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=Color-Picker
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the layout handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=Color-Picker
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the colorpickercss handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=Color-Picker
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the colorpickercss handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Color-Picker
- > Notice in wp-content/plugins/jquery-color-picker/colorpicker_admin.php+124
Undefined variable: nPickerType
- > GET request to /wp-admin/options-general.php?page=Color-Picker
- > Notice in wp-content/plugins/jquery-color-picker/colorpicker_admin.php+127
Undefined variable: sPickername
- > GET request to /wp-admin/options-general.php?page=Color-Picker
- > Notice in wp-content/plugins/jquery-color-picker/colorpicker_admin.php+129
Undefined variable: sDefaultColor
- > GET request to /wp-admin/options-general.php?page=Color-Picker
- > Notice in wp-content/plugins/jquery-color-picker/colorpicker_admin.php+133
Undefined index: mode
- > GET request to /wp-admin/options-general.php?page=Color-Picker
- > Warning in wp-content/plugins/jquery-color-picker/jquery-color-picker.php+101
Creating default object from empty value
SRP 0% 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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/jquery-color-picker/classes/core.php
- > /wp-content/plugins/jquery-color-picker/colorpicker_admin.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/jquery-color-picker/jquery-color-picker.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Icon base Color Picker), #2 (Field base Color Picker), #3 (Color Picker Admin View)
jquery-color-picker/jquery-color-picker.php Passed 13 tests
"jQuery Color Picker" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
96 characters long description:
A simple plugin to select color in the same way you select color in Adobe Photoshop using jQuery
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,482 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 2 | 20 | 748 |
CSS | 3 | 2 | 0 | 502 |
PHP | 3 | 15 | 45 | 232 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
24 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/colorpicker_hsb_s.png | 1.14KB | 0.80KB | ▼ 29.97% |
images/custom_hsb_b.png | 1.07KB | 0.82KB | ▼ 23.61% |
images/colorpicker_hex.png | 0.52KB | 0.42KB | ▼ 19.92% |
images/custom_rgb_r.png | 0.99KB | 0.74KB | ▼ 25.34% |
images/slider.png | 0.31KB | 1.51KB | 0.00% |