Related Categories for WooCommerce Security & Risk Analysis

wordpress.org/plugins/related-categories-for-woocommerce

Add "Related categories" section to single product and/or shop pages in WooCommerce.

80 active installs v2.0.1 PHP + WP 4.7+ Updated Sep 2, 2025
categoriesrelatedrelated-categorieswoo-commercewoocommerce
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Related Categories for WooCommerce Safe to Use in 2026?

Generally Safe

Score 100/100

Related Categories for WooCommerce has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 8mo ago
Risk Assessment

The plugin "related-categories-for-woocommerce" v2.0.1 exhibits a generally good security posture based on the provided static analysis. The absence of any known vulnerabilities in its history is a strong positive indicator. Furthermore, the code analysis reveals no dangerous functions, file operations, external HTTP requests, or critical taint flows, suggesting a careful development approach in these areas. The limited attack surface, with only one shortcode as an entry point, and no unprotected AJAX handlers or REST API routes, also contributes to its favorable security profile.

However, there are notable areas of concern. The most significant is the use of a SQL query that is not prepared, representing a potential for SQL injection vulnerabilities. While the static analysis did not identify any specific taint flows leading to this query, the lack of prepared statements is a critical security practice that has been overlooked. Additionally, the plugin has a moderate rate of unescaped output (44%), which could lead to cross-site scripting (XSS) vulnerabilities if user-supplied data is directly reflected in the output without proper sanitization. The lack of any nonce or capability checks, while potentially acceptable given the limited entry points, does leave room for further hardening against unauthorized actions or privilege escalation if the attack surface were to expand in future versions.

In conclusion, the plugin demonstrates a strong foundation with minimal known historical vulnerabilities and a controlled attack surface. The primary weaknesses lie in the unescaped output and the unqualified SQL query. Addressing these specific issues would significantly enhance the plugin's security. The absence of a vulnerability history is encouraging, but the identified code-level risks necessitate attention.

Key Concerns

  • Raw SQL query without prepared statements
  • Significant portion of output not properly escaped
  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
None known

Related Categories for WooCommerce Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Version History

Related Categories for WooCommerce Release Timeline

v2.0.1Current
v2.0.0
v1.9.9
v1.9.8
v1.9.7
v1.9.6
v1.9.5
v1.9.4
v1.9.3
v1.9.2
v1.9.1
v1.9.0
v1.8.1
v1.8.0
v1.7.0
v1.6.0
Code Analysis
Analyzed Mar 16, 2026

Related Categories for WooCommerce Code Analysis

Dangerous Functions
0
Raw SQL Queries
1
0 prepared
Unescaped Output
4
5 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

SQL Query Safety

0% prepared1 total queries

Output Escaping

56% escaped9 total outputs
Attack Surface

Related Categories for WooCommerce Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[alg_wc_related_categories_translate] includes\class-alg-wc-related-categories-frontend.php:104
WordPress Hooks 19
actioninitincludes\class-alg-wc-related-categories-frontend.php:43
filteralg_wc_related_categories_loopincludes\class-alg-wc-related-categories-frontend.php:97
filterwoocommerce_related_productsincludes\class-alg-wc-related-categories-frontend.php:101
filterwoocommerce_placeholder_img_srcincludes\class-alg-wc-related-categories-frontend.php:259
filtersubcategory_archive_thumbnail_sizeincludes\class-alg-wc-related-categories-frontend.php:327
filterwoocommerce_placeholder_img_srcincludes\class-alg-wc-related-categories-frontend.php:330
actionwoocommerce_before_subcategory_titleincludes\class-alg-wc-related-categories-frontend.php:346
actionalg_wc_related_categories_after_save_settingsincludes\class-alg-wc-related-categories-transients.php:24
actionwidgets_initincludes\class-alg-wc-related-categories-widget.php:554
actioninitincludes\class-alg-wc-related-categories.php:78
actionbefore_woocommerce_initincludes\class-alg-wc-related-categories.php:81
actioninitincludes\class-alg-wc-related-categories.php:159
actioninitincludes\class-alg-wc-related-categories.php:162
filterwoocommerce_get_settings_pagesincludes\class-alg-wc-related-categories.php:165
actionadmin_initincludes\class-alg-wc-related-categories.php:169
filterwoocommerce_get_sections_alg_wc_related_categoriesincludes\settings\class-alg-wc-related-categories-settings-section.php:40
filterwoocommerce_admin_settings_sanitize_optionincludes\settings\class-alg-wc-related-categories-settings.php:29
actionadmin_noticesincludes\settings\class-alg-wc-related-categories-settings.php:106
actionplugins_loadedrelated-categories-for-woocommerce.php:58
Maintenance & Trust

Related Categories for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedSep 2, 2025
PHP min version
Downloads6K

Community Trust

Rating100/100
Number of ratings3
Active installs80
Developer Profile

Related Categories for WooCommerce Developer Profile

WPFactory

64 plugins · 137K total installs

77
trust score
Avg Security Score
97/100
Avg Patch Time
94 days
View full developer profile
Detection Fingerprints

How We Detect Related Categories for WooCommerce

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/related-categories-for-woocommerce/assets/css/alg-wc-related-categories.css/wp-content/plugins/related-categories-for-woocommerce/assets/js/alg-wc-related-categories.js
Script Paths
/wp-content/plugins/related-categories-for-woocommerce/assets/js/alg-wc-related-categories.js
Version Parameters
related-categories-for-woocommerce/assets/css/alg-wc-related-categories.css?ver=related-categories-for-woocommerce/assets/js/alg-wc-related-categories.js?ver=

HTML / DOM Fingerprints

CSS Classes
alg-wc-related-categoriesalg-wc-related-categories-singlealg-wc-related-categories-loop
Data Attributes
data-alg-wc-related-categories
JS Globals
alg_wc_related_categories_params
Shortcode Output
[alg_wc_related_categories_single][alg_wc_related_categories_loop][alg_wc_related_categories_translate]
FAQ

Frequently Asked Questions about Related Categories for WooCommerce