Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼5.27ms] Passed 4 tests
Server-side resources used by Block Editor Colors
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 41.01 ▼7.36 |
Dashboard /wp-admin | 3.53 ▲0.23 | 51.11 ▲2.06 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 50.74 ▲4.30 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 84.48 ▼17.09 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 39.24 ▲1.30 |
Editor Colors /wp-admin/options-general.php?page=editor-colors | 3.43 | 35.25 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
bec_css_prefix |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Block Editor Colors
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.52 | 1.79 ▼0.79 | 37.14 ▼6.57 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▼0.06 | 84.91 ▼13.29 | 35.36 ▼5.64 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.98 ▼0.02 | 36.41 ▼2.92 | 32.21 ▼6.89 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 22.88 ▼0.26 | 586.65 ▼101.09 | 57.23 ▼1.57 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.03 | 97.42 ▼7.96 | 44.38 ▲1.23 |
Editor Colors /wp-admin/options-general.php?page=editor-colors | 2,940 | 2.97 | 101.28 | 32.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- bec_css_prefix
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function BlockEditorColors\\register_post_type() in wp-content/plugins/block-editor-colors/includes/CustomColorsService.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function BlockEditorColors\\add_action() in wp-content/plugins/block-editor-colors/includes/BlockEditorColors.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function BlockEditorColors\\add_option() in wp-content/plugins/block-editor-colors/includes/OptionsService.php:26
- > PHP Fatal error
Uncaught Error: Class 'BlockEditorColors\\DefaultColorsService' not found in wp-content/plugins/block-editor-colors/includes/ColorsService.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function BlockEditorColors\\get_theme_support() in wp-content/plugins/block-editor-colors/includes/DefaultColorsService.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function BlockEditorColors\\add_action() in wp-content/plugins/block-editor-colors/includes/admin/AdminPages.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3 in block-editor-colors/assets to your readme.txt
block-editor-colors/plugin.php 92% from 13 tests
The principal PHP file in "Block Editor Colors" v. 1.2.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("block-editor-colors.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,094 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 216 | 22 | 906 |
CSS | 1 | 27 | 0 | 131 |
JavaScript | 1 | 8 | 0 | 57 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 7 | 13.46% |
▷ Public methods | 42 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 19.23% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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