83% ovic-vc-addon

Code Review | Ovic Responsive WPBakery

WordPress plugin Ovic Responsive WPBakery scored 83% from 54 tests.

About plugin

  • Plugin page: ovic-vc-addon
  • Plugin version: 1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Jun 7, 2019
  • Latest release: Apr 6, 2023
  • Number of updates: 31
  • Update frequency: every 45.1 days
  • Top authors: hoangkhanh92 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 28,904 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.17MB] [CPU: ▲0.56ms] Passed 4 tests

An overview of server-side resources used by Ovic Responsive WPBakery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1737.98 ▼2.44
Dashboard /wp-admin3.47 ▲0.1746.21 ▲1.64
Posts /wp-admin/edit.php3.58 ▲0.2348.82 ▲3.44
Add New Post /wp-admin/post-new.php6.05 ▲0.1795.13 ▲0.83
Media Library /wp-admin/upload.php3.39 ▲0.1736.70 ▲2.20
Ovic WPBakery /wp-admin/admin.php?page=ovic-vc-addon3.3632.70
Ovic Plugins /wp-admin/admin.php?page=ovic-plugins3.3629.32

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Ovic Responsive WPBakery
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.22 ▼1.151.53 ▼0.2540.11 ▼2.90
Dashboard /wp-admin2,234 ▲465.89 ▲0.02107.27 ▼11.5065.92 ▲23.64
Posts /wp-admin/edit.php2,123 ▲312.01 ▼0.0339.66 ▲3.2234.38 ▼0.89
Add New Post /wp-admin/post-new.php1,696 ▲16321.97 ▲0.72617.79 ▼91.7144.45 ▼13.77
Media Library /wp-admin/upload.php1,419 ▲344.22 ▲0.0198.28 ▼15.5180.84 ▲36.06
Ovic WPBakery /wp-admin/admin.php?page=ovic-vc-addon9621.8526.6030.52
Ovic Plugins /wp-admin/admin.php?page=ovic-plugins8282.1822.3326.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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ovic-vc-addon/includes/shortcode.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ovic-vc-addon/includes/params.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ovic-vc-addon/includes/visual-composer.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2 in ovic-vc-addon/assets to your readme.txt
You can look at the official readme.txt

ovic-vc-addon/addon.php 85% from 13 tests

The main PHP file in "Ovic Responsive WPBakery" ver. 1.2.7 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ovic-vc-addon.php" instead of "addon.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin3,940 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP91773592,990
CSS410640624
JavaScript5609326

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity50.12
▷ Minimum class complexity11.00
▷ Maximum class complexity119.00
Average method complexity4.93
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods100
▷ Static methods2323.00%
▷ Public methods9999.00%
▷ Protected methods00.00%
▷ Private methods11.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/backend/css/chosen-sprite@2x.png0.72KB0.83KB0.00%
assets/icon-menu.png1.11KB0.37KB▼ 66.43%
assets/backend/images/icon-menu.png1.11KB0.37KB▼ 66.43%
assets/backend/css/chosen-sprite.png0.53KB0.88KB0.00%