83% tabs-responsive

Code Review | Tabs Responsive - With WooCommerce Product Tabs Extension

WordPress plugin Tabs Responsive - With WooCommerce Product Tabs Extension scored83%from 54 tests.

About plugin

  • Plugin page: tabs-responsive
  • Plugin version: 2.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 29, 2016
  • Latest release: Nov 10, 2023
  • Number of updates: 98
  • Update frequency: every 28.7 days
  • Top authors: wpshopmart (100%)

Code review

54 tests

User reviews

489 reviews

Install metrics

20,000+ active /748,841 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Tabs Responsive - With WooCommerce Product Tabs Extension
Please have a look at the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 642.31ms on /wp-admin/edit.php?post_type=tabs_responsive&page=wpsm_tabs_r_recom_page)
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.06 ▼2.72
Dashboard /wp-admin3.47 ▲0.1351.77 ▼3.82
Posts /wp-admin/edit.php3.59 ▲0.2344.68 ▼2.21
Add New Post /wp-admin/post-new.php6.06 ▲0.1781.53 ▼11.66
Media Library /wp-admin/upload.php3.40 ▲0.1735.09 ▲2.82
More Free Plugins /wp-admin/edit.php?post_type=tabs_responsive&page=wpsm_tabs_r_recom_page3.48642.31
Add New Tabs /wp-admin/post-new.php?post_type=tabs_responsive3.8151.96
Free Vs Pro /wp-admin/edit.php?post_type=tabs_responsive&page=wpsm_tabs_r_fvp_page3.3944.65
All Tabs /wp-admin/edit.php?post_type=tabs_responsive3.4437.95

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 166 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
Tabs_R_default_Settings
widget_recent-posts
wpsm_tabs_r_review
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_wpsm_tabs_r_widget_id

Browser metrics Passed 4 tests

Checking browser requirements for Tabs Responsive - With WooCommerce Product Tabs Extension
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲14713.63 ▼0.7211.48 ▲9.8242.25 ▲4.66
Dashboard /wp-admin2,229 ▲485.52 ▼0.1885.40 ▼19.4978.07 ▲33.24
Posts /wp-admin/edit.php2,128 ▲251.97 ▲0.0234.56 ▼6.5233.35 ▼3.37
Add New Post /wp-admin/post-new.php1,566 ▲4023.15 ▼0.22731.21 ▲117.3755.15 ▲2.52
Media Library /wp-admin/upload.php1,425 ▲224.22 ▲0.0398.86 ▲3.0773.99 ▲31.17
More Free Plugins /wp-admin/edit.php?post_type=tabs_responsive&page=wpsm_tabs_r_recom_page1,6962.0628.5933.81
Add New Tabs /wp-admin/post-new.php?post_type=tabs_responsive8,47720.72625.36298.75
Free Vs Pro /wp-admin/edit.php?post_type=tabs_responsive&page=wpsm_tabs_r_fvp_page1,1562.1723.9332.25
All Tabs /wp-admin/edit.php?post_type=tabs_responsive1,0851.9133.9829.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-posts
    • widget_wpsm_tabs_r_widget_id
    • can_compress_scripts
    • theysaidso_admin_options
    • wpsm_tabs_r_review
    • widget_recent-comments
    • Tabs_R_default_Settings
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tabs-responsive/template/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tabs-responsive/tabs-responsive.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'TABS_RES_PLUGINS\\Extension\\WooCommerce\\Build_Api' not found in wp-content/plugins/tabs-responsive/Extension/WooCommerce/WooCommerce.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/tabs-responsive/ink/admin/free.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tabs-responsive/ink/admin/help.php:55
    • > PHP Warning
      include(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/tabs-responsive/ink/admin/free.php on line 48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tabs-responsive/ink/admin/more-free-plugins.php:138
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _x() in wp-content/plugins/tabs-responsive/ink/admin/cpt-reg.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tabs-responsive/ink/admin/more-pro.php:116
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tabs-responsive/ink/admin/add-tabs-js-footer.php:5

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 97% 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
Attributes that need to be fixed:
  • Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

tabs-responsive/tabs-responsive.php Passed 13 tests

The principal PHP file in "Tabs Responsive - With WooCommerce Product Tabs Extension" v. 2.4.3 is loaded by WordPress automatically on each request
131 characters long description:
Tabs Responsive is the most easiest drag & drop Tabs builder for WordPress. You can add unlimited Tabs with unlimited color Scheme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected35,707 lines of code in 91 files:
LanguageFilesBlank linesComment linesLines of code
CSS201,30019711,294
SVG4309,393
JavaScript137251788,518
PHP275262413,960
Sass1319221,158
LESS1319311,149
PO File1103115235

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity18.56
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity3.51
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces4
Interfaces0
Traits4
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods65
▷ Static methods34.62%
▷ Public methods6092.31%
▷ Protected methods46.15%
▷ Private methods11.54%
Functions22
▷ Named functions1986.36%
▷ Anonymous functions313.64%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
45 PNG files occupy 1.40MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/style-noise.png8.87KB5.14KB▼ 42.01%
assets/css/images/ui-icons_6da8d5_256x240.png4.44KB4.17KB▼ 6.02%
assets/css/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
assets/images/csp.png79.41KB83.27KB0.00%
assets/images/icon.png3.22KB0.67KB▼ 79.19%