Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 40.56 ▲17.74 |
Dashboard /wp-admin | 3.07 ▲0.02 | 46.86 ▼0.33 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 48.57 ▲3.65 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 96.48 ▼570.57 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.27 ▲0.80 | 8.96 ▼2.10 | 51.86 ▼2.37 |
Dashboard /wp-admin | 2,973 ▲42 | 5.88 ▼0.08 | 145.36 ▼4.23 | 125.04 ▲9.93 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 71.18 ▲5.18 | 94.92 ▼1.08 |
Add New Post /wp-admin/post-new.php | 1,693 ▲102 | 18.93 ▲0.13 | 382.49 ▲3.56 | 137.22 ▲24.61 |
Media Library /wp-admin/upload.php | 1,807 ▲3 | 5.02 ▼0.01 | 161.51 ▼2.07 | 124.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 35 | 0 | 163 |
CSS | 1 | 20 | 0 | 106 |
PHP | 1 | 31 | 11 | 48 |
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 code | 0.47 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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