Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.19MB] [CPU: ▼41.22ms] Passed 4 tests
A check of server-side resources used by Color Palette
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.79 ▼0.67 | 14.62 ▼22.07 |
Dashboard /wp-admin | 2.83 ▼0.51 | 15.27 ▼42.40 |
Posts /wp-admin/edit.php | 2.83 ▼0.52 | 17.17 ▼30.27 |
Add New Post /wp-admin/post-new.php | 2.83 ▼3.06 | 16.56 ▼70.14 |
Media Library /wp-admin/upload.php | 2.83 ▼0.40 | 15.04 ▼18.92 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Color Palette: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲165 | 13.96 ▼0.33 | 9.65 ▲8.07 | 43.68 ▲7.26 |
Dashboard /wp-admin | 2,206 ▲17 | 5.91 ▲0.95 | 106.46 ▼2.33 | 37.05 ▼2.24 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.03 ▲0.02 | 39.14 ▲2.03 | 36.05 ▲2.52 |
Add New Post /wp-admin/post-new.php | 1,686 ▲167 | 24.75 ▲1.46 | 640.87 ▲7.28 | 54.91 ▲0.63 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.17 ▼0.02 | 99.02 ▲0.56 | 39.80 ▼4.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function register_block_script_handle was called incorrectly. The asset file (wp-content/plugins/color-palette/source/blocks/color/../../../build/color-palette.min.asset.php) for the "script" defined in "tdg/color" block definition is missing. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function ThatDevGirl\\ColorPalette\\add_action() in wp-content/plugins/color-palette/source/blocks/color/register.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function ThatDevGirl\\ColorPalette\\add_action() in wp-content/plugins/color-palette/inc/setup.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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: colors, palette, visual identity, block, branding
color-palette/color-palette.php Passed 13 tests
Analyzing the main PHP file in "Color Palette" version 4.3
115 characters long description:
This WordPress plugin adds a color palette block to the post editor, to be used for branding and style guide pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,437 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 16 | 147 | 115 | 1,916 |
Sass | 6 | 71 | 1 | 258 |
PHP | 3 | 63 | 143 | 161 |
JSON | 2 | 13 | 0 | 100 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 57.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 42.86% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG images were not found in this plugin