OSS Aliyun

使用阿里云对象存储 OSS 作为附件存储空间。(This is a plugin that uses Aliyun Object Storage Service for attachments remote saving.)

v1.5.3沈唁Updated Added 3k+ installs96% rating
41
Score
19
Errors
40
Warnings
+0
Change

Category Scores

Security0
Repo94
Performance100
Maintainability86

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

59 findings

Security

45

9 issue groups

Maintainability

13

7 issue groups

Repo Compliance

1

1 issue group

WARNINGSecurityMissing Unslash$_POST['accessKeyId'] not unslashed before sanitization. Use wp_unslash() or similar15
Category
Security
Occurrences
15
Severity
warning

Sample message

$_POST['accessKeyId'] not unslashed before sanitization. Use wp_unslash() or similar

ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<div class='error'><p><strong>{$message}</strong></p></div>"'.10
Category
Security
Occurrences
10
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<div class='error'><p><strong>{$message}</strong></p></div>"'.

WARNINGMaintainabilityerror log error logerror_log() found. Debug code should not normally be used in production.5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

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

WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_POST[&#039;type&#039;]5
Category
Security
Occurrences
5
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_POST[&#039;type&#039;]

WARNINGSecurityInput Not ValidatedDetected usage of a possibly undefined superglobal array index: $_POST[&#039;new_url&#039;]. Check that the array index exists before using it.5
Category
Security
Occurrences
5
Severity
warning

Sample message

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

ERRORSecurityQuoted Simple PlaceholderSimple placeholders should not be quoted in the query string in $wpdb->prepare(). Found: '%s'.4
Category
Security
Occurrences
4
Severity
error

Sample message

Simple placeholders should not be quoted in the query string in $wpdb->prepare(). Found: '%s'.

WARNINGSecurityUnescaped DBParameterUnescaped parameter $postmeta_name used in $wpdb-&gt;query()\n$postmeta_name assigned unsafely at line 855.2
Category
Security
Occurrences
2
Severity
warning

Sample message

Unescaped parameter $postmeta_name used in $wpdb-&gt;query()\n$postmeta_name assigned unsafely at line 855.

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.2
Category
Maintainability
Occurrences
2
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().2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

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

WARNINGSecurityInterpolated Not PreparedUse placeholders and $wpdb-&gt;prepare(); found interpolated variable $postmeta_name at &quot;UPDATE $postmeta_name SET meta_value = REPLACE(meta_value, &#039;%s&#039;, &#039;%s&#039;)&quot;2
Category
Security
Occurrences
2
Severity
warning

Sample message

Use placeholders and $wpdb-&gt;prepare(); found interpolated variable $postmeta_name at &quot;UPDATE $postmeta_name SET meta_value = REPLACE(meta_value, &#039;%s&#039;, &#039;%s&#039;)&quot;

Show 7 more
ERRORMaintainabilitydate date1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

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

WARNINGSecurityUsing FILE 1
Category
Security
Occurrences
1
Severity
warning

Sample message

Using __FILE__ for menu slugs risks exposing filesystem structure.

WARNINGSecurityInput Not Validated Not Sanitized1
Category
Security
Occurrences
1
Severity
warning

Sample message

Detected usage of a non-sanitized, non-validated input variable _POST: &quot;{$_POST[&#039;type&#039;]}-nonce&quot;

ERRORMaintainabilityrand mt rand1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

mt_rand() is discouraged. Use the far less predictable wp_rand() instead.

ERRORMaintainabilityunlink unlink1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

unlink() is discouraged. Use wp_delete_file() to delete a file.

ERRORMaintainabilitymissing direct file access protection1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

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

ERRORRepo Compliancereadme description non official language1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

The readme description contains unofficial language. It must be written in standard English.

Score History

First score snapshot

v1.5.3

41

Latest

Findings
59
Errors
19
Warnings
40
Check
2.0.0

Related Plugins

One Stop Shop for WooCommerce

10k+ active installs

68