Stock Sync for WooCommerce

Sync stock quantities between two WooCommerce stores.

v2.10.0WP TrioUpdated Added 1k+ installs88% rating
32
Score
362
Errors
232
Warnings
+0
Change

Category Scores

Security0
Repo89
Performance100
Maintainability42

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

594 findings

I18n

263

4 issue groups

Security

197

11 issue groups

Maintainability

128

10 issue groups

ERRORI18nText Domain MismatchMismatched text domain. Expected 'stock-sync-for-woocommerce' but got 'woo-stock-sync'.209
Category
I18n
Occurrences
209
Severity
error

Sample message

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

ERRORSecurityUnsafe Printing FunctionAll output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.37
Category
Security
Occurrences
37
Severity
error

Sample message

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.

WARNINGMaintainabilityNon Prefixed Function FoundFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "queue_flash_message".35
Category
Maintainability
Occurrences
35
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "queue_flash_message".

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

Sample message

Processing form data without nonce verification.

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.34
Category
I18n
Occurrences
34
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.

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

Sample message

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

WARNINGMaintainabilityNon Prefixed Variable FoundGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$entry".30
Category
Maintainability
Occurrences
30
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$entry".

WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_GET['action']28
Category
Security
Occurrences
28
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_GET['action']

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

Sample message

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

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

Sample message

Use of a direct database call is discouraged.

Show 15 more
WARNINGMaintainabilityNo Caching14
Category
Maintainability
Occurrences
14
Severity
warning

Sample message

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

WARNINGSecurityInput Not Validated14
Category
Security
Occurrences
14
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_GET['log_id']. Check that the array index exists before using it.

ERRORMaintainabilitymissing direct file access protection13
Category
Maintainability
Occurrences
13
Severity
error

Sample message

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

ERRORI18nUnordered Placeholders Text11
Category
I18n
Occurrences
11
Severity
error

Sample message

Multiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$s", but got "%s, %s" in '%s ago (%s)'.

WARNINGSecurityInterpolated Not Prepared9
Category
Security
Occurrences
9
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable {$table} at "DELETE FROM {$table} WHERE created_at < %s"

WARNINGMaintainabilityNon Prefixed Hookname Found9
Category
Maintainability
Occurrences
9
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "'woocommerce_get_sections_' . $this->id".

ERRORI18nMissing Arg Domain9
Category
I18n
Occurrences
9
Severity
error

Sample message

Missing $domain parameter in function call to __().

ERRORSecurityUnescaped DBParameter4
Category
Security
Occurrences
4
Severity
error

Sample message

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

ERRORSecurityNot Prepared4
Category
Security
Occurrences
4
Severity
error

Sample message

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

ERRORMaintainabilitydate date4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.

WARNINGSecurityMissing4
Category
Security
Occurrences
4
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityUnescaped DBParameter3
Category
Security
Occurrences
3
Severity
warning

Sample message

Unescaped parameter $table used in $wpdb->get_var()\n$table assigned unsafely at line 277.

WARNINGMaintainabilityNon Prefixed Class Found3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "WC_REST_Stock_Sync_Controller".

ERRORMaintainabilitywp function not compatible with requires wp3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

Function "rest_authorization_required_code()" requires WordPress 4.7.0, but your plugin minimum supported version is WordPress 4.5.0.

WARNINGMaintainabilityNot In Footer2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

In footer ($in_footer) is not set explicitly wp_enqueue_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or explicitly `false` if it should be loaded in the header.

Score History

First score snapshot

v2.10.0

32

Latest

Findings
594
Errors
362
Warnings
232
Check
2.0.0

Related Plugins