Attribute Stock for WooCommerce – Shared Stock & Variable Quantities (Lite Version)

Set up complex stock configurations with ease. Shared stock, variable quantities, the possibilities are endless.

v2.2.10MewzUpdated Added 2k+ installs92% rating
29
Score
481
Errors
313
Warnings
+0
Change

Category Scores

Security0
Repo100
Performance91
Maintainability25

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

794 findings

I18n

325

3 issue groups

Security

236

11 issue groups

Maintainability

223

11 issue groups

ERRORI18nText Domain MismatchMismatched text domain. Expected 'attribute-stock-for-woocommerce' but got 'woocommerce'.256
Category
I18n
Occurrences
256
Severity
error

Sample message

Mismatched text domain. Expected 'attribute-stock-for-woocommerce' but got 'woocommerce'.

ERRORMaintainabilityEcho FoundShort PHP opening tag used with echo; expected "<?php echo ! ..." but found "<?= ! ..."113
Category
Maintainability
Occurrences
113
Severity
error

Sample message

Short PHP opening tag used with echo; expected "<?php echo ! ..." but found "<?= ! ..."

WARNINGSecurityRecommendedProcessing form data without nonce verification.68
Category
Security
Occurrences
68
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityNon Prefixed Variable FoundGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$active&quot;.54
Category
Maintainability
Occurrences
54
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$active&quot;.

ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$class'.51
Category
Security
Occurrences
51
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$class'.

ERRORI18nMissing Translators CommentA function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.35
Category
I18n
Occurrences
35
Severity
error

Sample message

A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.

WARNINGI18nText Domain MismatchMismatched text domain. Expected &#039;attribute-stock-for-woocommerce&#039; but got &#039;default&#039;.34
Category
I18n
Occurrences
34
Severity
warning

Sample message

Mismatched text domain. Expected &#039;attribute-stock-for-woocommerce&#039; but got &#039;default&#039;.

WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_FILES[&#039;import_file&#039;][&#039;tmp_name&#039;]28
Category
Security
Occurrences
28
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_FILES[&#039;import_file&#039;][&#039;tmp_name&#039;]

WARNINGSecurityMissing Unslash$_GET[$type] not unslashed before sanitization. Use wp_unslash() or similar28
Category
Security
Occurrences
28
Severity
warning

Sample message

$_GET[$type] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGSecurityMissingProcessing form data without nonce verification.23
Category
Security
Occurrences
23
Severity
warning

Sample message

Processing form data without nonce verification.

Show 15 more
WARNINGMaintainabilityDirect Query16
Category
Maintainability
Occurrences
16
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo Caching16
Category
Maintainability
Occurrences
16
Severity
warning

Sample message

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

ERRORSecurityNot Prepared12
Category
Security
Occurrences
12
Severity
error

Sample message

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

WARNINGMaintainabilityNon Prefixed Hookname Found10
Category
Maintainability
Occurrences
10
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;clean_post_cache&quot;.

WARNINGSecurityInput Not Validated8
Category
Security
Occurrences
8
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_FILES[&#039;import_file&#039;][&#039;error&#039;]. Check that the array index exists before using it.

ERRORSecurityUnescaped DBParameter7
Category
Security
Occurrences
7
Severity
error

Sample message

Unescaped parameter $match_query['query'] used in $wpdb->get_results()\n$match_query['query'] used without escaping.

WARNINGSecurityInterpolated Not Prepared7
Category
Security
Occurrences
7
Severity
warning

Sample message

Use placeholders and $wpdb-&gt;prepare(); found interpolated variable $table at &quot;SELECT EXISTS (SELECT * FROM $table LIMIT 1) AS result&quot;

WARNINGMaintainabilityDynamic Hookname Found3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;static::hook_name(&#039;duplicated_extra&#039;)&quot;.

ERRORMaintainabilitymissing direct file access protection3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

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

WARNINGSecurityUnescaped DBParameter2
Category
Security
Occurrences
2
Severity
warning

Sample message

Unescaped parameter $pfx used in $wpdb-&gt;get_col()\n$pfx assigned unsafely at line 244.

WARNINGMaintainabilitySchema Change2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Attempting a database schema change is discouraged.

WARNINGMaintainabilityslow db query meta key2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Detected usage of meta_key, possible slow query.

WARNINGMaintainabilityslow db query meta value2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Detected usage of meta_value, possible slow query.

WARNINGMaintainabilityerror log debug backtrace2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

debug_backtrace() found. Debug code should not normally be used in production.

ERRORSecurityException Not Escaped2
Category
Security
Occurrences
2
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'MEWZ_WCAS_NAME'.

Score History

First score snapshot

v2.2.10

29

Latest

Findings
794
Errors
481
Warnings
313
Check
2.0.0

Related Plugins