10% editor-custom-color-palette

Code Review | Editor Custom Color Palette

WordPress plugin Editor Custom Color Palette scored10%from 54 tests.

About plugin

  • Plugin page: editor-custom-col...
  • Plugin version: 3.1.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 12, 2021
  • Latest release: Nov 11, 2023
  • Number of updates: 214
  • Update frequency: every 4.0 days
  • Top authors: rock4temps (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /8,242 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /6.92 ▲3.4558.55 ▲13.22
Dashboard /wp-admin6.94 ▲3.5959.48 ▼0.23
Posts /wp-admin/edit.php6.94 ▲3.5858.53 ▲14.20
Add New Post /wp-admin/post-new.php9.04 ▲3.16112.07 ▲16.64
Media Library /wp-admin/upload.php6.94 ▲3.7153.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,988 ▲24113.98 ▼0.374.94 ▲3.2040.09 ▲0.58
Dashboard /wp-admin2,291 ▲1115.85 ▲0.22100.22 ▲13.0387.02 ▲44.35
Posts /wp-admin/edit.php2,184 ▲842.16 ▲0.1437.16 ▲0.1937.74 ▲1.99
Add New Post /wp-admin/post-new.php1,771 ▲24223.92 ▲0.66713.71 ▲87.8735.32 ▼17.35
Media Library /wp-admin/upload.php1,470 ▲674.48 ▲0.36105.29 ▲2.5384.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:
LanguageFilesBlank linesComment linesLines of code
PHP310,1389,42417,835
PO File17798991,573
CSS32092091,302
JavaScript15375718477
SVG3204441
JSON1001

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 code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions438
▷ Named functions43298.63%
▷ Anonymous functions61.37%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/custom-gutenberg-block/heading-prefix-icon.png4.13KB2.36KB▼ 43.03%
img/custom-gutenberg-editor/align-wide.png98.43KB2.59KB▼ 97.37%
img/editor-font-size/custom-font-size.png3.21KB2.17KB▼ 32.20%
img/addons-reusable-blocks/paragraph-custom-block.png8.08KB5.00KB▼ 38.17%
img/addons-reusable-blocks/blockquote-block.png20.52KB10.56KB▼ 48.54%