Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.40ms] Passed 4 tests
Server-side resources used by Iris Color Picker Enhancer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.18 ▼1.64 |
Dashboard /wp-admin | 3.35 ▲0.00 | 48.42 ▼11.86 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.43 ▼2.65 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.26 ▼13.34 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.52 ▼1.75 |
Iris Color Picker Enhancer /wp-admin/options-general.php?page=iris-color-picker-enhancer | 3.26 | 30.58 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 15 new options
New WordPress options |
---|
icpe_color_palettes5 |
icpe_color_palettes7 |
widget_recent-comments |
db_upgraded |
icpe_color_alpha |
can_compress_scripts |
widget_theysaidso_widget |
icpe_color_palettes1 |
icpe_color_palettes2 |
icpe_color_palettes3 |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Iris Color Picker Enhancer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲86 | 14.43 ▼0.29 | 1.99 ▼0.57 | 46.28 ▼6.31 |
Dashboard /wp-admin | 2,226 ▲46 | 5.80 ▲0.15 | 102.62 ▲13.48 | 41.91 ▼2.16 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.33 ▲0.33 | 39.91 ▼1.08 | 34.25 ▼1.66 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.60 ▼0.09 | 690.73 ▲42.44 | 37.34 ▼48.18 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.54 ▲0.34 | 108.04 ▲6.64 | 48.45 ▲4.82 |
Iris Color Picker Enhancer /wp-admin/options-general.php?page=iris-color-picker-enhancer | 1,257 | 2.77 | 60.84 | 42.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 14 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- icpe_color_palettes7
- icpe_color_palettes4
- widget_theysaidso_widget
- icpe_color_alpha
- widget_recent-posts
- icpe_color_palettes3
- ...
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/iris-color-picker-enhancer/includes/icpe-settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/iris-color-picker-enhancer/iris-color-picker-enhancer.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: color swatches, iris, color palette, iris color picker, alpha...
iris-color-picker-enhancer/iris-color-picker-enhancer.php Passed 13 tests
The primary PHP file in "Iris Color Picker Enhancer" version 1.1 is used by WordPress to initiate all plugin functionality
61 characters long description:
Customise the default color palette used by Iris Color Picker
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 detected497 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 73 | 24 | 403 |
CSS | 1 | 15 | 3 | 93 |
JavaScript | 1 | 0 | 11 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
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 | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 21.54KB | 11.92KB | ▼ 44.66% |
screenshot-1.png | 53.77KB | 15.45KB | ▼ 71.27% |