66% vc-addons-by-bit14

Code Review | Web and WooCommerce Addons for WPBakery Builder

WordPress plugin Web and WooCommerce Addons for WPBakery Builder scored66%from 54 tests.

About plugin

  • Plugin page: vc-addons-by-bit14
  • Plugin version: 1.4.4.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.3
  • WordPress version: 6.3.1
  • First release: Apr 11, 2017
  • Latest release: May 17, 2022
  • Number of updates: 131
  • Update frequency: every 14.6 days
  • Top authors: genetech (80.92%)bit14 (19.85%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /73,997 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.30ms] Passed 4 tests

This is a short check of server-side resources used by Web and WooCommerce Addons for WPBakery Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.40 ▲1.27
Dashboard /wp-admin3.34 ▼0.0048.40 ▼10.10
Posts /wp-admin/edit.php3.39 ▲0.0445.34 ▼1.87
Add New Post /wp-admin/post-new.php5.94 ▲0.0682.67 ▼14.48
Media Library /wp-admin/upload.php3.26 ▲0.0439.28 ▲2.80
Web Addons (Pro) /wp-admin/admin.php?page=page_builder_addons_main_menu3.2135.26
About Us /wp-admin/admin.php?page=page_builder_addons_about_us3.2431.40
Woo Addons (Pro) /wp-admin/admin.php?page=page_builder_addons_wooaddons3.2329.57
Settings /wp-admin/admin.php?page=page_builder_addons_settings3.2329.55

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Web and WooCommerce Addons for WPBakery Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.41 ▲0.121.90 ▲0.2041.78 ▲0.84
Dashboard /wp-admin2,199 ▲314.93 ▼0.61100.25 ▲10.7573.40 ▲28.52
Posts /wp-admin/edit.php2,116 ▲162.28 ▲0.2834.07 ▼1.9832.70 ▼1.76
Add New Post /wp-admin/post-new.php1,702 ▲17422.70 ▼0.47631.47 ▼39.0936.84 ▼15.92
Media Library /wp-admin/upload.php1,413 ▲104.54 ▲0.34111.65 ▲16.0280.74 ▲36.50
Custom Post Type (Pro) /wp-admin/admin.php?page=page_builder_addons_main_menu/#custom-post-type2,4465.5693.24123.79
Web Addons (Pro) /wp-admin/admin.php?page=page_builder_addons_main_menu2,4465.4690.9086.32
About Us /wp-admin/admin.php?page=page_builder_addons_about_us9551.8225.0034.33
Woo Addons (Pro) /wp-admin/admin.php?page=page_builder_addons_wooaddons1,2133.4446.3941.06
Settings /wp-admin/admin.php?page=page_builder_addons_settings8921.8825.6231.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=page_builder_addons_main_menu
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'addons_list_page' not found or invalid function name

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/vc-addons-by-bit14/classes/class-bit-pricing-table-child.php
  • 31× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPBakeryShortCode' not found in wp-content/plugins/vc-addons-by-bit14/classes/class-bit-recent-posts.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WPBakeryShortCode' not found in wp-content/plugins/vc-addons-by-bit14/classes/class-bit-animated-text.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WPBakeryShortCode' not found in wp-content/plugins/vc-addons-by-bit14/classes/class-bit-theme-font.php:9
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/vc-addons-by-bit14/menus/helpers/PluginSilentUpgrader.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'WPBakeryShortCode' not found in wp-content/plugins/vc-addons-by-bit14/classes/class-bit-info-banner.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vc-addons-by-bit14/menus/about-us.php:135
    • > PHP Fatal error
      Uncaught Error: Class 'WPBakeryShortCode' not found in wp-content/plugins/vc-addons-by-bit14/classes/class-bit-iconic-list.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WPBakeryShortCode' not found in wp-content/plugins/vc-addons-by-bit14/classes/class-bit-social-icons.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WPBakeryShortCode' not found in wp-content/plugins/vc-addons-by-bit14/classes/class-bit-dividers.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WPBakeryShortCode' not found in wp-content/plugins/vc-addons-by-bit14/classes/class-bit-ribbon.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=page_builder_addons_settings
    • > Network (severe)
    wp-content/plugins/vc-addons-by-bit14/assets/js/tabs-lib.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=page_builder_addons_settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).tabs is not a function" "TypeError: $(...).tabs is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/vc-addons-by-bit14/assets/js/admin.js?ver=6.3.1:154:26)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=page_builder_addons_settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).tabs is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: wpbakery page builder, wpbakery addons, web addons, wpbakery page templates, addons for wpbakery page builder...

vc-addons-by-bit14/bit14-vc-addons.php 85% from 13 tests

This is the main PHP file of "Web and WooCommerce Addons for WPBakery Builder" version 1.4.4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("vc-addons-by-bit14.php" instead of "bit14-vc-addons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected25,450 lines of code in 82 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript253,5941,92615,263
PHP299086406,154
CSS261841503,799
JSON100218
SVG10016

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity25.70
▷ Minimum class complexity1.00
▷ Maximum class complexity96.00
Average method complexity9.23
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods69
▷ Static methods34.35%
▷ Public methods6594.20%
▷ Protected methods45.80%
▷ Private methods00.00%
Functions26
▷ Named functions2596.15%
▷ Anonymous functions13.85%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
81 PNG files occupy 1.52MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/addons-img/single-post.png0.59KB0.85KB0.00%
assets/images/pie-forms-element.png6.06KB0.27KB▼ 95.62%
assets/images/table.png0.41KB0.34KB▼ 18.29%
assets/images/audio-player.png0.84KB0.62KB▼ 26.48%
assets/addons-img/single-page-navigator.png0.78KB1.16KB0.00%