Contact Form 7 Gated Content

Gate files behind your Contact Form 7 forms.

v1.5.0Wyatt KirbyUpdated Added 800 installs100% rating
36
Score
122
Errors
36
Warnings
+0
Change

Category Scores

Security0
Repo86
Performance100
Maintainability66

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

158 findings

Security

67

6 issue groups

Maintainability

58

10 issue groups

I18n

30

2 issue groups

Repo Compliance

3

3 issue groups

ERRORMaintainabilityShort PHP open tag foundShort PHP opening tag used with echo; expected "<?php echo $attachment_meta ..." but found "<?= $attachment_meta ..."43
Category
Maintainability
Occurrences
43
Severity
error

Sample message

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

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

Sample message

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

ERRORI18nText Domain MismatchMismatched text domain. Expected 'cf7-gated-content' but got "apsis_wp".29
Category
I18n
Occurrences
29
Severity
error

Sample message

Mismatched text domain. Expected 'cf7-gated-content' but got "apsis_wp".

WARNINGSecurityRequest data is not unslashed$_POST[&#039;always_require_form&#039;] not unslashed before sanitization. Use wp_unslash() or similar12
Category
Security
Occurrences
12
Severity
warning

Sample message

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

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_POST[&#039;always_require_form&#039;]7
Category
Security
Occurrences
7
Severity
warning

Sample message

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

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_POST[&#039;contactFormId&#039;]. Check that the array index exists before using it.6
Category
Security
Occurrences
6
Severity
warning

Sample message

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

WARNINGMaintainabilityMissing VersionResource 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.3
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.

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

Sample message

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

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

Sample message

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

WARNINGMaintainabilityNot In FooterIn 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.2
Category
Maintainability
Occurrences
2
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.

Show 11 more
WARNINGMaintainabilitytrademarked term2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

The plugin name includes a restricted term. Your chosen plugin name - "Contact Form 7 Gated Content" - contains the restricted term "contact-form-7" and cannot be used to begin your plugin name. We disallow the use of certain terms in ways that are abused, or potentially infringe on and/or are misleading with regards to trademarks. You may use the term "contact-form-7" elsewhere in your plugin name, such as "... for contact-form-7".

WARNINGMaintainabilityNon-prefixed hook name1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

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

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;$hidden&quot;.

WARNINGSecurityMissing nonce verification1
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.

ERRORI18nMissing Arg Domain1
Category
I18n
Occurrences
1
Severity
error

Sample message

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

ERRORMaintainabilityapplication detected1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Application files are not permitted.

ERRORRepo Compliancelicense mismatch1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Your plugin has a different license declared in the readme file and plugin header. Please update your readme with a valid GPL license identifier.

ERRORRepo Complianceoutdated tested upto header1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 6.7 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.

WARNINGRepo Compliancereadme parser warnings too many tags1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

One or more tags were ignored. Please limit your plugin to 5 tags.

ERRORMaintainabilitywp function not compatible with requires wp1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Function "wp_admin_notice()" requires WordPress 6.4.0, but your plugin minimum supported version is WordPress 4.5.0.

External Connections

Potential connections found in static code analysis.

1 domains

Outbound calls

2

External assets

0

Incoming endpoints

2

Notable Domains

apsis.io2 · outbound

External Asset Domains

No external asset domains detected.

Incoming Endpoints

wp_ajax_nopriv_getDownloadButtonpublic

wp_ajax

Admin AJAX endpoints1
wp_ajax_getDownloadButtonauthenticated

wp_ajax

Score History

First score snapshot

v1.5.0

36

Latest

Findings
158
Errors
122
Warnings
36
Check
2.0.0

Relationship Map

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

30 nodes

Related Plugins

Contact Form Query

1k+ active installs

100
DS CF7 Math Captcha

10k+ active installs

100
Email addon for CF7

3k+ active installs

100
100