Benchmarks
Plugin footprint Passed 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.17MB] [CPU: ▼155.91ms] Passed 4 tests
This is a short check of server-side resources used by Custom Swatches for Iris Color Picker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 40.35 ▲19.45 |
Dashboard /wp-admin | 2.89 ▼0.17 | 40.24 ▼12.14 |
Posts /wp-admin/edit.php | 3.02 ▼0.09 | 39.99 ▼14.59 |
Add New Post /wp-admin/post-new.php | 5.02 ▼0.42 | 83.45 ▼586.88 |
Media Library /wp-admin/upload.php | 2.98 ▼0.02 | 27.31 ▼10.04 |
Color Swatches /wp-admin/options-general.php?page=iceberg_iris_color | 2.88 | 28.01 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Custom Swatches for Iris Color Picker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,691 ▲95 | 15.77 ▲0.16 | 12.61 ▼0.51 | 51.95 ▲7.18 |
Dashboard /wp-admin | 2,985 ▲54 | 5.92 ▼0.09 | 149.17 ▼3.69 | 123.08 ▲9.66 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.72 ▼0.00 | 75.14 ▼2.32 | 93.17 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,625 ▼58 | 20.98 ▲4.72 | 309.29 ▼93.14 | 114.69 ▲2.05 |
Media Library /wp-admin/upload.php | 1,819 ▲12 | 5.05 ▲0.05 | 166.21 ▼30.68 | 124.03 ▲3.39 |
Color Swatches /wp-admin/options-general.php?page=iceberg_iris_color | 1,128 | 2.36 | 62.09 | 79.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=iceberg_iris_color
- > Notice in wp-content/plugins/custom-swatches-for-iris-color-picker/custom-iris-swatches.php+283
Trying to access array offset on value of type bool
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-swatches-for-iris-color-picker/custom-iris-swatches.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: iris color picker, color swatches, iris, iris color
custom-swatches-for-iris-color-picker/custom-iris-swatches.php 92% from 13 tests
The entry point to "Custom Swatches for Iris Color Picker" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-swatches-for-iris-color-picker.php" instead of "custom-iris-swatches.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin225 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 50 | 56 | 197 |
JavaScript | 1 | 0 | 0 | 18 |
CSS | 1 | 1 | 0 | 10 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
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 | 15 | |
▷ Named functions | 15 | 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
No PNG images were found in this plugin