Message Filter for Contact Form 7

Filter messages submitted through contact form 7 based on words and/or emails listed as restricted.

v1.6.3.8Kofi MokomeUpdated Added 1k+ installs98% rating
22
Score
1,072
Errors
1,611
Warnings
+0
Change

Category Scores

Security0
Repo77
Performance100
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

2,683 findings

Maintainability

1,561

11 issue groups

Security

812

10 issue groups

I18n

268

4 issue groups

WARNINGMaintainabilityNon Prefixed Variable FoundGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$account_addon_ids".1,218
Category
Maintainability
Occurrences
1,218
Severity
warning

Sample message

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

ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '" <a href='{$skip_url}' class='button button-small button-secondary'>{$use_plugin_anonymously_text}</a>"'.609
Category
Security
Occurrences
609
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '" <a href='{$skip_url}' class='button button-small button-secondary'>{$use_plugin_anonymously_text}</a>"'.

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

Sample message

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

ERRORSecurityUnsafe Printing FunctionAll output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.105
Category
Security
Occurrences
105
Severity
error

Sample message

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.

WARNINGMaintainabilityNon Prefixed Function FoundFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;_fs_text&quot;.103
Category
Maintainability
Occurrences
103
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;_fs_text&quot;.

WARNINGMaintainabilityNon Prefixed Class FoundClasses declared by a theme/plugin should start with the theme/plugin prefix. Found: &quot;FS_Admin_Menu_Manager&quot;.70
Category
Maintainability
Occurrences
70
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: &quot;FS_Admin_Menu_Manager&quot;.

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;

WARNINGSecurityMissingProcessing form data without nonce verification.36
Category
Security
Occurrences
36
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityNon Prefixed Namespace FoundNamespaces declared by a theme/plugin should start with the theme/plugin prefix. Found: &quot;km_message_filter&quot;.34
Category
Maintainability
Occurrences
34
Severity
warning

Sample message

Namespaces declared by a theme/plugin should start with the theme/plugin prefix. Found: &quot;km_message_filter&quot;.

WARNINGMaintainabilityNon Prefixed Constant FoundGlobal constants defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;FS_API__ADDRESS&quot;.27
Category
Maintainability
Occurrences
27
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;FS_API__ADDRESS&quot;.

Show 15 more
WARNINGMaintainabilityDirect Query20
Category
Maintainability
Occurrences
20
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo Caching18
Category
Maintainability
Occurrences
18
Severity
warning

Sample message

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

WARNINGSecurityRecommended18
Category
Security
Occurrences
18
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityNon Prefixed Hookname Found14
Category
Maintainability
Occurrences
14
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;&#039;km_setting_&#039; . $id&quot;.

ERRORSecurityException Not Escaped12
Category
Security
Occurrences
12
Severity
error

Sample message

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

WARNINGSecurityInput Not Sanitized11
Category
Security
Occurrences
11
Severity
warning

Sample message

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

WARNINGMaintainabilitySchema Change9
Category
Maintainability
Occurrences
9
Severity
warning

Sample message

Attempting a database schema change is discouraged.

ERRORMaintainabilityOffloaded Content7
Category
Maintainability
Occurrences
7
Severity
error

Sample message

Offloading images, js, css, and other scripts to your servers or any remote service is disallowed.

WARNINGSecurityUnquoted Complex Placeholder7
Category
Security
Occurrences
7
Severity
warning

Sample message

Complex placeholders used for values in the query string in $wpdb-&gt;prepare() will NOT be quoted automagically. Found: %1s.

WARNINGSecurityMissing Unslash6
Category
Security
Occurrences
6
Severity
warning

Sample message

$_POST[&#039;wpforms&#039;][&#039;id&#039;] not unslashed before sanitization. Use wp_unslash() or similar

ERRORSecurityUnescaped DBParameter5
Category
Security
Occurrences
5
Severity
error

Sample message

Unescaped parameter $additions used in $wpdb->query()\n$additions assigned unsafely at line 261.

ERRORI18nMissing Arg Domain5
Category
I18n
Occurrences
5
Severity
error

Sample message

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

ERRORI18nNon Singular String Literal Text5
Category
I18n
Occurrences
5
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: $my_filter->id

ERRORI18nText Domain Mismatch4
Category
I18n
Occurrences
4
Severity
error

Sample message

Mismatched text domain. Expected 'cf7-message-filter' but got 'contact-form-7'.

WARNINGSecurityInterpolated Not Prepared3
Category
Security
Occurrences
3
Severity
warning

Sample message

Use placeholders and $wpdb-&gt;prepare(); found interpolated variable $additions at &quot;CREATE TABLE IF NOT EXISTS `%1s` ( $additions )&quot;

Score History

First score snapshot

v1.6.3.8

22

Latest

Findings
2,683
Errors
1,072
Warnings
1,611
Check
2.0.0

Related Plugins

Dam Spam

1k+ active installs

100
DS CF7 Math Captcha

10k+ active installs

100
100
Simply Disable Comments

6k+ active installs

100
Simply Show Hooks

2k+ active installs

100