WPJAM Basic

WPJAM Basic 是我爱水煮鱼博客多年来使用 WordPress 来整理的优化插件,WPJAM Basic 除了能够优化你的 WordPress,也是 WordPress 果酱团队进行 WordPress 二次开发的基础。

v7.0.1denishuaUpdated Added 4k+ installs76% rating
20
Score
328
Errors
356
Warnings
+0
Change

Category Scores

Security0
Repo72
Performance92
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

684 findings

Security

324

10 issue groups

Maintainability

237

11 issue groups

I18n

46

4 issue groups

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$_GET['_jsonp']'.119
Category
Security
Occurrences
119
Severity
error

Sample message

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

WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "add_taxonomy_support".65
Category
Maintainability
Occurrences
65
Severity
warning

Sample message

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

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_COOKIE[$key]47
Category
Security
Occurrences
47
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_COOKIE[$key]

WARNINGSecurityRequest data is not unslashed$_COOKIE[$key] not unslashed before sanitization. Use wp_unslash() or similar47
Category
Security
Occurrences
47
Severity
warning

Sample message

$_COOKIE[$key] not unslashed before sanitization. Use wp_unslash() or similar

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

Sample message

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

ERRORMaintainabilitywp function not compatible with requires wpFunction "array_first()" requires WordPress 6.9.0, but your plugin minimum supported version is WordPress 6.8.0.41
Category
Maintainability
Occurrences
41
Severity
error

Sample message

Function "array_first()" requires WordPress 6.9.0, but your plugin minimum supported version is WordPress 6.8.0.

WARNINGSecurityNonce verification recommendedProcessing form data without nonce verification.39
Category
Security
Occurrences
39
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORI18nText Domain MismatchMismatched text domain. Expected 'wpjam-basic' but got 'wpjam'.26
Category
I18n
Occurrences
26
Severity
error

Sample message

Mismatched text domain. Expected 'wpjam-basic' but got 'wpjam'.

WARNINGMaintainabilityerror log trigger errortrigger_error() found. Debug code should not normally be used in production.24
Category
Maintainability
Occurrences
24
Severity
warning

Sample message

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

WARNINGSecurityMissing nonce verificationProcessing form data without nonce verification.21
Category
Security
Occurrences
21
Severity
warning

Sample message

Processing form data without nonce verification.

Show 15 more
WARNINGSecurityInput is not validated19
Category
Security
Occurrences
19
Severity
warning

Sample message

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

ERRORSecuritySQL query is not prepared15
Category
Security
Occurrences
15
Severity
error

Sample message

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

ERRORMaintainabilityparse url parse url14
Category
Maintainability
Occurrences
14
Severity
error

Sample message

parse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.

WARNINGMaintainabilityerror log var export12
Category
Maintainability
Occurrences
12
Severity
warning

Sample message

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

WARNINGMaintainabilityNon-prefixed global variable10
Category
Maintainability
Occurrences
10
Severity
warning

Sample message

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

WARNINGMaintainabilityDirect Query9
Category
Maintainability
Occurrences
9
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo Caching8
Category
Maintainability
Occurrences
8
Severity
warning

Sample message

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

ERRORI18nNon Singular String Literal Text8
Category
I18n
Occurrences
8
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: $args && $code == 'value' ? '%s\'s value' : $code

WARNINGMaintainabilityNon-prefixed hook name7
Category
Maintainability
Occurrences
7
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "attachment_url_to_postid".

ERRORSecurityException output is not escaped7
Category
Security
Occurrences
7
Severity
error

Sample message

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

ERRORI18nMissing Translators Comment7
Category
I18n
Occurrences
7
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.

WARNINGMaintainabilityDynamic hook name6
Category
Maintainability
Occurrences
6
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "$data['hook']".

WARNINGSecurityInterpolated SQL is not prepared5
Category
Security
Occurrences
5
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $where at "SELECT ID FROM $wpdb->posts WHERE $where"

WARNINGSecuritywp redirect wp redirect5
Category
Security
Occurrences
5
Severity
warning

Sample message

wp_redirect() found. Using wp_safe_redirect(), along with the "allowed_redirect_hosts" filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed.

ERRORI18nMissing Arg Domain5
Category
I18n
Occurrences
5
Severity
error

Sample message

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

External Connections

Not analyzed yet.

Score History

First score snapshot

v7.0.1

20

Latest

Findings
684
Errors
328
Warnings
356
Check
2.0.0

Related Plugins

atec Cache Info

1k+ active installs

97
Object Cache 4 everyone

5k+ active installs

87
MemcacheD Is Your Friend

1k+ active installs

72