83% blocks-for-shopengine

Code Review | ShopEngine Gutenberg WooCommerce Builder Blocks Addon - All in One WooCommerce Solution

WordPress plugin ShopEngine Gutenberg WooCommerce Builder Blocks Addon - All in One WooCommerce Solution scored 83% from 54 tests.

About plugin

  • Plugin page: blocks-for-shopen...
  • Plugin version: 2.3.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 31, 2022
  • Latest release: Sep 11, 2023
  • Number of updates: 19
  • Update frequency: every 27.9 days
  • Top authors: ataurr (52.63%)wpmet (36.84%)xpeedstudio (21.05%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 4,633 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.39ms] Passed 4 tests

Analyzing server-side resources used by ShopEngine Gutenberg WooCommerce Builder Blocks Addon - All in One WooCommerce Solution
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.66 ▼6.16
Dashboard /wp-admin3.32 ▲0.0244.78 ▼3.87
Posts /wp-admin/edit.php3.43 ▲0.0844.63 ▼3.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.44 ▼7.95
Media Library /wp-admin/upload.php3.24 ▲0.0137.45 ▲1.12

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 391 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for ShopEngine Gutenberg WooCommerce Builder Blocks Addon - All in One WooCommerce Solution
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.20 ▼1.111.58 ▼0.4440.33 ▼6.18
Dashboard /wp-admin2,226 ▲384.88 ▼0.01110.99 ▲3.8841.41 ▼5.49
Posts /wp-admin/edit.php2,112 ▲232.04 ▲0.0239.82 ▲4.4334.51 ▲3.46
Add New Post /wp-admin/post-new.php1,537 ▲1517.98 ▼4.91642.01 ▼58.1363.16 ▲15.45
Media Library /wp-admin/upload.php1,411 ▲204.20 ▲0.0296.74 ▼6.3846.30 ▼1.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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 items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/blocks-for-shopengine/blocks/account-details/screen.php
    • > /wp-content/plugins/blocks-for-shopengine/blocks/related/dummy-related-product.php
    • > /wp-content/plugins/blocks-for-shopengine/blocks/product-tabs/screen.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: woocommerce product, woocommerce gutenberg, gutenberg, woo builder, woocommerce...

blocks-for-shopengine/shopengine-gutenberg-addon.php 77% from 13 tests

The main PHP file in "ShopEngine Gutenberg WooCommerce Builder Blocks Addon - All in One WooCommerce Solution" ver. 2.3.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("blocks-for-shopengine.php" instead of "shopengine-gutenberg-addon.php")
  • 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: Please keep the plugin description shorter than 140 characters (currently 341 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin129,816 lines of code in 365 files:
LanguageFilesBlank linesComment linesLines of code
JSON761,326086,048
JavaScript1613,34281626,757
SVG6009,634
PHP1111,8046097,366
CSS110311

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity19.57
▷ Minimum class complexity3.00
▷ Maximum class complexity45.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods89
▷ Static methods4348.31%
▷ Public methods8696.63%
▷ Protected methods00.00%
▷ Private methods33.37%
Functions31
▷ Named functions1754.84%
▷ Anonymous functions1445.16%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin