77% wc-builder

Code Review | WC Builder - WooCommerce Page Builder for WPBakery

WordPress plugin WC Builder - WooCommerce Page Builder for WPBakery scored77%from 54 tests.

About plugin

  • Plugin page: wc-builder
  • Plugin version: 1.0.18
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 13, 2019
  • Latest release: Aug 3, 2023
  • Number of updates: 39
  • Update frequency: every 38.1 days
  • Top authors: hasthemes (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /34,694 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.54MB] [CPU: ▲1.06ms] 75% from 4 tests

This is a short check of server-side resources used by WC Builder - WooCommerce Page Builder for WPBakery
Please take the time to fix the following items
  • CPU: The total CPU usage must kept under 500.00ms (currently 1,853.66ms on /wp-admin/admin.php?page=wpbforwpbakery_extensions)
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3141.45 ▼2.38
Dashboard /wp-admin3.98 ▲0.6469.23 ▲1.13
Posts /wp-admin/edit.php4.03 ▲0.6866.82 ▲17.09
Add New Post /wp-admin/post-new.php6.49 ▲0.6197.27 ▼0.51
Media Library /wp-admin/upload.php3.82 ▲0.5944.62 ▲5.98
WC Page Builder Options /wp-admin/admin.php?page=wpbforwpbakery_options3.8248.37
Recommendations /wp-admin/admin.php?page=wpbforwpbakery_extensions8.291,853.66
All Templates /wp-admin/edit.php?post_type=wpbfwpb_template3.9548.25

Server storage [IO: ▲0.51MB] [DB: ▲0.69MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 66 new files
Database: no new tables, 12 new options
New WordPress options
wpbforwpbakery_rename_label_tabs
db_upgraded
wpbforwpbakery_buy_pro_tabs
theysaidso_admin_options
can_compress_scripts
wpbforwpbakery_general_tabs
wpbforwpbakery_woo_template_tabs
wpbforwpbakery_elements_tabs
wpbforwpbakery_other_tabs
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Checking browser requirements for WC Builder - WooCommerce Page Builder for WPBakery
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,035 ▲28914.84 ▲0.182.28 ▲0.7438.01 ▼1.28
Dashboard /wp-admin2,411 ▲2346.55 ▲0.90125.65 ▲32.3894.74 ▲57.22
Posts /wp-admin/edit.php2,333 ▲2333.46 ▲1.4456.61 ▲20.9583.66 ▲47.04
Add New Post /wp-admin/post-new.php1,750 ▲22222.46 ▼0.62667.71 ▲34.49164.63 ▲118.01
Media Library /wp-admin/upload.php1,479 ▲824.51 ▲0.2889.18 ▼14.1296.07 ▲52.57
WC Page Builder Options /wp-admin/admin.php?page=wpbforwpbakery_options2,4583.7559.9480.57
Recommendations /wp-admin/admin.php?page=wpbforwpbakery_extensions3,1393.8048.9139.74
All Templates /wp-admin/edit.php?post_type=wpbfwpb_template1,3063.8448.1780.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 12 options
    • wpbforwpbakery_elements_tabs
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • wpbforwpbakery_woo_template_tabs
    • wpbforwpbakery_buy_pro_tabs
    • widget_recent-posts
    • wpbforwpbakery_general_tabs
    • wpbforwpbakery_rename_label_tabs
    • ...

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 13× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wc-builder/includes/addons/product_add_to_cart.php
    • > /wp-content/plugins/wc-builder/includes/addons/product_short_description.php
    • > /wp-content/plugins/wc-builder/includes/addons/product_upsell.php
    • > /wp-content/plugins/wc-builder/includes/addons/product_rating.php
    • > /wp-content/plugins/wc-builder/includes/addons/archive_product.php
    • > /wp-content/plugins/wc-builder/includes/addons/product_related.php
    • > /wp-content/plugins/wc-builder/includes/addons/product_stock.php
    • > /wp-content/plugins/wc-builder/includes/addons/product_title.php
    • > /wp-content/plugins/wc-builder/includes/addons/product_price.php
    • > /wp-content/plugins/wc-builder/includes/addons/product_reviews.php
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-builder/includes/woo_shop.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-builder/includes/activation-notice.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wc-builder/includes/addons/product_image.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wc-builder/includes/addons/product_meta.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-builder/includes/single-add-to-cart-ajax.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-builder/includes/custom-posts.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-builder/includes/rename_label.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-builder/includes/metaboxes.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in wc-builder/assets to your readme.txt
The official readme.txt might help

wc-builder/wc-builder.php 92% from 13 tests

The main file in "WC Builder - WooCommerce Page Builder for WPBakery" v. 1.0.18 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,704 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP358106124,039
CSS31917436
JavaScript35938229

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.36
▷ Minimum class complexity2.00
▷ Maximum class complexity72.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes00.00%
Methods122
▷ Static methods54.10%
▷ Public methods11594.26%
▷ Protected methods75.74%
▷ Private methods00.00%
Functions31
▷ Named functions3096.77%
▷ Anonymous functions13.23%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
19 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) includes/admin/recommended-plugins/assets/images/extensions/wp-plugin-manager-pro.png13.31KB0.00KB▼ 100.00%
includes/admin/recommended-plugins/assets/images/extensions/ht-script-pro.png6.03KB2.71KB▼ 55.09%
includes/admin/recommended-plugins/assets/images/extensions/whols-pro.png15.30KB7.40KB▼ 51.65%
includes/admin/recommended-plugins/assets/images/extensions/swatchly-pro.png13.99KB5.41KB▼ 61.37%
includes/admin/recommended-plugins/assets/images/extensions/htmega-pro.png4.60KB4.78KB0.00%