68% vc-tabs

Code Review | Tabs – Responsive Tabs with WooCommerce Product Tab Extension

WordPress plugin Tabs – Responsive Tabs with WooCommerce Product Tab Extension scored68%from 54 tests.

About plugin

  • Plugin page: vc-tabs
  • Plugin version: 4.0.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3.0
  • WordPress version: 6.3.1
  • First release: Apr 29, 2017
  • Latest release: Aug 28, 2023
  • Number of updates: 80
  • Update frequency: every 29.0 days
  • Top authors: biplob018 (100%)

Code review

54 tests

User reviews

113 reviews

Install metrics

8,000+ active /200,639 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▼2.06ms] 75% from 4 tests

This is a short check of server-side resources used by Tabs – Responsive Tabs with WooCommerce Product Tab Extension
Please fix the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 1,281.09ms on /wp-admin/admin.php?page=oxi-tabs-ultimate-plugins)
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3638.54 ▼8.33
Dashboard /wp-admin3.68 ▲0.3362.36 ▼1.07
Posts /wp-admin/edit.php3.73 ▲0.3755.99 ▲4.41
Add New Post /wp-admin/post-new.php6.20 ▲0.31100.50 ▼3.23
Media Library /wp-admin/upload.php3.54 ▲0.3142.76 ▲5.41
Settings /wp-admin/admin.php?page=oxi-tabs-ultimate-settings3.6749.36
Create New /wp-admin/admin.php?page=oxi-tabs-ultimate-new4.1651.51
Shortcode /wp-admin/admin.php?page=oxi-tabs-ultimate3.6861.01
Oxilab Plugins /wp-admin/admin.php?page=oxi-tabs-ultimate-plugins3.721,281.09
Support /wp-admin/admin.php?page=oxi-tabs-ultimate-welcome3.6549.68

Server storage [IO: ▲9.35MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 230 new files
Database: 3 new tables, 9 new options
New tables
wp_content_tabs_ultimate_style
wp_oxi_div_import
wp_content_tabs_ultimate_list
New WordPress options
db_upgraded
theysaidso_admin_options
oxi_addons_fixed_header_size
widget_responsive_tabs_with_accordions_widget
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
responsive_tabs_with_accordions_activation_date

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tabs – Responsive Tabs with WooCommerce Product Tab Extension
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲9614.71 ▲0.411.72 ▼0.1441.97 ▼0.73
Dashboard /wp-admin2,263 ▲576.03 ▲1.1298.91 ▼7.8240.11 ▼1.36
Posts /wp-admin/edit.php2,142 ▲392.02 ▲0.0340.30 ▼0.7236.07 ▲0.80
Add New Post /wp-admin/post-new.php1,574 ▲2823.48 ▲0.26672.74 ▲35.0260.53 ▲0.16
Media Library /wp-admin/upload.php1,442 ▲424.27 ▲0.03106.84 ▼4.3448.09 ▲1.78
Settings /wp-admin/admin.php?page=oxi-tabs-ultimate-settings1,2531.9531.5141.63
Create New /wp-admin/admin.php?page=oxi-tabs-ultimate-new5,42450.801,358.30167.60
Shortcode /wp-admin/admin.php?page=oxi-tabs-ultimate1,2752.7873.99105.26
Oxilab Plugins /wp-admin/admin.php?page=oxi-tabs-ultimate-plugins1,1861.9931.0559.58
Support /wp-admin/admin.php?page=oxi-tabs-ultimate-welcome1,5679.18283.66123.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_content_tabs_ultimate_list
    • wp_oxi_div_import
    • wp_content_tabs_ultimate_style
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_responsive_tabs_with_accordions_widget
    • responsive_tabs_with_accordions_activation_date
    • theysaidso_admin_options
    • oxi_addons_fixed_header_size
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 74× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Trait 'OXI_TABS_PLUGINS\\Helper\\CSS_JS_Loader' not found in wp-content/plugins/vc-tabs/Page/Welcome.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'OXI_TABS_PLUGINS\\Render\\Old_Admin' not found in wp-content/plugins/vc-tabs/Render/Old_Admin/Style17.php:12
    • > PHP Fatal error
      Trait 'OXI_TABS_PLUGINS\\Helper\\CSS_JS_Loader' not found in wp-content/plugins/vc-tabs/Render/Admin.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'OXI_TABS_PLUGINS\\Render\\Old_Render' not found in wp-content/plugins/vc-tabs/Render/Old_Views/Style8.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'OXI_TABS_PLUGINS\\Render\\Old_Admin' not found in wp-content/plugins/vc-tabs/Render/Old_Admin/Style18.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'OXI_TABS_PLUGINS\\Render\\Old_Render' not found in wp-content/plugins/vc-tabs/Render/Old_Views/Style1.php:12
    • > PHP Fatal error
      Trait 'OXI_TABS_PLUGINS\\Helper\\CSS_JS_Loader' not found in wp-content/plugins/vc-tabs/Page/Settings.php on line 15
    • > PHP Fatal error
      Trait 'OXI_TABS_PLUGINS\\Helper\\CSS_JS_Loader' not found in wp-content/plugins/vc-tabs/Page/WooExtension.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'OXI_TABS_PLUGINS\\Render\\Old_Admin' not found in wp-content/plugins/vc-tabs/Render/Old_Admin/Style6.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vc-tabs/Modules/Tabs_Widget.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=oxi-tabs-ultimate-plugins
    • > Network (severe)
    https://www.oxilab.org/wp-content/plugins/oxilab-plugins-recommendation/image/image-hover-effects-ultimate.jpg - Failed to load resource: the server responded with a status of 522 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: tab, tabs content, woocommerce custom tabs, responsive tabs, custom tabs...

vc-tabs/index.php 85% from 13 tests

"Tabs – Responsive Tabs with WooCommerce Product Tab Extension" version 4.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("vc-tabs.php" instead of "index.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)

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 plugin75,505 lines of code in 207 files:
LanguageFilesBlank linesComment linesLines of code
PHP1192,1892,04940,772
JavaScript301,02273613,029
CSS361,3737612,796
SVG3308,889
JSON190019

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity23.59
▷ Minimum class complexity1.00
▷ Maximum class complexity355.00
Average method complexity5.45
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces13
Interfaces0
Traits9
Classes107
▷ Abstract classes00.00%
▷ Concrete classes107100.00%
▷ Final classes00.00%
Methods592
▷ Static methods71.18%
▷ Public methods58498.65%
▷ Protected methods50.84%
▷ Private methods30.51%
Functions8
▷ Named functions00.00%
▷ Anonymous functions8100.00%
Constants58
▷ Global constants712.07%
▷ Class constants5187.93%
▷ Public constants51100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/backend/js/img/trans_bg.png0.08KB0.09KB0.00%
assets/backend/css/icon-close-black.png1.08KB0.26KB▼ 75.88%
assets/image/sa-logo.png3.96KB2.19KB▼ 44.65%
assets/backend/css/icon-close-white.png1.07KB0.26KB▼ 75.82%
assets/backend/css/img/trans_bg.png0.08KB0.09KB0.00%