78% multilanguage-add-on-for-visual-composer

Code Review | WP Bakery Multilanguage

WordPress plugin WP Bakery Multilanguage scored78%from 54 tests.

About plugin

  • Plugin page: multilanguage-add...
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 6, 2017
  • Latest release: May 7, 2022
  • Number of updates: 28
  • Update frequency: every 74.3 days
  • Top authors: allurewebsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /23,867 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.07ms] Passed 4 tests

A check of server-side resources used by WP Bakery Multilanguage
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.79 ▼2.50
Dashboard /wp-admin3.31 ▲0.0043.20 ▼2.69
Posts /wp-admin/edit.php3.36 ▲0.0046.85 ▼2.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.33 ▼8.92
Media Library /wp-admin/upload.php3.23 ▲0.0032.88 ▼1.50

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Bakery Multilanguage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.64 ▼0.731.85 ▲0.0444.91 ▲2.05
Dashboard /wp-admin2,206 ▲154.87 ▼0.01111.82 ▲6.3938.94 ▲1.36
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0540.13 ▼0.9235.16 ▼0.31
Add New Post /wp-admin/post-new.php1,535 ▲1623.30 ▲0.20638.92 ▼47.3857.30 ▼0.33
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.11105.99 ▼10.6244.64 ▼3.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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)
Good news, no errors were detected

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
Please fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/multilanguage-add-on-for-visual-composer/public/partials/visual-composer-multilanguage-public-display.php
    • > /wp-content/plugins/multilanguage-add-on-for-visual-composer/trunk/public/vc_templates/vc_row.php
    • > /wp-content/plugins/multilanguage-add-on-for-visual-composer/public/vc_templates/vc_row.php
    • > /wp-content/plugins/multilanguage-add-on-for-visual-composer/trunk/public/partials/visual-composer-multilanguage-public-display.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/multilanguage-add-on-for-visual-composer/trunk/admin/partials/visual-composer-multilanguage-admin-display.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/multilanguage-add-on-for-visual-composer/admin/partials/visual-composer-multilanguage-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: translation, multi-language, multilanguage, translate, visual composer

multilanguage-add-on-for-visual-composer/visual-composer-multilanguage.php 85% from 13 tests

The entry point to "WP Bakery Multilanguage" version 2.1.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("multilanguage-add-on-for-visual-composer.php" instead of "visual-composer-multilanguage.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin638 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13174630497
JavaScript23211798
Markdown113028
CSS25915

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity1.86
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods72
▷ Static methods45.56%
▷ Public methods6286.11%
▷ Protected methods00.00%
▷ Private methods1013.89%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin