Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/editor-custom-color-palette/editor-custom-color-palette.php+3064
Trying to access array offset on value of type bool
Server metrics [RAM: ▲3.45MB] [CPU: ▲10.96ms] Passed 4 tests
Server-side resources used by Editor Custom Color Palette
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.92 ▲3.45 | 58.55 ▲13.22 |
Dashboard /wp-admin | 6.94 ▲3.59 | 59.48 ▼0.23 |
Posts /wp-admin/edit.php | 6.94 ▲3.58 | 58.53 ▲14.20 |
Add New Post /wp-admin/post-new.php | 9.04 ▲3.16 | 112.07 ▲16.64 |
Media Library /wp-admin/upload.php | 6.94 ▲3.71 | 53.31 ▲19.88 |
Server storage [IO: ▲5.75MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 139 new files
Database: no new tables, 17 new options
New WordPress options |
---|
eccp_setting_editor_text_size |
eccp_settings_reusable_blocks |
eccp_settings_custom_back_office |
widget_theysaidso_widget |
eccp_settings_elementor |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
eccp_settings_default_settings |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Editor Custom Color Palette
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,988 ▲241 | 13.98 ▼0.37 | 4.94 ▲3.20 | 40.09 ▲0.58 |
Dashboard /wp-admin | 2,291 ▲111 | 5.85 ▲0.22 | 100.22 ▲13.03 | 87.02 ▲44.35 |
Posts /wp-admin/edit.php | 2,184 ▲84 | 2.16 ▲0.14 | 37.16 ▲0.19 | 37.74 ▲1.99 |
Add New Post /wp-admin/post-new.php | 1,771 ▲242 | 23.92 ▲0.66 | 713.71 ▲87.87 | 35.32 ▼17.35 |
Media Library /wp-admin/upload.php | 1,470 ▲67 | 4.48 ▲0.36 | 105.29 ▲2.53 | 84.19 ▲41.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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 did not uninstall successfully, leaving 17 options in the database
- eccp_settings_custom_gutenberg_editor
- eccp_multiple_setting
- eccp_settings_default_settings
- widget_recent-posts
- eccp_settings_custom_back_office
- theysaidso_admin_options
- eccp_settings_reusable_blocks
- active_plugin_version
- db_upgraded
- eccp_settings_custom_gutenberg_block
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: color palette, customize editor, gutenberg block
editor-custom-color-palette/editor-custom-color-palette.php Passed 13 tests
The main PHP file in "Editor Custom Color Palette" ver. 3.1.9 adds more information about the plugin and also serves as the entry point for this plugin
90 characters long description:
A simple plugin to customize the color palette & text sizes & blocks from editor Gutenberg
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin21,629 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 10,138 | 9,424 | 17,835 |
PO File | 1 | 779 | 899 | 1,573 |
CSS | 3 | 209 | 209 | 1,302 |
JavaScript | 15 | 375 | 718 | 477 |
SVG | 32 | 0 | 4 | 441 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 438 | |
▷ Named functions | 432 | 98.63% |
▷ Anonymous functions | 6 | 1.37% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/custom-gutenberg-block/heading-prefix-icon.png | 4.13KB | 2.36KB | ▼ 43.03% |
img/custom-gutenberg-editor/align-wide.png | 98.43KB | 2.59KB | ▼ 97.37% |
img/editor-font-size/custom-font-size.png | 3.21KB | 2.17KB | ▼ 32.20% |
img/addons-reusable-blocks/paragraph-custom-block.png | 8.08KB | 5.00KB | ▼ 38.17% |
img/addons-reusable-blocks/blockquote-block.png | 20.52KB | 10.56KB | ▼ 48.54% |