Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.58MB] [CPU: ▲0.60ms] Passed 4 tests
Server-side resources used by Wicked Block Builder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.59 | 47.96 ▲6.48 |
Dashboard /wp-admin | 3.88 ▲0.57 | 53.38 ▼0.59 |
Posts /wp-admin/edit.php | 3.94 ▲0.57 | 52.77 ▲0.44 |
Add New Post /wp-admin/post-new.php | 7.23 ▲1.34 | 93.28 ▼3.93 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 46.53 ▲11.55 |
Home /wp-admin/admin.php?page=wicked_block_builder_home | 4.84 | 41.05 |
Categories /wp-admin/edit-tags.php?taxonomy=wbb_block_category&post_type=wbb_block | 3.79 | 38.24 |
Blocks /wp-admin/edit.php?post_type=wbb_block | 3.84 | 46.15 |
Add New /wp-admin/admin.php?page=wicked_block_builder_builder | 5.71 | 63.88 |
Pattern Categories /wp-admin/edit-tags.php?taxonomy=wbb_block_pattern_category&post_type=wbb_block_patern | 3.79 | 41.11 |
Patterns /wp-admin/edit.php?post_type=wbb_block_patern | 3.84 | 41.83 |
Server storage [IO: ▲1.05MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wicked Block Builder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲82 | 14.70 ▲0.32 | 1.66 ▼0.07 | 45.96 ▲2.34 |
Dashboard /wp-admin | 2,240 ▲63 | 5.62 ▼0.09 | 82.89 ▼7.09 | 38.96 ▼2.06 |
Posts /wp-admin/edit.php | 2,145 ▲42 | 1.95 ▼0.06 | 34.78 ▼10.40 | 35.65 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,593 ▲65 | 24.62 ▲1.49 | 694.50 ▲5.66 | 37.73 ▼15.92 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.28 ▲0.06 | 98.23 ▼9.13 | 47.58 ▲2.00 |
Home /wp-admin/admin.php?page=wicked_block_builder_home | 1,085 | 2.01 | 23.78 | 90.43 |
Categories /wp-admin/edit-tags.php?taxonomy=wbb_block_category&post_type=wbb_block | 1,291 | 2.12 | 25.59 | 30.16 |
Blocks /wp-admin/edit.php?post_type=wbb_block | 1,084 | 1.95 | 32.83 | 30.57 |
Add New /wp-admin/admin.php?page=wicked_block_builder_builder | 1,369 | 11.18 | 229.05 | 56.44 |
Pattern Categories /wp-admin/edit-tags.php?taxonomy=wbb_block_pattern_category&post_type=wbb_block_patern | 1,291 | 2.13 | 26.49 | 29.63 |
Patterns /wp-admin/edit.php?post_type=wbb_block_patern | 1,109 | 1.93 | 33.59 | 29.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 17× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/wicked-block-builder/classes/class-singleton.php
- > /wp-content/plugins/wicked-block-builder/classes/rest-api/v1/class-block-api.php
- > /wp-content/plugins/wicked-block-builder/classes/class-block-version.php
- > /wp-content/plugins/wicked-block-builder/classes/class-plugin.php
- > /wp-content/plugins/wicked-block-builder/classes/class-admin.php
- > /wp-content/plugins/wicked-block-builder/classes/class-util.php
- > /wp-content/plugins/wicked-block-builder/classes/rest-api/v1/class-generator-api.php
- > /wp-content/plugins/wicked-block-builder/classes/class-block-pattern-collection.php
- > /wp-content/plugins/wicked-block-builder/classes/rest-api/v1/class-builder-api.php
- > /wp-content/plugins/wicked-block-builder/classes/rest-api/v1/class-rest-api.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: missing in wp-content/plugins/wicked-block-builder/templates/missing-blocks.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wicked-block-builder/wicked-block-builder.php:32
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wicked-block-builder/templates/missing-blocks.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wicked-block-builder/templates/home.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: blocks, block builder, developer, gutenberg, administration
wicked-block-builder/wicked-block-builder.php Passed 13 tests
The principal PHP file in "Wicked Block Builder" v. 1.4.3 is loaded by WordPress automatically on each request
41 characters long description:
Rapidy create custom blocks and patterns.
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin3,398 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 620 | 874 | 3,341 |
SVG | 5 | 0 | 0 | 50 |
JavaScript | 4 | 0 | 0 | 4 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 14.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 2 | 12.50% |
▷ Concrete classes | 14 | 87.50% |
▷ Final classes | 4 | 28.57% |
Methods | 150 | |
▷ Static methods | 13 | 8.67% |
▷ Public methods | 128 | 85.33% |
▷ Protected methods | 5 | 3.33% |
▷ Private methods | 17 | 11.33% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/a45c44290d6716f70ef7.png | 29.69KB | 18.40KB | ▼ 38.04% |