90% custom-color-palette

Code Review | Custom Color Palette for Gutenberg

WordPress plugin Custom Color Palette for Gutenberg scored90%from 54 tests.

About plugin

  • Plugin page: custom-color-palette
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.4
  • WordPress version: 6.3.1
  • First release: Oct 31, 2018
  • Latest release: Apr 1, 2020
  • Number of updates: 5
  • Update frequency: every 103.8 days
  • Top authors: ThemeZee (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /21,005 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.05MB] [CPU: ▼11.60ms] Passed 4 tests

A check of server-side resources used by Custom Color Palette for Gutenberg
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.96 ▼4.22
Dashboard /wp-admin3.38 ▲0.0849.24 ▲0.78
Posts /wp-admin/edit.php3.49 ▲0.1446.93 ▼2.28
Add New Post /wp-admin/post-new.php5.44 ▼0.4568.78 ▼39.34
Media Library /wp-admin/upload.php3.30 ▲0.0835.64 ▼0.57

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Color Palette for Gutenberg
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.36 ▼0.221.87 ▲0.0544.01 ▼2.80
Dashboard /wp-admin2,195 ▲155.58 ▼0.1188.57 ▼3.7038.57 ▼9.69
Posts /wp-admin/edit.php2,103 ▼02.05 ▲0.0534.88 ▼8.4933.98 ▼2.69
Add New Post /wp-admin/post-new.php1,542 ▼423.27 ▲0.08653.63 ▼40.2351.44 ▼11.46
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0293.95 ▼16.5243.61 ▼5.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: gutenberg, color palette, colors, editor

custom-color-palette/custom-color-palette.php Passed 13 tests

The principal PHP file in "Custom Color Palette for Gutenberg" v. 1.0 is loaded by WordPress automatically on each request
100 characters long description:
A small and simple plugin to adjust the default color palette of the new WordPress Gutenberg Editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin647 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP590218397
CSS24228209
JavaScript292041

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 code0.14
Average class complexity2.60
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods24
▷ Static methods2395.83%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin