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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 43.23 ▲1.89 |
Dashboard /wp-admin | 3.84 ▲0.54 | 48.59 ▲3.81 |
Posts /wp-admin/edit.php | 3.89 ▲0.54 | 49.52 ▲3.06 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.48 | 99.41 ▼8.11 |
Media Library /wp-admin/upload.php | 3.70 ▲0.48 | 39.07 ▲2.14 |
Central Color Palette /wp-admin/options-general.php?page=kt_tinymce_color_grid | 3.70 | 40.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲50 | 14.48 ▲0.08 | 1.69 ▼0.38 | 39.40 ▼8.82 |
Dashboard /wp-admin | 2,207 ▲22 | 5.84 ▼0.06 | 98.28 ▼1.87 | 38.22 ▼2.01 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.02 | 39.87 ▲0.78 | 36.45 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 18.71 ▼4.44 | 647.51 ▼2.14 | 59.69 ▲1.09 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.17 ▼0.03 | 93.31 ▼26.59 | 41.06 ▼7.84 |
Central Color Palette /wp-admin/options-general.php?page=kt_tinymce_color_grid | 1,891 | 2.86 | 61.81 | 28.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 89 | 52 | 2,734 |
PHP | 2 | 322 | 469 | 2,645 |
Sass | 1 | 56 | 2 | 590 |
CSS | 5 | 0 | 0 | 36 |
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 code | 0.45 |
Average class complexity | 462.00 |
▷ Minimum class complexity | 462.00 |
▷ Maximum class complexity | 462.00 |
Average method complexity | 4.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 1 | 0.84% |
▷ Public methods | 80 | 67.23% |
▷ Protected methods | 38 | 31.93% |
▷ Private methods | 1 | 0.84% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 63 | |
▷ Global constants | 5 | 7.94% |
▷ Class constants | 58 | 92.06% |
▷ Public constants | 58 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/alpha.png | 1.30KB | 2.32KB | 0.00% |
css/wheel.png | 5.91KB | 5.91KB | 0.00% |
css/marker.png | 0.35KB | 0.71KB | 0.00% |
css/a.png | 0.10KB | 0.10KB | ▼ 0.95% |
css/mask.png | 1.95KB | 4.18KB | 0.00% |