94% tinymce-colorpicker

Code Review | TinyMCE Color Picker

WordPress plugin TinyMCE Color Picker scored 94% from 54 tests.

About plugin

  • Plugin page: tinymce-colorpicker
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9
  • WordPress version: 5.8.1
  • First release: Apr 26, 2014
  • Latest release: May 1, 2014
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: avryl (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

2,000+ active / 15,326 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼141.60ms] Passed 4 tests

Analyzing server-side resources used by TinyMCE Color Picker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1340.56 ▲17.74
Dashboard /wp-admin3.07 ▲0.0246.86 ▼0.33
Posts /wp-admin/edit.php3.12 ▲0.0248.57 ▲3.65
Add New Post /wp-admin/post-new.php5.43 ▼0.0096.48 ▼570.57
Media Library /wp-admin/upload.php3.02 ▲0.0134.03 ▲0.84

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

TinyMCE Color Picker: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.27 ▲0.808.96 ▼2.1051.86 ▼2.37
Dashboard /wp-admin2,973 ▲425.88 ▼0.08145.36 ▼4.23125.04 ▲9.93
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0071.18 ▲5.1894.92 ▼1.08
Add New Post /wp-admin/post-new.php1,693 ▲10218.93 ▲0.13382.49 ▲3.56137.22 ▲24.61
Media Library /wp-admin/upload.php1,807 ▲35.02 ▼0.01161.51 ▼2.07124.82 ▲5.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tinymce-colorpicker/tinymce-colorpicker.php:15

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: color picker, tinymce

tinymce-colorpicker/tinymce-colorpicker.php Passed 13 tests

"TinyMCE Color Picker" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
38 characters long description:
A color picker for the TinyMCE editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin317 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected