72% woo-tabbed-category-product-listing

Code Review | Tabbed Category Product Listing for Woocommerce

WordPress plugin Tabbed Category Product Listing for Woocommerce scored72%from 54 tests.

About plugin

  • Plugin page: woo-tabbed-catego...
  • Plugin version: 2.5.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jul 14, 2016
  • Latest release: Nov 24, 2023
  • Number of updates: 74
  • Update frequency: every 36.3 days
  • Top authors: quantumcloud (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

2,000+ active /78,113 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Tabbed Category Product Listing for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.09 ▼11.23
Dashboard /wp-admin3.31 ▲0.0146.89 ▼1.23
Posts /wp-admin/edit.php3.36 ▲0.0147.43 ▼3.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.78 ▼0.61
Media Library /wp-admin/upload.php3.23 ▲0.0034.99 ▼0.17
Support /wp-admin/admin.php?page=qcld_woo_tabbed_supports3.0123.50
Woo Tabbed /wp-admin/admin.php?page=woo-tab3.0123.94

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 104 new files
Database: no new tables, 16 new options
New WordPress options
column_number
qc_woo_tabbed_show_empty_category
widget_theysaidso_widget
theysaidso_admin_options
qcld_orderby_product
max_char_per_cat
product_number
can_compress_scripts
order_product_by
db_upgraded
...

Browser metrics Passed 4 tests

An overview of browser requirements for Tabbed Category Product Listing for Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲5514.12 ▼0.211.80 ▼0.3728.52 ▼17.00
Dashboard /wp-admin2,195 ▲185.63 ▼0.0695.74 ▼0.4242.55 ▲0.05
Posts /wp-admin/edit.php2,103 ▼02.02 ▲0.0839.79 ▼1.1936.51 ▲0.14
Add New Post /wp-admin/post-new.php1,534 ▲825.20 ▲2.06598.46 ▼13.3764.49 ▲6.66
Media Library /wp-admin/upload.php1,397 ▼34.09 ▼0.0996.45 ▼0.4944.47 ▲2.55
Support /wp-admin/admin.php?page=qcld_woo_tabbed_supports280.410.123.82
Woo Tabbed /wp-admin/admin.php?page=woo-tab280.410.133.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 16 options in the database
    • widget_theysaidso_widget
    • qc_woo_tabbed_shortcode_preview
    • order_product_by
    • qc_woo_tabbed_show_empty_category_msg
    • column_number
    • db_upgraded
    • qc_woo_tabbed_show_empty_category
    • can_compress_scripts
    • qcld_use_category_tab
    • widget_recent-comments
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woo-tabbed-category-product-listing/woo-tabbed-dynamic-discount-price.php
    • > /wp-content/plugins/woo-tabbed-category-product-listing/class-woo-tabbed-category-product-listing.php
    • > /wp-content/plugins/woo-tabbed-category-product-listing/woo-tabbed-min-max-qty.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/woo-tabbed-category-product-listing/qc-support-promo-page/class-qc-support-promo-page.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woo-tabbed-category-product-listing/class-qc-free-plugin-upgrade-notice.php:188

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=qcld_woo_tabbed_supports
    • > Network (severe)
    wp-admin/admin.php?page=qcld_woo_tabbed_supports - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=woo-tab
    • > Network (severe)
    wp-admin/admin.php?page=woo-tab - Failed to load resource: the server responded with a status of 403 (Forbidden)

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
5 plugin tags: woocommerce, woocommerce product table, product table, woocommerce category tabs, woocommerce category list

woo-tabbed-category-product-listing/woo-tabbed-category-product-listing.php 85% from 13 tests

The principal PHP file in "Tabbed Category Product Listing for Woocommerce" v. 2.5.7 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "4.6")

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
No dangerous file extensions were detected26,865 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
CSS72668413,163
JavaScript102,4556179,324
SVG3002,689
PHP75692231,689

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity19.75
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.59
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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.48MB with 0.86MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
qc-support-promo-page/images/slider-hero-icon-256x256.png71.55KB20.25KB▼ 71.70%
assets/images/wholesale-woocommerce-plugin.png16.67KB6.87KB▼ 58.81%
qc-support-promo-page/images/icon-pack/service-06.png2.38KB1.13KB▼ 52.68%
qc-support-promo-page/images/iList-icon-256x256.png12.99KB6.05KB▼ 53.44%
qc-support-promo-page/images/directory-addons.png27.17KB12.07KB▼ 55.57%