Benchmarks
Plugin footprint 83% 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.27MB] [CPU: ▼1.71ms] Passed 4 tests
This is a short check of server-side resources used by kitblocks - Gutenberg Blocks and Website Builder .
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.99 ▲1.53 | 46.65 ▲5.07 |
Dashboard /wp-admin | 4.87 ▲1.57 | 58.44 ▲8.43 |
Posts /wp-admin/edit.php | 4.96 ▲1.60 | 61.28 ▲15.50 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 61.25 ▼34.58 |
Media Library /wp-admin/upload.php | 4.76 ▲1.53 | 50.90 ▲14.24 |
Server storage [IO: ▲9.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 612 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for kitblocks - Gutenberg Blocks and Website Builder .
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,188 ▲417 | 18.97 ▲4.59 | 6.80 ▲4.78 | 36.21 ▼7.76 |
Dashboard /wp-admin | 2,488 ▲300 | 9.26 ▲4.39 | 186.79 ▲67.26 | 42.73 ▼2.92 |
Posts /wp-admin/edit.php | 2,404 ▲315 | 6.13 ▲4.14 | 84.66 ▲47.15 | 34.42 ▼1.32 |
Add New Post /wp-admin/post-new.php | 1,575 ▲42 | 18.67 ▼4.45 | 775.29 ▲102.35 | 50.70 ▼1.52 |
Media Library /wp-admin/upload.php | 1,543 ▲158 | 6.73 ▲2.53 | 108.00 ▲2.29 | 45.16 ▼1.74 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/kitblocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 222× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Text_Field.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/templates/Container/user_meta.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kitblocks/includes/banner-two-block-simple/banner-two-block-simple.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kitblocks/includes/simple-counter-area/simple-counter-area.php:10
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Predefined_Options_Field.php:12
- > PHP Notice
Undefined variable: plural in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 32
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Checkbox_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/TaoInstaller.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kitblocks/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php:4
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: editor, gutenberg blocks, website block, website builder, page builder...
kitblocks/kitblocks.php Passed 13 tests
The principal PHP file in "kitblocks - Gutenberg Blocks and Website Builder ." v. 1.0.1 is loaded by WordPress automatically on each request
57 characters long description:
KitBlocks is design block for WordPress Gutenberg Block.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected36,148 lines of code in 561 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 179 | 5,204 | 8,458 | 12,961 |
PHP | 256 | 2,891 | 6,945 | 11,259 |
CSS | 31 | 1,542 | 1,206 | 6,873 |
Sass | 59 | 375 | 2 | 2,590 |
PO File | 20 | 610 | 779 | 1,652 |
JSON | 5 | 0 | 0 | 625 |
HTML | 4 | 6 | 0 | 114 |
Markdown | 4 | 26 | 0 | 71 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 231 | |
▷ Abstract classes | 12 | 5.19% |
▷ Concrete classes | 219 | 94.81% |
▷ Final classes | 1 | 0.46% |
Methods | 1,012 | |
▷ Static methods | 91 | 8.99% |
▷ Public methods | 804 | 79.45% |
▷ Protected methods | 199 | 19.66% |
▷ Private methods | 9 | 0.89% |
Functions | 121 | |
▷ Named functions | 25 | 20.66% |
▷ Anonymous functions | 96 | 79.34% |
Constants | 36 | |
▷ Global constants | 10 | 27.78% |
▷ Class constants | 26 | 72.22% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.39MB with 0.19MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 399.74KB | 200.45KB | ▼ 49.86% |