83% void-visual-whmcs-element

Code Review | WPBakery Visual Composer WHMCS Elements

WordPress plugin WPBakery Visual Composer WHMCS Elements scored83%from 54 tests.

About plugin

  • Plugin page: void-visual-whmcs...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 6.3.1
  • First release: Jul 18, 2019
  • Latest release: Sep 8, 2021
  • Number of updates: 19
  • Update frequency: every 41.4 days
  • Top authors: voidcoders (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /35,612 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.14MB] [CPU: ▼8.75ms] Passed 4 tests

This is a short check of server-side resources used by WPBakery Visual Composer WHMCS Elements
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1643.80 ▼1.63
Dashboard /wp-admin3.46 ▲0.1149.30 ▼18.26
Posts /wp-admin/edit.php3.57 ▲0.2151.05 ▲0.13
Add New Post /wp-admin/post-new.php6.04 ▲0.1592.88 ▼15.22
Media Library /wp-admin/upload.php3.38 ▲0.1540.34 ▲0.83

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
void_wbwhmcse_elementor_activation_time
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WPBakery Visual Composer WHMCS Elements
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.72 ▲0.111.86 ▲0.0242.41 ▲0.24
Dashboard /wp-admin2,204 ▲275.59 ▼0.0190.39 ▼3.5042.74 ▲2.23
Posts /wp-admin/edit.php2,113 ▲131.98 ▼0.0539.75 ▲2.5538.16 ▲3.49
Add New Post /wp-admin/post-new.php1,538 ▲1021.01 ▼1.93649.55 ▼38.3555.59 ▲1.53
Media Library /wp-admin/upload.php1,410 ▲104.22 ▲0.01106.10 ▼10.2446.71 ▼1.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • void_wbwhmcse_elementor_activation_time
    • widget_theysaidso_widget

Smoke tests 75% 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 50% from 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/void-visual-whmcs-element/helper/helper.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: A description for screenshot #6 is missing in void-visual-whmcs-element/assets to your readme.txt
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

void-visual-whmcs-element/void-visual-whmcs-elements.php 77% from 13 tests

The entry point to "WPBakery Visual Composer WHMCS Elements" version 1.0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("void-visual-whmcs-element.php" instead of "void-visual-whmcs-elements.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,615 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6141126876
CSS28215704
JavaScript110535

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.67
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png6.97KB2.45KB▼ 64.92%
assets/icon/search.png0.56KB0.41KB▼ 27.45%