72% addons-for-visual-composer

Code Review | Livemesh Addons for WPBakery Page Builder

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

About plugin

  • Plugin page: addons-for-visual...
  • Plugin version: 3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Jan 30, 2016
  • Latest release: Oct 24, 2023
  • Number of updates: 104
  • Update frequency: every 27.2 days
  • Top authors: livemesh (100%)

Code review

54 tests

User reviews

37 reviews

Install metrics

20,000+ active /779,193 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲5.23MB] [CPU: ▲26.46ms] 75% from 4 tests

An overview of server-side resources used by Livemesh Addons for WPBakery Page Builder
Please fix the following
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.23MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.89 ▲5.4272.47 ▲32.77
Dashboard /wp-admin8.91 ▲5.6075.24 ▲28.77
Posts /wp-admin/edit.php8.91 ▲5.5572.32 ▲25.71
Add New Post /wp-admin/post-new.php10.22 ▲4.33110.58 ▲18.58
Media Library /wp-admin/upload.php8.91 ▲5.6773.05 ▲38.96
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius8.9158.80

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 448 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
fs_accounts
widget_recent-posts
widget_theysaidso_widget
fs_debug_mode
fs_active_plugins
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Livemesh Addons for WPBakery Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,021 ▲26014.08 ▼0.2712.11 ▲10.3731.41 ▼12.78
Dashboard /wp-admin2,230 ▲535.88 ▲0.2286.28 ▲0.0481.29 ▲39.65
Posts /wp-admin/edit.php2,152 ▲522.30 ▲0.2743.79 ▲4.1636.38 ▲1.73
Add New Post /wp-admin/post-new.php1,565 ▲3418.14 ▼4.85709.51 ▼13.4954.76 ▼11.70
Media Library /wp-admin/upload.php1,444 ▲474.43 ▲0.2398.68 ▼12.2566.09 ▲15.35
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,1121.9536.9029.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/addons-for-visual-composer/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-comments
    • fs_active_plugins
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • fs_accounts
    • fs_debug_mode
    • theysaidso_admin_options
    • db_upgraded

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
Almost there! Just fix the following items
  • 37× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > 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 Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-visual-composer/includes/addons/piecharts/class-lvca-piecharts.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_comments_number() in wp-content/plugins/addons-for-visual-composer/templates/post-meta/comments-link.php:5
    • > 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
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-visual-composer/includes/params/datetimepicker/class-lvca-datetimepicker-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 Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-visual-composer/includes/addons/testimonials/class-lvca-testimonials.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-for-visual-composer/includes/addons/heading/class-lvca-heading.php:17
    • > 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 get_comments_number() in wp-content/plugins/addons-for-visual-composer/templates/post-meta/comments-number.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% 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
Attributes that require attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

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

"Livemesh Addons for WPBakery Page Builder" version 3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected67,522 lines of code in 288 files:
LanguageFilesBlank linesComment linesLines of code
PHP1649,72217,84440,851
JavaScript552,4432,3569,180
CSS409571748,252
Sass2366425,906
PO File21,6413,0483,247
SVG10042
YAML22028
XML13016

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity46.28
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.39
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes101
▷ Abstract classes32.97%
▷ Concrete classes9897.03%
▷ Final classes22.04%
Methods1,407
▷ Static methods19914.14%
▷ Public methods1,00771.57%
▷ Protected methods251.78%
▷ Private methods37526.65%
Functions127
▷ Named functions127100.00%
▷ Anonymous functions00.00%
Constants158
▷ Global constants11170.25%
▷ Class constants4729.75%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
85 PNG files occupy 0.20MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/admin/generic-carousel.png1.88KB0.55KB▼ 70.61%
admin/assets/images/admin/sliders.png0.56KB0.29KB▼ 47.92%
assets/img/admin/piecharts.png2.26KB0.72KB▼ 67.99%
includes/params/datetimepicker/css/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
admin/assets/images/admin/gallery.png2.60KB1.58KB▼ 39.19%