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.01MB] [CPU: ▼4.21ms] Passed 4 tests
Server-side resources used by Custom CSS for Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.06 ▲1.50 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.62 ▼0.02 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.12 ▲3.08 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.29 ▼15.96 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.53 ▼2.34 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Custom CSS for Blocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.28 ▼0.07 | 1.59 ▼0.30 | 42.48 ▲3.94 |
Dashboard /wp-admin | 2,195 ▲23 | 5.56 ▼0.15 | 85.40 ▼14.56 | 39.46 ▼2.61 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.01 ▲0.06 | 38.81 ▲4.15 | 36.28 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 24.90 ▲1.01 | 690.32 ▼6.48 | 60.60 ▲7.82 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.16 ▼0.03 | 96.73 ▼4.19 | 43.39 ▼0.92 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Almost there! Just fix the following items
- 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/custom-css-for-blocks/php-vendor/scssphp/src/Block/AtRootBlock.php:21
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/custom-css-for-blocks/php-vendor/scssphp/src/Formatter/Nested.php:27
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/custom-css-for-blocks/php-vendor/scssphp/src/Formatter/Compressed.php:24
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/custom-css-for-blocks/php-vendor/scssphp/src/Exception/RangeException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/custom-css-for-blocks/php-vendor/scssphp/src/Exception/ParserException.php:22
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\ode' not found in wp-content/plugins/custom-css-for-blocks/php-vendor/scssphp/src/Node/Number.php:36
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/custom-css-for-blocks/php-vendor/scssphp/src/Formatter/Crunched.php:26
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/custom-css-for-blocks/php-vendor/scssphp/src/Formatter/Debug.php:26
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/custom-css-for-blocks/php-vendor/scssphp/src/Block/CallableBlock.php:21
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/custom-css-for-blocks/php-vendor/scssphp/src/Exception/CompilerException.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: editor, css, custom css, custom block design, block customization...
custom-css-for-blocks/custom-css-for-blocks.php 92% from 13 tests
The main PHP script in "Custom CSS for Blocks" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Domain Path: The domain path folder was not found ("/i18n/languages/")
Code Analysis 95% from 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
No dangerous file extensions were detected11,691 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 54 | 3,347 | 5,356 | 11,492 |
JSON | 1 | 0 | 0 | 111 |
Markdown | 3 | 42 | 0 | 81 |
XML | 1 | 1 | 5 | 6 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,484)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 198)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 51.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,484.00 |
Average method complexity | 5.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 198.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 3 | 6.52% |
Methods | 516 | |
▷ Static methods | 31 | 6.01% |
▷ Public methods | 165 | 31.98% |
▷ Protected methods | 305 | 59.11% |
▷ Private methods | 46 | 8.91% |
Functions | 40 | |
▷ Named functions | 12 | 30.00% |
▷ Anonymous functions | 28 | 70.00% |
Constants | 75 | |
▷ Global constants | 3 | 4.00% |
▷ Class constants | 72 | 96.00% |
▷ Public constants | 72 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin