Head, Footer and Post Injections

Head and Footer plugin lets you to add HTML code to the head and footer sections of your site pages, inside posts... and more!

v3.3.6Stefano LissaUpdated Added 300k+ installs98% rating0% support resolved
55
Score
9
Errors
52
Warnings
+0
Change

Category Scores

Security26
Repo89
Performance100
Maintainability86

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

61 findings

Maintainability

33

4 issue groups

Security

25

6 issue groups

Repo Compliance

2

2 issue groups

I18n

1

1 issue group

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

Sample message

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

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_GET['subpage']8
Category
Security
Occurrences
8
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_GET['subpage']

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

Sample message

$_GET['subpage'] not unslashed before sanitization. Use wp_unslash() or similar

ERRORMaintainabilityShort PHP open tag foundShort PHP opening tag used with echo; expected "<?php echo (int) ..." but found "<?= (int) ..."5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

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

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

Sample message

Processing form data without nonce verification.

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

Sample message

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

WARNINGMaintainabilityNon-prefixed constantGlobal constants defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;HEADER_FOOTER_ALLOW_PHP&quot;.2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

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

ERRORMaintainabilityForbidden PHP function foundThe use of function eval() is forbidden1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

The use of function eval() is forbidden

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

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

Sample message

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

Show 3 more
WARNINGSecuritywp redirect wp redirect1
Category
Security
Occurrences
1
Severity
warning

Sample message

wp_redirect() found. Using wp_safe_redirect(), along with the &quot;allowed_redirect_hosts&quot; 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.

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

Sample message

Tested up to: 6.9 < 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.

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.

Score History

First score snapshot

v3.3.6

55

Latest

Findings
61
Errors
9
Warnings
52
Check
2.0.0

Related Plugins

Header and Footer Scripts

200k+ active installs

99
Machete

7k+ active installs

99
Search Analytics for WP

3k+ active installs

99
Web Worker Offloading

10k+ active installs

99