72% addons-for-visual-composer

Code Review | Livemesh Addons for WPBakery Page Builder

WordPress plugin Livemesh Addons for WPBakery Page Builder scored 72% from 54 tests.

About plugin

  • Plugin page: addons-for-visual...
  • Plugin version: 2.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 5.9.2
  • First release: Jan 30, 2016
  • Latest release: Mar 7, 2022
  • Number of updates: 81
  • Update frequency: every 27.5 days
  • Top authors: livemesh (100%)

Code review

54 tests

User reviews

37 reviews

Install metrics

20,000+ active / 661,535 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲4.95MB] [CPU: ▼268.64ms] Passed 4 tests

This is a short check of server-side resources used by Livemesh Addons for WPBakery Page Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /8.64 ▲5.1283.03 ▲28.74
Dashboard /wp-admin8.66 ▲5.2561.17 ▲26.88
Posts /wp-admin/edit.php8.66 ▲5.0161.85 ▲23.94
Add New Post /wp-admin/post-new.php11.39 ▲4.42120.63 ▼1,145.79
Media Library /wp-admin/upload.php8.66 ▲5.3647.92 ▲20.41
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.6652.05

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 420 new files
Database: no new tables, 4 new options
New WordPress options
fs_gdpr
fs_debug_mode
fs_accounts
fs_active_plugins

Browser metrics Passed 4 tests

Livemesh Addons for WPBakery Page Builder: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,071 ▲31717.95 ▲1.9614.82 ▲8.212.60 ▲0.18
Dashboard /wp-admin2,988 ▲1046.99 ▲0.42136.23 ▼7.44186.70 ▲24.69
Posts /wp-admin/edit.php2,757 ▲633.18 ▼0.2573.93 ▲10.61158.60 ▲16.98
Add New Post /wp-admin/post-new.php1,693 ▲2523.11 ▲3.44404.73 ▼1.27186.80 ▲29.08
Media Library /wp-admin/upload.php1,760 ▲625.93 ▲0.18129.65 ▼24.03224.03 ▲33.06
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,4743.2162.90111.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/addons-for-visual-composer/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 4 options in the database
    • fs_gdpr
    • fs_debug_mode
    • fs_active_plugins
    • fs_accounts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 28× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: instagram_url in wp-content/plugins/addons-for-visual-composer/includes/addons/team/social-profile.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-visual-composer/includes/addons/spacer/class-lvca-spacer.php:17
    • > PHP Notice
      Undefined variable: dribbble_url in wp-content/plugins/addons-for-visual-composer/includes/addons/team/social-profile.php on line 28
    • > PHP Notice
      Undefined variable: linkedin_url in wp-content/plugins/addons-for-visual-composer/includes/addons/team/social-profile.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/addons-for-visual-composer/includes/addons/team/social-profile.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-visual-composer/includes/addons/pricing-table/class-lvca-pricing-table.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-visual-composer/includes/params/datetimepicker/class-lvca-datepicker-param.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-visual-composer/includes/addons/services/class-lvca-services.php:16
    • > PHP Notice
      Undefined variable: facebook_url in wp-content/plugins/addons-for-visual-composer/includes/addons/team/social-profile.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-visual-composer/includes/addons/posts-carousel/class-lvca-posts-carousel.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

addons-for-visual-composer/addons-for-visual-composer.php 69% from 13 tests

The entry point to "Livemesh Addons for WPBakery Page Builder" version 2.9.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected63,747 lines of code in 264 files:
LanguageFilesBlank linesComment linesLines of code
PHP1438,91316,59837,387
JavaScript552,3012,3398,987
CSS389501748,204
Sass2365225,854
PO File21,6413,0483,247
SVG10040
YAML22028

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity43.84
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.42
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes97
▷ Abstract classes33.09%
▷ Concrete classes9496.91%
▷ Final classes22.13%
Methods1,278
▷ Static methods17413.62%
▷ Public methods92872.61%
▷ Protected methods231.80%
▷ Private methods32725.59%
Functions120
▷ Named functions120100.00%
▷ Anonymous functions00.00%
Constants135
▷ Global constants11081.48%
▷ Class constants2518.52%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
85 PNG files occupy 0.20MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/admin/testimonial-add.png2.01KB0.61KB▼ 69.79%
admin/assets/images/admin/testimonials-slider.png1.75KB0.55KB▼ 68.34%
assets/img/admin/stats-bar.png1.24KB0.29KB▼ 76.99%
admin/assets/images/admin/odometer-add.png2.11KB0.61KB▼ 71.24%
admin/assets/images/admin/piechart-add.png2.13KB0.71KB▼ 66.59%