89% wpglobus-for-wpbakery-visual-composer

Code Review | WPGlobus for WPBakery Visual Composer

WordPress plugin WPGlobus for WPBakery Visual Composer scored 89% from 54 tests.

About plugin

  • Plugin page: wpglobus-for-wpba...
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1
  • WordPress version: 6.3.1
  • First release: Jul 25, 2015
  • Latest release: Nov 18, 2022
  • Number of updates: 57
  • Update frequency: every 46.9 days
  • Top authors: alexgff (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

4,000+ active / 122,949 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
Install script ran successfully

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

Server-side resources used by WPGlobus for WPBakery Visual Composer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.32 ▼4.50
Dashboard /wp-admin3.32 ▲0.0246.58 ▼0.40
Posts /wp-admin/edit.php3.37 ▲0.0150.30 ▲0.93
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.70 ▼21.46
Media Library /wp-admin/upload.php3.24 ▲0.0135.95 ▲4.26

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WPGlobus for WPBakery Visual Composer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.371.78 ▲0.0739.43 ▼0.45
Dashboard /wp-admin2,206 ▲174.82 ▼0.1498.97 ▼9.8336.75 ▼4.61
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0538.59 ▼4.1734.03 ▼2.15
Add New Post /wp-admin/post-new.php1,535 ▲223.38 ▲0.27654.46 ▲0.9354.86 ▼9.51
Media Library /wp-admin/upload.php1,379 ▼94.16 ▼0.0396.08 ▼6.0145.32 ▼1.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: globalization, translation, i18n, localization, multilingual...

wpglobus-for-wpbakery-visual-composer/wpglobus_js_composer.php 77% from 13 tests

The main PHP file in "WPGlobus for WPBakery Visual Composer" ver. 2.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wpglobus-for-wpbakery-visual-composer.php" instead of "wpglobus_js_composer.php")
  • Domain Path: Please prefix the domain path with a forward slash character ("/")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin748 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript9113100472
PHP25660135
Markdown136096
JSON20045

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods266.67%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin