77% all-in-one-visual-composer-addons

Code Review | All in One Addons For WPBakery Page Builder (formerly Visual Composer)

WordPress plugin All in One Addons For WPBakery Page Builder (formerly Visual Composer) scored77%from 54 tests.

About plugin

  • Plugin page: all-in-one-visual...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Mar 29, 2019
  • Latest release: Jun 4, 2022
  • Number of updates: 17
  • Update frequency: every 68.7 days
  • Top authors: Labibahmed42 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /5,364 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼9.09ms] Passed 4 tests

This is a short check of server-side resources used by All in One Addons For WPBakery Page Builder (formerly Visual Composer)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1439.55 ▼2.25
Dashboard /wp-admin3.45 ▲0.1447.14 ▼6.09
Posts /wp-admin/edit.php3.56 ▲0.2048.56 ▼8.40
Add New Post /wp-admin/post-new.php6.03 ▲0.1492.06 ▼19.60
Media Library /wp-admin/upload.php3.37 ▲0.1439.92 ▲2.52

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 276 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

All in One Addons For WPBakery Page Builder (formerly Visual Composer): an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲10413.24 ▼1.131.98 ▼0.8840.78 ▼12.33
Dashboard /wp-admin2,223 ▲354.85 ▼0.02109.44 ▼15.1042.58 ▼4.08
Posts /wp-admin/edit.php2,105 ▲92.00 ▼0.0440.66 ▼2.4038.09 ▼2.40
Add New Post /wp-admin/post-new.php1,527 ▲1317.77 ▲0.15609.15 ▼84.4552.88 ▼5.43
Media Library /wp-admin/upload.php1,402 ▲174.27 ▲0.03102.31 ▼15.3145.02 ▼4.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 15× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/pricing-templates/style1.php
    • > /wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/team-templates/style7.php
    • > /wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/team-templates/style3.php
    • > /wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/pricing-templates/style2.php
    • > /wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/team-templates/style2.php
    • > /wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/team-templates/style6.php
    • > /wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/pricing-templates/style4.php
    • > /wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/team-templates/style4.php
    • > /wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/team-templates/style8.php
    • > /wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/team-templates/style10.php
  • 192× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: team_member_border_style in wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/team-templates/style7.php on line 4
    • > PHP Notice
      Undefined variable: table_price in wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/pricing-templates/style2.php on line 11
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/tabs-templates/tab-design-7.php on line 4
    • > PHP Notice
      Undefined variable: active in wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/pricing-templates/style3.php on line 2
    • > PHP Notice
      Undefined variable: team_custom_class in wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/team-templates/style4.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/tabs-templates/tab-design-5-bottom.php:3
    • > PHP Notice
      Undefined variable: table_price in wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/pricing-templates/style5.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/tabs-templates/tab-design-8.php:12
    • > PHP Warning
      array_combine() expects parameter 1 to be array, null given in wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/tabs-templates/tab-design-1-left.php on line 4
    • > PHP Notice
      Undefined variable: team_member_designation in wp-content/plugins/all-in-one-visual-composer-addons/includes/ult-shortcodes/team-templates/style7.php on line 27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

all-in-one-visual-composer-addons/index.php 85% from 13 tests

The primary PHP file in "All in One Addons For WPBakery Page Builder (formerly Visual Composer)" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("all-in-one-visual-composer-addons.php" instead of "index.php")
  • 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 Passed 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
Success! There were no dangerous files found in this plugin72,193 lines of code in 222 files:
LanguageFilesBlank linesComment linesLines of code

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.30
Average class complexity3.20
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods517.24%
▷ Protected methods2482.76%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
33 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/order-list-icon.png2.32KB1.05KB▼ 54.87%
icons/youtube-icon.png2.13KB0.82KB▼ 61.25%
icons/blockquote-icon.png2.79KB1.49KB▼ 46.61%
icons/content-card-icon.png3.44KB1.80KB▼ 47.69%
icons/carousel-child-copy.png5.97KB2.69KB▼ 54.94%