78% shopbuilder

Code Review | ShopBuilder - Elementor WooCommerce Builder Addons

WordPress plugin ShopBuilder - Elementor WooCommerce Builder Addons scored78%from 54 tests.

About plugin

  • Plugin page: shopbuilder
  • Plugin version: 2.0.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.4
  • WordPress version: 6.3.1
  • First release: Dec 13, 2022
  • Latest release: Dec 1, 2023
  • Number of updates: 22
  • Update frequency: every 18.5 days
  • Top authors: techlabpro1 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

900+ active /5,299 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 gracefully, with no errors

Server metrics [RAM: ▲0.20MB] [CPU: ▼6.17ms] Passed 4 tests

Analyzing server-side resources used by ShopBuilder - Elementor WooCommerce Builder Addons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1938.20 ▼0.51
Dashboard /wp-admin3.55 ▲0.2447.49 ▼20.91
Posts /wp-admin/edit.php3.60 ▲0.2459.11 ▲9.89
Add New Post /wp-admin/post-new.php6.07 ▲0.1887.18 ▼9.65
Media Library /wp-admin/upload.php3.41 ▲0.1840.11 ▲6.39

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 416 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

ShopBuilder - Elementor WooCommerce Builder Addons: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲2514.31 ▼0.031.66 ▼0.3341.40 ▼0.95
Dashboard /wp-admin2,217 ▲405.61 ▲0.0193.53 ▲2.3144.21 ▼2.88
Posts /wp-admin/edit.php2,126 ▲262.11 ▲0.1043.63 ▲3.5541.17 ▲2.32
Add New Post /wp-admin/post-new.php1,548 ▲923.63 ▲0.47700.17 ▲79.7161.44 ▲9.82
Media Library /wp-admin/upload.php1,425 ▲254.25 ▲0.0499.00 ▲2.6843.28 ▲3.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 208× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/shopbuilder/app/Elementor/Widgets/Controls/SliderSettings.php
    • > /wp-content/plugins/shopbuilder/templates/elementor/archive/title.php
    • > /wp-content/plugins/shopbuilder/templates/elementor/general/slider/slider-layout1.php
    • > /wp-content/plugins/shopbuilder/app/Controllers/ThemesSupport/Astra/WidgetsSupport.php
    • > /wp-content/plugins/shopbuilder/app/Elementor/Controls/ImageSelectorControl.php
    • > /wp-content/plugins/shopbuilder/app/Modules/QuickView/QuickView.php
    • > /wp-content/plugins/shopbuilder/templates/wishlist/list.php
    • > /wp-content/plugins/shopbuilder/app/Elementor/Widgets/Single/RelatedProduct.php
    • > /wp-content/plugins/shopbuilder/app/Modules/WishList/WishlistAdmin.php
    • > /wp-content/plugins/shopbuilder/app/Elementor/Widgets/Controls/ProductShareSettings.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Trait 'RadiusTheme\\SB\\Traits\\SingletonTrait' not found in wp-content/plugins/shopbuilder/app/Helpers/ElementorDataMap.php on line 7

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

shopbuilder/shopbuilder.php 92% from 13 tests

"ShopBuilder - Elementor WooCommerce Builder Addons" version 2.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.5" instead of "3.2")

Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin34,689 lines of code in 350 files:
LanguageFilesBlank linesComment linesLines of code
PHP2384,9829,27433,859
SVG8901757
JSON20040
JavaScript10110122
CSS1111111

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please tend to the following items
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 123)
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity12.68
▷ Minimum class complexity1.00
▷ Maximum class complexity306.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity123.00
Code structure
Namespaces33
Interfaces0
Traits2
Classes165
▷ Abstract classes53.03%
▷ Concrete classes16096.97%
▷ Final classes42.50%
Methods1,019
▷ Static methods35735.03%
▷ Public methods84783.12%
▷ Protected methods11210.99%
▷ Private methods605.89%
Functions37
▷ Named functions12.70%
▷ Anonymous functions3697.30%
Constants14
▷ Global constants642.86%
▷ Class constants857.14%
▷ Public constants787.50%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
32 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/layout/old-filter-layout-2.png1.75KB1.08KB▼ 38.06%
assets/images/layout/old-filter-layout-1.png1.83KB1.14KB▼ 37.71%
assets/images/demo.png5.48KB3.86KB▼ 29.64%
assets/images/layout/filter-layout-2.png2.33KB1.25KB▼ 46.52%
assets/images/layout/image-layout-gallery-bottom-2.png1.45KB1.19KB▼ 17.98%