CM Header and Footer – Add custom scripts and styles to your header and footer with ease

Add custom CSS and JavaScript to headers and footers on your site with the header and footer plugin for enhanced control and design.

v1.3.1CreativeMindsSolutionsUpdated Added 1k+ installs100% rating
36
Score
230
Errors
198
Warnings
+0
Change

Category Scores

Security0
Repo100
Performance100
Maintainability53

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

428 findings

Security

316

10 issue groups

Maintainability

65

11 issue groups

I18n

39

4 issue groups

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

Sample message

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

WARNINGSecurityRequest data is not unslashed$_GET['cminds_action'] not unslashed before sanitization. Use wp_unslash() or similar41
Category
Security
Occurrences
41
Severity
warning

Sample message

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

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

Sample message

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

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_POST['cminds-sysinfo']. Check that the array index exists before using it.28
Category
Security
Occurrences
28
Severity
warning

Sample message

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

ERRORI18nText Domain MismatchMismatched text domain. Expected 'cm-header-footer-script-loader' but got 'cminds'.24
Category
I18n
Occurrences
24
Severity
error

Sample message

Mismatched text domain. Expected 'cm-header-footer-script-loader' but got 'cminds'.

WARNINGMaintainabilityDynamic hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "$filterName".21
Category
Maintainability
Occurrences
21
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "$filterName".

WARNINGSecurityMissing nonce verificationProcessing form data without nonce verification.20
Category
Security
Occurrences
20
Severity
warning

Sample message

Processing form data without nonce verification.

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

Sample message

Processing form data without nonce verification.

ERRORI18nMissing Arg DomainMissing $domain parameter in function call to __().10
Category
I18n
Occurrences
10
Severity
error

Sample message

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

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

Sample message

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

Show 15 more
WARNINGMaintainabilityMissing Version9
Category
Maintainability
Occurrences
9
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 protection8
Category
Maintainability
Occurrences
8
Severity
error

Sample message

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

WARNINGMaintainabilityNon-prefixed hook name5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "'activate_' . self::$plugin_basename".

WARNINGMaintainabilityNot In Footer4
Category
Maintainability
Occurrences
4
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.

ERRORI18nNon Singular String Literal Domain4
Category
I18n
Occurrences
4
Severity
error

Sample message

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

WARNINGMaintainabilityNon-prefixed class3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "CMHeaderAndFooterSL".

WARNINGMaintainabilityDirect Query2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo Caching2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

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

WARNINGMaintainabilityNo PHP code found1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.

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.

ERRORSecurityDatabase parameter is not escaped1
Category
Security
Occurrences
1
Severity
error

Sample message

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

WARNINGSecurityInterpolated SQL is not prepared1
Category
Security
Occurrences
1
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $meta_key at "SELECT * FROM $wpdb->postmeta WHERE meta_key = '$meta_key'"

WARNINGSecurityUnnecessary Prepare1
Category
Security
Occurrences
1
Severity
warning

Sample message

It is not necessary to prepare a query which doesn't use variable replacement.

ERRORMaintainabilitymysql mysqli get server info1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Accessing the database directly should be avoided. Please use the $wpdb object and associated functions instead. Found: mysqli_get_server_info.

ERRORSecurityUnsafe printing function1
Category
Security
Occurrences
1
Severity
error

Sample message

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

External Connections

Potential connections found in static code analysis.

18 domains

Outbound calls

112

External assets

3

Incoming endpoints

6

Notable Domains

cminds.com72 · outbound
player.vimeo.com8 · outbound
jqueryui.com4 · outbound
facebook.com2 · outbound
trentrichardson.com2 · outbound

Platform / Reference Domains

wordpress.org8 · platform/reference
github.com2 · platform/reference
w3.org2 · platform/reference
gnu.org1 · platform/reference

External Asset Domains

creativeminds.helpscoutdocs.com3 · asset + outbound
fonts.googleapis.com3 · asset + outbound

Incoming Endpoints

No public endpoints detected.

Admin AJAX endpoints6
wp_ajax_cm-submit-deregistrationauthenticated

wp_ajax

wp_ajax_cm-submit-registration-emailauthenticated

wp_ajax

wp_ajax_cm-submit-registration-skipauthenticated

wp_ajax

wp_ajax_cm-submit-uninstall-reasonauthenticated

wp_ajax

wp_ajax_cmhandfsl_create_update_ruleauthenticated

wp_ajax

wp_ajax_cmhandfsl_delete_ruleauthenticated

wp_ajax

Score History

First score snapshot

v1.3.1

36

Latest

Findings
428
Errors
230
Warnings
198
Check
2.0.0

Relationship Map

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

37 nodes

Related Plugins