Tag Manager – Header, Body And Footer Security & Risk Analysis

wordpress.org/plugins/tag-manager-header-body-footer

Simple plugin that allow you add head, body and footer codes for google tag manager, analytics & facebook pixel codes.

30K active installs v3.6.2 PHP 5.2.4+ WP 5.0+ Updated Dec 10, 2025
add-codesfacebook-pixelgoogle-analyticsinsert-codetag-manager
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Tag Manager – Header, Body And Footer Safe to Use in 2026?

Generally Safe

Score 100/100

Tag Manager – Header, Body And Footer has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 3mo ago
Risk Assessment

The "tag-manager-header-body-footer" plugin, version 3.6.2, exhibits a generally strong security posture with several positive indicators. The plugin has a small attack surface, with only two AJAX handlers, and crucially, no unprotected entry points identified in the static analysis. The presence of nonce and capability checks on these handlers further bolsters its defense against common web attacks. Furthermore, the absence of any recorded vulnerabilities, critical or otherwise, in its history suggests a history of secure development practices.

However, there are areas for concern. The most significant is the use of raw SQL queries, with 100% of the four identified queries not utilizing prepared statements. This is a significant risk that could lead to SQL injection vulnerabilities if any user-supplied data is incorporated into these queries without proper sanitization. The taint analysis, while finding no critical or high severity flows, did identify one flow with an unsanitized path, which could potentially be exploited in conjunction with the raw SQL queries. The 73% output escaping rate, while good, still leaves room for improvement and a small risk of Cross-Site Scripting (XSS) vulnerabilities in the remaining unescaped outputs.

In conclusion, the plugin demonstrates good security hygiene in terms of access control and a clean vulnerability history. Nevertheless, the lack of prepared statements for all SQL queries represents a substantial and readily addressable security weakness that requires immediate attention. Addressing this and improving output escaping would significantly strengthen the plugin's overall security.

Key Concerns

  • Raw SQL queries without prepared statements
  • Flows with unsanitized paths found
  • Output escaping not 100% effective
Vulnerabilities
None known

Tag Manager – Header, Body And Footer Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

Tag Manager – Header, Body And Footer Code Analysis

Dangerous Functions
0
Raw SQL Queries
4
0 prepared
Unescaped Output
24
64 escaped
Nonce Checks
3
Capability Checks
3
File Operations
4
External Requests
0
Bundled Libraries
0

SQL Query Safety

0% prepared4 total queries

Output Escaping

73% escaped88 total outputs
Data Flows
1 unsanitized

Data Flow Analysis

3 flows1 with unsanitized paths
yydev_tagmanager_echo_message_if_exists (include\functions.php:62)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Tag Manager – Header, Body And Footer Attack Surface

Entry Points2
Unprotected0

AJAX Handlers 2

authwp_ajax_yydev_tagmanager_stop_notice_forevernotices.php:62
authwp_ajax_yydev_tagmanager_stop_notice_for_nownotices.php:84
WordPress Hooks 13
actionwp_headinclude\front-end-output.php:295
actionyydev_tag_manager_headinclude\front-end-output.php:313
actionwp_body_openinclude\front-end-output.php:371
actionwp_headinclude\front-end-output.php:385
actionwp_footerinclude\front-end-output.php:389
actionyydev_tag_manager_below_bodyinclude\front-end-output.php:418
actionwp_footerinclude\front-end-output.php:438
actionyydev_tag_manager_before_closing_bodyinclude\front-end-output.php:450
actionplugins_loadedindex.php:25
actionadmin_menuindex.php:90
actionadmin_menuindex.php:100
filterplugin_action_linksindex.php:124
actionadmin_noticesnotices.php:274
Maintenance & Trust

Tag Manager – Header, Body And Footer Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedDec 10, 2025
PHP min version5.2.4
Downloads300K

Community Trust

Rating94/100
Number of ratings53
Active installs30K
Developer Profile

Tag Manager – Header, Body And Footer Developer Profile

yydevelopment

11 plugins · 51K total installs

88
trust score
Avg Security Score
100/100
Avg Patch Time
67 days
View full developer profile
Detection Fingerprints

How We Detect Tag Manager – Header, Body And Footer

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/tag-manager-header-body-footer/include/admin-output.php/wp-content/plugins/tag-manager-header-body-footer/include/functions.php/wp-content/plugins/tag-manager-header-body-footer/include/install.php/wp-content/plugins/tag-manager-header-body-footer/include/script.php/wp-content/plugins/tag-manager-header-body-footer/include/settings.php/wp-content/plugins/tag-manager-header-body-footer/include/style.php/wp-content/plugins/tag-manager-header-body-footer/notices.php

HTML / DOM Fingerprints

HTML Comments
<!-- adding admin notices -->
FAQ

Frequently Asked Questions about Tag Manager – Header, Body And Footer