Upload Receipt for Any Payment method in WooCommerce
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
I18n
211
6 issue groups
Security
111
7 issue groups
Maintainability
47
11 issue groups
Supply Chain
2
1 issue group
ERRORI18nNon Singular String Literal DomainThe $domain parameter must be a single text string literal. Found: $this->td111
- Category
- I18n
- Occurrences
- 111
- Severity
- error
Sample message
The $domain parameter must be a single text string literal. Found: $this->td
ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"' class='receipt-preview $status' alt='"'.79
- Category
- Security
- Occurrences
- 79
- Severity
- error
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"' class='receipt-preview $status' alt='"'.
ERRORI18nText Domain MismatchMismatched text domain. Expected 'pepro-bacs-receipt-upload-for-woocommerce' but got 'receipt-upload'.72
- Category
- I18n
- Occurrences
- 72
- Severity
- error
Sample message
Mismatched text domain. Expected 'pepro-bacs-receipt-upload-for-woocommerce' but got 'receipt-upload'.
ERRORMaintainabilityEcho FoundShort PHP opening tag used with echo; expected "<?php echo $src ..." but found "<?= $src ..."24
- Category
- Maintainability
- Occurrences
- 24
- Severity
- error
Sample message
Short PHP opening tag used with echo; expected "<?php echo $src ..." but found "<?= $src ..."
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.23
- Category
- I18n
- Occurrences
- 23
- 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.
WARNINGSecurityRecommendedProcessing form data without nonce verification.11
- Category
- Security
- Occurrences
- 11
- Severity
- warning
Sample message
Processing form data without nonce verification.
WARNINGSecurityMissing Unslash$_GET['receipt_attached'] not unslashed before sanitization. Use wp_unslash() or similar9
- Category
- Security
- Occurrences
- 9
- Severity
- warning
Sample message
$_GET['receipt_attached'] not unslashed before sanitization. Use wp_unslash() or similar
WARNINGMaintainabilityNon Prefixed Class FoundClasses declared by a theme/plugin should start with the theme/plugin prefix. Found: "WC_peproDev_ApprovedReceipt_Admin".6
- Category
- Maintainability
- Occurrences
- 6
- Severity
- warning
Sample message
Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "WC_peproDev_ApprovedReceipt_Admin".
WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_FILES['file']["tmp_name"]4
- Category
- Security
- Occurrences
- 4
- Severity
- warning
Sample message
Detected usage of a non-sanitized input variable: $_FILES['file']["tmp_name"]
WARNINGSecurityInput Not ValidatedDetected usage of a possibly undefined superglobal array index: $_FILES['file']["tmp_name"]. Check that the array index exists before using it.4
- Category
- Security
- Occurrences
- 4
- Severity
- warning
Sample message
Detected usage of a possibly undefined superglobal array index: $_FILES['file']["tmp_name"]. Check that the array index exists before using it.
Show 15 moreShow less
WARNINGMaintainabilityMissing Version4
- Category
- Maintainability
- Occurrences
- 4
- Severity
- warning
Sample message
Resource version not set in call to wp_register_script(). This means new versions of the script may not always be loaded due to browser caching.
WARNINGMaintainabilityNon Prefixed 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: "pepro_upload_receipt_allowed_file_mimes".
ERRORSecurityUnsafe Printing Function3
- Category
- Security
- Occurrences
- 3
- Severity
- error
Sample message
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
WARNINGMaintainabilityNot In Footer3
- Category
- Maintainability
- Occurrences
- 3
- 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.
ERRORI18nInterpolated Variable Domain2
- Category
- I18n
- Occurrences
- 2
- Severity
- error
Sample message
The $domain parameter must not contain interpolated variables or expressions. Found: $this->td
ERRORI18nUnordered Placeholders Text2
- Category
- I18n
- Occurrences
- 2
- Severity
- error
Sample message
Multiple placeholders in translatable strings should be ordered. Expected "%1\$s, %2\$s", but got "%s, %s" in "%s — Version %s".
ERRORSupply Chainhidden files2
- Category
- Supply Chain
- Occurrences
- 2
- Severity
- error
Sample message
Hidden files are not permitted.
WARNINGMaintainabilitytrademarked term2
- Category
- Maintainability
- Occurrences
- 2
- Severity
- warning
Sample message
The plugin name includes a restricted term. Your chosen plugin name - "PeproDev WooCommerce Receipt Uploader" - contains the restricted term "woocommerce" which cannot be used within in your plugin name, unless your plugin name contains one of the allowed patterns: "for woocommerce", "with woocommerce", "using woocommerce", or "and woocommerce". The term must still not appear anywhere else in your name.
WARNINGI18nload plugin textdomain Found1
- Category
- I18n
- Occurrences
- 1
- Severity
- warning
Sample message
load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.
ERRORSecurityregister setting Missing1
- Category
- Security
- Occurrences
- 1
- Severity
- error
Sample message
Sanitization missing for register_setting().
WARNINGMaintainabilityNon Prefixed Variable Found1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$Pepro_Upload_Receipt".
ERRORMaintainabilityfile system operations fclose1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- error
Sample message
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fclose().
ERRORMaintainabilityfile system operations fopen1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- error
Sample message
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fopen().
ERRORMaintainabilityfile system operations fwrite1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- error
Sample message
File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fwrite().
ERRORMaintainabilityparse url parse url1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- error
Sample message
parse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.
Score History
First score snapshot
v2.8.0
33
Latest
- Findings
- 374
- Errors
- 325
- Warnings
- 49
- Check
- 2.0.0
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 33 | 374 | 325 | 49 | v2.8.0 | 2.0.0 |