Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.61ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Color Picker Enhancement
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.81 ▲0.56 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.56 ▲2.39 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 41.20 ▼8.75 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 76.39 ▼20.23 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.11 ▲2.00 |
WP ColorPicker /wp-admin/options-general.php?page=d2l-wp-colorpicker | 3.26 | 30.99 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 24 new options
New WordPress options |
---|
d2l_color_palettes17 |
d2l_color_palettes16 |
d2l_color_palettes14 |
d2l_color_palettes6 |
widget_recent-posts |
d2l_color_palettes1 |
widget_recent-comments |
d2l_color_palettes11 |
theysaidso_admin_options |
d2l_color_palettes7 |
... |
Browser metrics Passed 4 tests
WordPress Color Picker Enhancement: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.75 ▲0.11 | 1.74 ▲0.03 | 44.24 ▼0.17 |
Dashboard /wp-admin | 2,212 ▲24 | 5.89 ▲1.02 | 109.91 ▲9.71 | 41.36 ▼3.05 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.98 ▼0.07 | 33.21 ▼8.29 | 32.66 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,522 ▼8 | 23.29 ▲5.29 | 622.23 ▼17.39 | 48.22 ▼7.52 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.22 ▲0.04 | 100.52 ▲2.63 | 43.68 ▼2.05 |
WP ColorPicker /wp-admin/options-general.php?page=d2l-wp-colorpicker | 1,596 | 3.34 | 84.95 | 28.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 24 options in the database
- d2l_color_palettes5
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- d2l_color_palettes3
- d2l_color_palettes14
- d2l_color_palettes2
- db_upgraded
- d2l_color_palettes10
- d2l_color_palettes13
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/d2l-wp-color-picker-enhancement/includes/d2l-cp-settings.php:5
- > PHP Fatal 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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2 in d2l-wp-color-picker-enhancement/assets to your readme.txt
d2l-wp-color-picker-enhancement/d2l-wp-colorpicker.php 92% from 13 tests
Analyzing the main PHP file in "WordPress Color Picker Enhancement" version 1.0.1
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("d2l-wp-color-picker-enhancement.php" instead of "d2l-wp-colorpicker.php")
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
No dangerous file extensions were detected167 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 15 | 17 | 165 |
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 were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 9 | |
▷ Named functions | 9 | 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
No PNG files were detected