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

Code Review | Advanced WpBakery Page Builder Addons

WordPress plugin Advanced WpBakery Page Builder Addons scored78%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: 6.3.1
  • 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

400+ active /7,055 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by Advanced WpBakery Page Builder Addons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.23 ▼3.45
Dashboard /wp-admin3.31 ▼0.0446.40 ▼11.62
Posts /wp-admin/edit.php3.36 ▲0.0045.29 ▲3.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.68 ▼18.81
Media Library /wp-admin/upload.php3.23 ▲0.0036.49 ▲0.85

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 147 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced WpBakery Page Builder Addons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.34 ▼0.181.58 ▼0.2736.98 ▼6.44
Dashboard /wp-admin2,195 ▲205.54 ▼0.0982.34 ▼16.6640.73 ▲4.29
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0535.63 ▼3.5734.73 ▼3.67
Add New Post /wp-admin/post-new.php1,525 ▼322.90 ▼0.24628.92 ▲12.4751.48 ▼4.37
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.0492.61 ▼2.6142.39 ▲2.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/advanced-wpbakery-addons-formerly-visual-composer/advanced-addon-vc.php
  • 33× PHP files trigger errors when accessed directly with GET requests (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-flip-box-2/awavc-flip-box-advanced.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-profile-card/awavc-profile-card.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-service-box/awavc-service-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-pricing-list/awavc-pricing-list.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-anim-img/awavc-anim-img.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-countdown/awavc-countdown.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-lightbox/awavc-lightbox.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-woo-products-slider/awavc-woo-products-slider.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

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

The principal PHP file in "Advanced WpBakery Page Builder Addons" v. 1.2.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected49,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

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/lll.png1.89KB1.30KB▼ 31.26%
admin/img/ccc.png2.18KB1.41KB▼ 35.32%
admin/img/bbb.png2.51KB1.56KB▼ 37.66%
admin/img/count.png2.76KB1.65KB▼ 40.25%
admin/img/kkk.png2.05KB1.32KB▼ 35.31%