Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼8.83ms] Passed 4 tests
A check of server-side resources used by Block Editor Bootstrap Blocks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.45 | 41.96 ▲5.90 |
Dashboard /wp-admin | 3.75 ▲0.40 | 49.77 ▼11.34 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 43.80 ▼2.20 |
Add New Post /wp-admin/post-new.php | 7.87 ▲1.98 | 75.81 ▼25.87 |
Media Library /wp-admin/upload.php | 3.69 ▲0.45 | 38.90 ▲4.10 |
Server storage [IO: ▲2.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 244 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Block Editor Bootstrap Blocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 14.49 ▲0.14 | 4.44 ▲2.84 | 45.24 ▲3.21 |
Dashboard /wp-admin | 2,199 ▲19 | 5.63 ▲0.03 | 81.13 ▼6.51 | 38.24 ▼0.54 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.03 | 34.17 ▼8.09 | 32.78 ▼2.70 |
Add New Post /wp-admin/post-new.php | 6,379 ▲4,842 | 34.54 ▲16.07 | 1,090.87 ▲469.09 | 57.08 ▼5.59 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.17 ▲0.01 | 94.00 ▼8.37 | 42.98 ▼0.18 |
Bootstrap Blocks /wp-admin/block-editor-bootstrap-blocks.php | 26 | 0.42 | 0.09 | 13.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 items
- 62× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/block-editor-bootstrap-blocks/vendor/sabberworm/php-css-parser/src/Property/Charset.php:16
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/block-editor-bootstrap-blocks/vendor/scssphp/scssphp/src/Formatter/Expanded.php:24
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/block-editor-bootstrap-blocks/vendor/scssphp/scssphp/src/Formatter/Crunched.php:26
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Logger\\LoggerInterface' not found in wp-content/plugins/block-editor-bootstrap-blocks/vendor/scssphp/scssphp/src/Logger/StreamLogger.php:20
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/block-editor-bootstrap-blocks/vendor/scssphp/scssphp/src/Exception/ServerException.php:24
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Parsing\\UnexpectedTokenException' not found in wp-content/plugins/block-editor-bootstrap-blocks/vendor/sabberworm/php-css-parser/src/Parsing/UnexpectedEOFException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Padaliyajay\\PHPAutoprefixer\\Vendor\\Vendor' not found in wp-content/plugins/block-editor-bootstrap-blocks/vendor/padaliyajay/php-autoprefixer/src/Vendor/Mozilla.php:6
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/block-editor-bootstrap-blocks/vendor/scssphp/scssphp/src/Block/AtRootBlock.php:21
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/block-editor-bootstrap-blocks/vendor/scssphp/scssphp/src/Block/IfBlock.php:21
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\CSSFunction' not found in wp-content/plugins/block-editor-bootstrap-blocks/vendor/sabberworm/php-css-parser/src/Value/Color.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/block-editor-bootstrap-blocks.php
- > Network (severe)
wp-admin/block-editor-bootstrap-blocks.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7 in block-editor-bootstrap-blocks/assets to your readme.txt
block-editor-bootstrap-blocks/block-editor-bootstrap-blocks.php 92% from 13 tests
Analyzing the main PHP file in "Block Editor Bootstrap Blocks" version 6.4.1
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/block-editor-bootstrap-blocks/vendor/bin/pscss.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 121 | 4,186 | 7,596 | 17,013 |
Sass | 88 | 1,339 | 1,297 | 6,797 |
Markdown | 5 | 210 | 0 | 817 |
JSON | 11 | 0 | 0 | 697 |
CSS | 5 | 22 | 6 | 195 |
JavaScript | 4 | 11 | 10 | 58 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 0% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,493)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 198)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 30.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,493.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 198.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 104 | |
▷ Abstract classes | 9 | 8.65% |
▷ Concrete classes | 95 | 91.35% |
▷ Final classes | 3 | 3.16% |
Methods | 921 | |
▷ Static methods | 88 | 9.55% |
▷ Public methods | 546 | 59.28% |
▷ Protected methods | 310 | 33.66% |
▷ Private methods | 65 | 7.06% |
Functions | 38 | |
▷ Named functions | 1 | 2.63% |
▷ Anonymous functions | 37 | 97.37% |
Constants | 84 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 84 | 100.00% |
▷ Public constants | 84 | 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
No PNG files were detected