WPReplace内容字符替换插件

快速可视化的实现批量WordPress字符内容替换插件。

v7.4老蒋和他的小伙伴Updated Added 800 installs0% rating
33
Score
209
Errors
195
Warnings
+0
Change

Category Scores

Security0
Repo83
Performance100
Maintainability54

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

404 findings

I18n

169

2 issue groups

Maintainability

168

11 issue groups

Security

64

8 issue groups

Repo Compliance

3

3 issue groups

ERRORI18nNon Singular String Literal DomainThe $domain parameter must be a single text string literal. Found: WPREPLACE_TEXT_DOMAIN168
Category
I18n
Occurrences
168
Severity
error

Sample message

The $domain parameter must be a single text string literal. Found: WPREPLACE_TEXT_DOMAIN

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

Sample message

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

ERRORSecuritySQL query is not preparedUse placeholders and $wpdb->prepare(); found $query25
Category
Security
Occurrences
25
Severity
error

Sample message

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

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

Sample message

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

WARNINGSecurityInterpolated SQL is not preparedUse placeholders and $wpdb->prepare(); found interpolated variable {$in_list} at WHERE meta_key = '_wp_attached_file' AND post_id IN ({$in_list}) AND BINARY meta_value LIKE BINARY %s"12
Category
Security
Occurrences
12
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable {$in_list} at WHERE meta_key = '_wp_attached_file' AND post_id IN ({$in_list}) AND BINARY meta_value LIKE BINARY %s"

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_POST['newContent']9
Category
Security
Occurrences
9
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_POST['newContent']

WARNINGSecurityRequest data is not unslashed$_POST['replaceSelector'] not unslashed before sanitization. Use wp_unslash() or similar7
Category
Security
Occurrences
7
Severity
warning

Sample message

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

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$data".5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

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

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Compiled {$target}\n"'.4
Category
Security
Occurrences
4
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Compiled {$target}\n"'.

Show 14 more
ERRORSecurityDatabase parameter is not escaped3
Category
Security
Occurrences
3
Severity
error

Sample message

Unescaped parameter $in_list used in $wpdb->get_results()\n$in_list assigned unsafely at line 1195.

WARNINGSecurityInput is not validated3
Category
Security
Occurrences
3
Severity
warning

Sample message

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

ERRORMaintainabilityfile system operations fwrite3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fwrite().

WARNINGMaintainabilitytrademarked term3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

The plugin name includes a restricted term. Your chosen plugin name - "WPReplace Bulk Replace" - contains the restricted term "wp" which cannot be used at all in your plugin name.

WARNINGMaintainabilitySchema Change2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Attempting a database schema change is discouraged.

WARNINGI18nDiscouraged text-domain loading1
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.

ERRORSecuritySetting is missing a sanitization callback1
Category
Security
Occurrences
1
Severity
error

Sample message

Sanitization missing for register_setting().

WARNINGMaintainabilityslow db query meta value1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Detected usage of meta_value, possible slow query.

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.

WARNINGMaintainabilitymismatched plugin name1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Plugin name "WPReplace内容字符替换插件" is different from the name declared in plugin header "WPReplace Bulk Replace".

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 Complianceplugin header no license1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Missing "License" in Plugin Header. Please update your Plugin Header with a valid GPLv2 (or later) compatible license.

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.

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

Sample message

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

External Connections

Potential connections found in static code analysis.

2 domains

Outbound calls

5

External assets

0

Incoming endpoints

0

Notable Domains

lezaiyun.com3 · outbound
laojiang.me2 · outbound

External Asset Domains

No external asset domains detected.

Incoming Endpoints

No public endpoints detected.

Score History

First score snapshot

v7.4

33

Latest

Findings
404
Errors
209
Warnings
195
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

29 nodes

Related Plugins

WPOSS阿里云对象存储

1k+ active installs

19
WPWaterMark 轻水印插件

1k+ active installs

73
WPQiNiu七牛云对象存储

400 active installs

19