71% dynamic-blocks-builder

Code Review | Dynamic Blocks for WordPress, WooCommerce & Gutenberg

WordPress plugin Dynamic Blocks for WordPress, WooCommerce & Gutenberg scored71%from 54 tests.

About plugin

  • Plugin page: dynamic-blocks-bu...
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4
  • WordPress version: 6.3.1
  • First release: Oct 5, 2022
  • Latest release: Nov 9, 2023
  • Number of updates: 59
  • Update frequency: every 6.8 days
  • Top authors: dynamicblock (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /707 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲1.36MB] [CPU: ▲4.81ms] Passed 4 tests

A check of server-side resources used by Dynamic Blocks for WordPress, WooCommerce & Gutenberg
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.73 ▲1.2650.15 ▲7.31
Dashboard /wp-admin4.69 ▲1.3556.32 ▼3.87
Posts /wp-admin/edit.php4.80 ▲1.4560.93 ▲12.09
Add New Post /wp-admin/post-new.php7.36 ▲1.47104.26 ▲3.71
Media Library /wp-admin/upload.php4.62 ▲1.3948.91 ▲12.21
Dashboard /wp-admin/admin.php?page=dynamicblock-dashboard4.6050.43
Blocks /wp-admin/edit.php?post_type=dynamicblock-block4.6342.59
Help & Support /wp-admin/admin.php?page=help4.5643.53

Server storage [IO: ▲8.61MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 157 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Dynamic Blocks for WordPress, WooCommerce & Gutenberg
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲14117.12 ▲2.7717.60 ▲15.9144.56 ▲1.57
Dashboard /wp-admin2,192 ▲146.23 ▲0.54132.13 ▲17.9084.36 ▲38.34
Posts /wp-admin/edit.php2,086 ▼143.77 ▲1.8288.28 ▲50.3560.48 ▲25.81
Add New Post /wp-admin/post-new.php6,280 ▲4,75422.65 ▼0.621,100.71 ▲398.1050.72 ▼5.78
Media Library /wp-admin/upload.php1,459 ▲655.51 ▲1.33136.21 ▲31.9279.54 ▲36.19
Dashboard /wp-admin/admin.php?page=dynamicblock-dashboard1,3983.6073.6670.93
Blocks /wp-admin/edit.php?post_type=dynamicblock-block1,8493.6842.7173.98
Help & Support /wp-admin/admin.php?page=help7252.9823.5828.19

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=dynamicblock-block
    • > Notice in wp-content/plugins/dynamic-blocks-builder/admin/class/class-dynamicblock-admin.php+375
    Undefined index: page
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=help
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/dynamic-blocks-builder/templates/admin/dynamicblock_page_title.php
  • 44× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: _dynamicblock_product_set_control in wp-content/plugins/dynamic-blocks-builder/admin/meta-boxes/dynamicblock-product-set-meta-box.php on line 8
    • > PHP Warning
      include_once(vitec/getUser.php): failed to open stream: No such file or directory in wp-content/plugins/dynamic-blocks-builder/admin/class/display-rules/functions.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/dynamic-blocks-builder/templates/admin/dynamicblock-nav-banner.php on line 2
    • > PHP Warning
      Use of undefined constant DYNAMICBLOCK_PLUGIN_URL - assumed 'DYNAMICBLOCK_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dynamic-blocks-builder/admin/meta-boxes/where-display-meta-box.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dynamic-blocks-builder/admin/class/class-admin-dashboard-grid.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/dynamic-blocks-builder/templates/admin/dynamicblock-textarea.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'DynamicBlock_Conditional_Content_Input_Text' not found in wp-content/plugins/dynamic-blocks-builder/admin/class/inputs/time_picker.php:3
    • > PHP Warning
      include_once(vitec/getOptions.php): failed to open stream: No such file or directory in wp-content/plugins/dynamic-blocks-builder/admin/class/display-rules/functions.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/dynamic-blocks-builder/admin/class/class-admin-dashboard-grid.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/dynamic-blocks-builder/templates/admin/dynamicblock-nav-banner.php:6

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)
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #6 (Add custom CSS or JS.), #7 (Dynamic Blocks Builder is a tool designed for Ecommerce Manager)
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

dynamic-blocks-builder/dynamicblock.php 77% from 13 tests

The entry point to "Dynamic Blocks for WordPress, WooCommerce & Gutenberg" version 1.1.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Keep the plugin description shorter than 140 characters (currently 212 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dynamic-blocks-builder.php" instead of "dynamicblock.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected67,013 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript163,9737,72941,730
PHP821,9361,17212,070
SVG25037,708
CSS126422435,411
JSON10094

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity13.85
▷ Minimum class complexity1.00
▷ Maximum class complexity337.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity98.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes87
▷ Abstract classes00.00%
▷ Concrete classes87100.00%
▷ Final classes00.00%
Methods422
▷ Static methods4310.19%
▷ Public methods41598.34%
▷ Protected methods00.00%
▷ Private methods71.66%
Functions41
▷ Named functions3175.61%
▷ Anonymous functions1024.39%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/up-arrow-white.png6.03KB2.60KB▼ 56.83%
assets/images/down-arrow-white.png7.95KB3.42KB▼ 57.04%
assets/css/owl.video.play.png4.86KB2.74KB▼ 43.61%
assets/images/down-arrow-black.png3.84KB3.78KB▼ 1.60%
assets/images/dynamicblock_fav.png48.25KB1.34KB▼ 97.22%