Search by SKU for Woocommerce

Extend the search functionality of woocommerce to include searching of sku

v0.8.0mattsgarageUpdated Added 10k+ installs92% rating
69
Score
13
Errors
10
Warnings
+0
Change

Category Scores

Security52
Repo86
Performance100
Maintainability88

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

23 findings

Maintainability

14

5 issue groups

Security

6

3 issue groups

Repo Compliance

3

3 issue groups

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo CachingDirect database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

ERRORSecurityDatabase parameter is not escapedUnescaped parameter $regularProductsSql used in $wpdb->get_results()\n$regularProductsSql assigned unsafely at line 111.2
Category
Security
Occurrences
2
Severity
error

Sample message

Unescaped parameter $regularProductsSql used in $wpdb->get_results()\n$regularProductsSql assigned unsafely at line 111.

ERRORSecuritySQL query is not preparedUse placeholders and $wpdb->prepare(); found $regularProductsSql2
Category
Security
Occurrences
2
Severity
error

Sample message

Use placeholders and $wpdb->prepare(); found $regularProductsSql

ERRORSecurityLike Wildcards In Query With PlaceholderSQL wildcards for a LIKE query should be passed in through a replacement parameter and the variable part of the replacement should be escaped using "esc_like()". Found: LIKE '%%%s%%'.2
Category
Security
Occurrences
2
Severity
error

Sample message

SQL wildcards for a LIKE query should be passed in through a replacement parameter and the variable part of the replacement should be escaped using "esc_like()". Found: LIKE '%%%s%%'.

WARNINGMaintainabilitymismatched plugin namePlugin name "Search by SKU for Woocommerce" is different from the name declared in plugin header "Search By SKU - for Woocommerce".1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Plugin name "Search by SKU for Woocommerce" is different from the name declared in plugin header "Search By SKU - for Woocommerce".

ERRORRepo Complianceoutdated tested upto headerTested up to: 5.7 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 5.7 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.

ERRORRepo Complianceplugin header no licenseMissing "License" in Plugin Header. Please update your Plugin Header with a valid GPLv2 (or later) compatible license.1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Missing "License" in Plugin Header. Please update your Plugin Header with a valid GPLv2 (or later) compatible license.

WARNINGRepo Compliancereadme parser warnings too many tagsOne or more tags were ignored. Please limit your plugin to 5 tags.1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

One or more tags were ignored. Please limit your plugin to 5 tags.

Show 1 more
ERRORMaintainabilitystable tag mismatch1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Mismatched Stable Tag: 0.8.1 != 0.8.0. Your Stable Tag is meant to be the stable version of your plugin and it needs to be exactly the same with the Version in your main plugin file's header. Any mismatch can prevent users from downloading the correct plugin files from WordPress.org.

External Connections

Not analyzed yet.

Score History

First score snapshot

v0.8.0

69

Latest

Findings
23
Errors
13
Warnings
10
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

29 nodes

Related Plugins