79% wicked-block-builder

Code Review | Wicked Block Builder

WordPress plugin Wicked Block Builder scored79%from 54 tests.

About plugin

  • Plugin page: wicked-block-builder
  • Plugin version: 1.4.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Nov 13, 2021
  • Latest release: Aug 4, 2023
  • Number of updates: 18
  • Update frequency: every 35.4 days
  • Top authors: wickedplugins (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active /2,810 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.5947.96 ▲6.48
Dashboard /wp-admin3.88 ▲0.5753.38 ▼0.59
Posts /wp-admin/edit.php3.94 ▲0.5752.77 ▲0.44
Add New Post /wp-admin/post-new.php7.23 ▲1.3493.28 ▼3.93
Media Library /wp-admin/upload.php3.80 ▲0.5746.53 ▲11.55
Home /wp-admin/admin.php?page=wicked_block_builder_home4.8441.05
Categories /wp-admin/edit-tags.php?taxonomy=wbb_block_category&post_type=wbb_block3.7938.24
Blocks /wp-admin/edit.php?post_type=wbb_block3.8446.15
Add New /wp-admin/admin.php?page=wicked_block_builder_builder5.7163.88
Pattern Categories /wp-admin/edit-tags.php?taxonomy=wbb_block_pattern_category&post_type=wbb_block_patern3.7941.11
Patterns /wp-admin/edit.php?post_type=wbb_block_patern3.8441.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8214.70 ▲0.321.66 ▼0.0745.96 ▲2.34
Dashboard /wp-admin2,240 ▲635.62 ▼0.0982.89 ▼7.0938.96 ▼2.06
Posts /wp-admin/edit.php2,145 ▲421.95 ▼0.0634.78 ▼10.4035.65 ▼4.94
Add New Post /wp-admin/post-new.php1,593 ▲6524.62 ▲1.49694.50 ▲5.6637.73 ▼15.92
Media Library /wp-admin/upload.php1,448 ▲484.28 ▲0.0698.23 ▼9.1347.58 ▲2.00
Home /wp-admin/admin.php?page=wicked_block_builder_home1,0852.0123.7890.43
Categories /wp-admin/edit-tags.php?taxonomy=wbb_block_category&post_type=wbb_block1,2912.1225.5930.16
Blocks /wp-admin/edit.php?post_type=wbb_block1,0841.9532.8330.57
Add New /wp-admin/admin.php?page=wicked_block_builder_builder1,36911.18229.0556.44
Pattern Categories /wp-admin/edit-tags.php?taxonomy=wbb_block_pattern_category&post_type=wbb_block_patern1,2912.1326.4929.63
Patterns /wp-admin/edit.php?post_type=wbb_block_patern1,1091.9333.5929.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP236208743,341
SVG50050
JavaScript4004
CSS3003

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 code0.26
Average class complexity14.19
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes16
▷ Abstract classes212.50%
▷ Concrete classes1487.50%
▷ Final classes428.57%
Methods150
▷ Static methods138.67%
▷ Public methods12885.33%
▷ Protected methods53.33%
▷ Private methods1711.33%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
FileSize - originalSize - compressedSavings
dist/a45c44290d6716f70ef7.png29.69KB18.40KB▼ 38.04%