89% kt-tinymce-color-grid

Code Review | Central Color Palette

WordPress plugin Central Color Palette scored89%from 54 tests.

About plugin

  • Plugin page: kt-tinymce-color-...
  • Plugin version: 1.15.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.3
  • WordPress version: 6.3.1
  • First release: Feb 21, 2015
  • Latest release: Aug 16, 2023
  • Number of updates: 170
  • Update frequency: every 18.2 days
  • Top authors: kungtiger (97.06%)tessawatkinsllc (3.53%)

Code review

54 tests

User reviews

56 reviews

Install metrics

20,000+ active /417,094 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.51MB] [CPU: ▼0.26ms] Passed 4 tests

Analyzing server-side resources used by Central Color Palette
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5443.23 ▲1.89
Dashboard /wp-admin3.84 ▲0.5448.59 ▲3.81
Posts /wp-admin/edit.php3.89 ▲0.5449.52 ▲3.06
Add New Post /wp-admin/post-new.php6.36 ▲0.4899.41 ▼8.11
Media Library /wp-admin/upload.php3.70 ▲0.4839.07 ▲2.14
Central Color Palette /wp-admin/options-general.php?page=kt_tinymce_color_grid3.7040.15

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
kt_color_grid_version
kt_color_grid_map
widget_theysaidso_widget
widget_recent-posts
kt_color_grid_astra_theme
kt_color_grid_palette
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Central Color Palette
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲5014.48 ▲0.081.69 ▼0.3839.40 ▼8.82
Dashboard /wp-admin2,207 ▲225.84 ▼0.0698.28 ▼1.8738.22 ▼2.01
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0239.87 ▲0.7836.45 ▲1.57
Add New Post /wp-admin/post-new.php1,545 ▲1418.71 ▼4.44647.51 ▼2.1459.69 ▲1.09
Media Library /wp-admin/upload.php1,395 ▲74.17 ▼0.0393.31 ▼26.5941.06 ▼7.84
Central Color Palette /wp-admin/options-general.php?page=kt_tinymce_color_grid1,8912.8661.8128.13

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
7 plugin tags: gutenberg, picker, color, editor, customizer...

kt-tinymce-color-grid/index.php 85% from 13 tests

This is the main PHP file of "Central Color Palette" version 1.15.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("kt-tinymce-color-grid.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6,005 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript789522,734
PHP23224692,645
Sass1562590
CSS50036

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity462.00
▷ Minimum class complexity462.00
▷ Maximum class complexity462.00
Average method complexity4.87
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods119
▷ Static methods10.84%
▷ Public methods8067.23%
▷ Protected methods3831.93%
▷ Private methods10.84%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants63
▷ Global constants57.94%
▷ Class constants5892.06%
▷ Public constants58100.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
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/alpha.png1.30KB2.32KB0.00%
css/wheel.png5.91KB5.91KB0.00%
css/marker.png0.35KB0.71KB0.00%
css/a.png0.10KB0.10KB▼ 0.95%
css/mask.png1.95KB4.18KB0.00%