WP fail2ban Blocklist

WP fail2ban Blocklist is a collaborative preemptive blocklist for WordPress.

v2.2.2invisnetUpdated Added 3k+ installs100% rating
36
Score
61
Errors
63
Warnings
+0
Change

Category Scores

Security0
Repo94
Performance100
Maintainability57

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

124 findings

Maintainability

70

14 issue groups

Security

42

8 issue groups

I18n

8

3 issue groups

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

Sample message

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

WARNINGMaintainabilityNon-prefixed constantGlobal constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "WP_FAIL2BAN_ADDON_BLOCKLIST_DIR".13
Category
Maintainability
Occurrences
13
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "WP_FAIL2BAN_ADDON_BLOCKLIST_DIR".

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

Sample message

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

ERRORMaintainabilityNot AllowedUse of heredoc syntax (<<<) is not allowed; use standard strings or inline HTML instead11
Category
Maintainability
Occurrences
11
Severity
error

Sample message

Use of heredoc syntax (<<<) is not allowed; use standard strings or inline HTML instead

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

Sample message

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

ERRORSecurityDatabase parameter is not escapedUnescaped parameter $sql used in $wpdb->get_row()\n$sql assigned unsafely at line 67.6
Category
Security
Occurrences
6
Severity
error

Sample message

Unescaped parameter $sql used in $wpdb->get_row()\n$sql assigned unsafely at line 67.

WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;wp_fail2ban_register_message&quot;.4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;wp_fail2ban_register_message&quot;.

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

Sample message

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

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_SERVER[&#039;REQUEST_TIME&#039;]. 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: $_SERVER[&#039;REQUEST_TIME&#039;]. Check that the array index exists before using it.

Show 15 more
WARNINGMaintainabilityMissing Version3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Resource version not set in call to wp_enqueue_script(). This means new versions of the script may not always be loaded due to browser caching.

ERRORI18nMissing Arg Domain3
Category
I18n
Occurrences
3
Severity
error

Sample message

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

ERRORI18nText Domain Mismatch3
Category
I18n
Occurrences
3
Severity
error

Sample message

Mismatched text domain. Expected 'wpf2b-addon-blocklist' but got 'wp-fail2ban'.

WARNINGMaintainabilitytrademarked term3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

The plugin name includes a restricted term. Your chosen plugin name - "WP fail2ban Blocklist" - contains the restricted term "wp" which cannot be used at all in your plugin name.

ERRORMaintainabilityShort PHP open tag found2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

Short PHP opening tag used with echo; expected "<?php echo WP_FAIL2BAN_ADDON_BLOCKLIST_VER ..." but found "<?= WP_FAIL2BAN_ADDON_BLOCKLIST_VER ..."

ERRORSecurityException output is not escaped2
Category
Security
Occurrences
2
Severity
error

Sample message

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

WARNINGSecurityInput is not sanitized2
Category
Security
Occurrences
2
Severity
warning

Sample message

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

WARNINGSecurityRequest data is not unslashed2
Category
Security
Occurrences
2
Severity
warning

Sample message

$_SERVER[&#039;REQUEST_URI&#039;] not unslashed before sanitization. Use wp_unslash() or similar

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

ERRORMaintainabilityMissing direct file access protection2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

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

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.

WARNINGMaintainabilityNon-prefixed global variable1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$wpf2b_addon_blocklist_fs&quot;.

WARNINGSecurityNonce verification recommended1
Category
Security
Occurrences
1
Severity
warning

Sample message

Processing form data without nonce verification.

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.

WARNINGMaintainabilityNot In Footer1
Category
Maintainability
Occurrences
1
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.2.2

36

Latest

Findings
124
Errors
61
Warnings
63
Check
2.0.0

Related Plugins

Dam Spam

1k+ active installs

100
Login Security Captcha

10k+ active installs

100
Remove XML-RPC Methods

1k+ active installs

100
Stop XML-RPC Attacks

6k+ active installs

100
Block List Updater

4k+ active installs

99