88% advanced-wpbakery-addons-formerly-visual-composer

Code Review | Advanced WpBakery Page Builder Addons

WordPress plugin Advanced WpBakery Page Builder Addons scored 88% from 54 tests.

About plugin

  • Plugin page: advanced-wpbakery...
  • Plugin version: 1.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.2
  • WordPress version: 5.9.2
  • First release: Nov 21, 2018
  • Latest release: May 2, 2020
  • Number of updates: 55
  • Update frequency: every 9.6 days
  • Top authors: themescup (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active / 6,108 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼303.48ms] Passed 4 tests

An overview of server-side resources used by Advanced WpBakery Page Builder Addons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0162.48 ▲9.85
Dashboard /wp-admin3.41 ▲0.0031.49 ▼1.58
Posts /wp-admin/edit.php3.65 ▲0.0036.96 ▼4.00
Add New Post /wp-admin/post-new.php6.88 ▼0.0993.89 ▼1,211.57
Media Library /wp-admin/upload.php3.30 ▲0.0025.56 ▲3.22

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 147 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced WpBakery Page Builder Addons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,786 ▲3216.38 ▲0.406.74 ▲0.622.48 ▼0.09
Dashboard /wp-admin2,892 ▲316.44 ▼0.05118.38 ▼17.11159.53 ▼5.00
Posts /wp-admin/edit.php2,694 ▲33.43 ▲0.0163.58 ▲1.48141.53 ▼4.26
Add New Post /wp-admin/post-new.php1,752 ▲9122.36 ▼0.63442.19 ▲7.10158.25 ▼1.87
Media Library /wp-admin/upload.php1,698 ▼05.70 ▼0.01143.99 ▲6.19191.21 ▲7.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/advanced-wpbakery-addons-formerly-visual-composer/advanced-addon-vc.php
  • 33× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/advanced-wpbakery-addons-formerly-visual-composer/modules/awavc-info-section/awavc-info-section.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/advanced-wpbakery-addons-formerly-visual-composer/modules/awavc-blog-slider/awavc-blog-slider.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/advanced-wpbakery-addons-formerly-visual-composer/modules/awavc-countdown/awavc-countdown.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/advanced-wpbakery-addons-formerly-visual-composer/admin/params/slider/slider-params.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/advanced-wpbakery-addons-formerly-visual-composer/modules/awavc-testimonial-slider/awavc-testimonial-slider.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/advanced-wpbakery-addons-formerly-visual-composer/modules/awavc-team-box/awavc-team-box-v1.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/advanced-wpbakery-addons-formerly-visual-composer/modules/awavc-info-box/awavc-info-box-one-v1.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/advanced-wpbakery-addons-formerly-visual-composer/modules/awavc-anim-text/awavc-anim-text.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/advanced-wpbakery-addons-formerly-visual-composer/modules/awavc-blog/awavc-post-content.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/advanced-wpbakery-addons-formerly-visual-composer/modules/awavc-button/awavc-button.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention: The official readme.txt might help

advanced-wpbakery-addons-formerly-visual-composer/advanced-addon-vc.php 92% from 13 tests

This is the main PHP file of "Advanced WpBakery Page Builder Addons" version 1.2.6, 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-wpbakery-addons-formerly-visual-composer.php" instead of "advanced-addon-vc.php")

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin49,234 lines of code in 87 files:
LanguageFilesBlank linesComment linesLines of code
CSS341,73079127,915
PHP362,09444517,755
SVG1002,671
JavaScript16239177893

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
34 PNG files occupy 0.25MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/ooo.png1.91KB1.33KB▼ 30.37%
admin/img/lll.png1.89KB1.30KB▼ 31.26%
modules/awavc-tabs/img/mobile.png28.84KB16.61KB▼ 42.42%
admin/img/kkk.png2.05KB1.32KB▼ 35.31%
modules/awavc-lightbox/css/navbtns.png20.57KB7.41KB▼ 63.98%