77% the-plus-visual-composer-addons

Code Review | ThePlus Addons For WPBakery Page Builder (formerly Visual Composer)

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

About plugin

  • Plugin page: the-plus-visual-c...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2018
  • Latest release: Jul 9, 2019
  • Number of updates: 17
  • Update frequency: every 30.2 days
  • Top authors: posimyththemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /18,483 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.05ms] Passed 4 tests

Analyzing server-side resources used by ThePlus Addons For WPBakery Page Builder (formerly Visual Composer)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.65 ▼3.80
Dashboard /wp-admin3.31 ▼0.0445.89 ▼15.04
Posts /wp-admin/edit.php3.36 ▲0.0048.13 ▲0.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.84 ▼1.54
Media Library /wp-admin/upload.php3.23 ▲0.0035.99 ▲1.67

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 281 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

ThePlus Addons For WPBakery Page Builder (formerly Visual Composer): an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.41 ▼0.831.53 ▼0.2239.39 ▼2.63
Dashboard /wp-admin2,218 ▲365.89 ▲1.00110.31 ▼10.0144.11 ▲0.11
Posts /wp-admin/edit.php2,103 ▲142.04 ▼0.0140.05 ▲1.5535.58 ▼1.40
Add New Post /wp-admin/post-new.php1,540 ▲723.44 ▲0.16660.55 ▲16.3556.93 ▲0.08
Media Library /wp-admin/upload.php1,403 ▲154.16 ▼0.0897.23 ▼2.0842.20 ▲0.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/the-plus-visual-composer-addons/post-type/metabox/tests/phpunit/includes/bootstrap.php
  • 43× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: style in wp-content/plugins/the-plus-visual-composer-addons/vc_elements/vc_param/button_css.php on line 17
    • > PHP Notice
      Undefined variable: style in wp-content/plugins/the-plus-visual-composer-addons/vc_elements/vc_param/button_css.php on line 14
    • > PHP Notice
      Undefined variable: style in wp-content/plugins/the-plus-visual-composer-addons/vc_elements/vc_param/button_css.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-plus-visual-composer-addons/vc_elements/map_shortcodes/tp_video_player.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-plus-visual-composer-addons/vc_elements/map_shortcodes/tp_empty_space.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-plus-visual-composer-addons/post-type/cmb2-conditionals.php:217
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-plus-visual-composer-addons/post-type/includes.php:2
    • > PHP Notice
      Undefined variable: style in wp-content/plugins/the-plus-visual-composer-addons/vc_elements/vc_param/button_css.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/the-plus-visual-composer-addons/vc_elements/vc_param/vc_param.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-plus-visual-composer-addons/vc_elements/map_shortcodes/tp_social_share.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: Please take inspiration from this readme.txt

the-plus-visual-composer-addons/theplus_addon.php 92% from 13 tests

This is the main PHP file of "ThePlus Addons For WPBakery Page Builder (formerly Visual Composer)" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("the-plus-visual-composer-addons.php" instead of "theplus_addon.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin36,802 lines of code in 150 files:
LanguageFilesBlank linesComment linesLines of code
PHP401,6891,35920,760
CSS133501938,426
SVG79207774,469
JavaScript163644683,050
Bourne Shell115459
Markdown114038

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
The following items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 106)
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity22.47
▷ Minimum class complexity1.00
▷ Maximum class complexity136.00
Average method complexity5.68
▷ Minimum method complexity1.00
▷ Maximum method complexity106.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes58
▷ Abstract classes00.00%
▷ Concrete classes58100.00%
▷ Final classes00.00%
Methods266
▷ Static methods3513.16%
▷ Public methods24491.73%
▷ Protected methods228.27%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.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
66 PNG files occupy 0.23MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
post-type/metabox/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
vc_elements/images/soical-share/ts-social-style-2.png3.04KB2.03KB▼ 33.29%
vc_elements/images/soical-share/ts-social-style-5.png6.51KB3.11KB▼ 52.24%
vc_elements/images/soical-share/ts-social-style-8.png8.31KB4.23KB▼ 49.15%
vc_elements/images/before_after/vertical.png6.30KB4.11KB▼ 34.74%