Head, Footer and Post Injections 3.3.0

Does "Head, Footer and Post Injections" work with WordPress 6.7.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
16PHP warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 21.61 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version6.7.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 300,000+
WordPress.org page https://wordpress.org/plugins/header-footer/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 5

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=header-footer%2Fplugin.php&plugin_status=all&paged=1&s&_wpnonce=da2cc8f61c
Aspect after-activation
HTTP status 200
Load time 0.398 s
Memory usage 3.52 MiB
JS errors None
Resource errors None

Settings → Head and Footer

Page screenshot: Settings → Head and Footer
URL /wp-admin/options-general.php?page=header-footer%2Fadmin%2Foptions.php
Requested URL /wp-admin/options-general.php?page=header-footer/admin/options.php
Aspect menu-item
HTTP status 200
Load time 0.418 s
Memory usage 3.58 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.202 s
Memory usage 3.45 MiB
JS errors None
Resource errors None

Add New Post ‹ Test site — WordPress

Page screenshot: Add New Post ‹ Test site — WordPress
URL /wp-admin/post-new.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.705 s
Memory usage 5.96 MiB
JS errors None
Resource errors None

Add New Page ‹ Test site — WordPress

Page screenshot: Add New Page ‹ Test site — WordPress
URL /wp-admin/post-new.php?post_type=page
Aspect new-meta-boxes
HTTP status 200
Load time 0.561 s
Memory usage 5.95 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.273 s0.258 s-0.015 s3.48 MiB3.51 MiB+ 24.52 KiB
/wp-admin/edit.php0.182 s0.176 s-0.006 s3.54 MiB3.57 MiB+ 24.56 KiB
/wp-admin/post-new.php0.704 s0.560 s-0.144 s5.93 MiB5.96 MiB+ 33.26 KiB
/wp-admin/upload.php0.515 s0.285 s-0.230 s3.5 MiB3.5 MiB+ 7.16 KiB
/wp-admin/options-writing.php0.199 s0.345 s+0.146 s3.47 MiB3.48 MiB+ 11.15 KiB
/wp-admin/media-new.php0.253 s0.201 s-0.052 s3.46 MiB3.48 MiB+ 19.34 KiB
/wp-admin/edit-tags.php?taxonomy=category0.169 s0.184 s+0.015 s3.48 MiB3.51 MiB+ 30.02 KiB
/wp-admin/post-new.php?post_type=page0.537 s0.544 s+0.007 s5.92 MiB5.95 MiB+ 28.78 KiB
/wp-admin/options-discussion.php0.270 s0.207 s-0.063 s3.48 MiB3.48 MiB+ 7.65 KiB
/wp-admin/edit-comments.php0.189 s0.177 s-0.012 s3.5 MiB3.5 MiB+ 7.15 KiB
/0.282 s0.193 s-0.089 s3.41 MiB3.45 MiB+ 44.09 KiB
Average 0.325 s0.285 s-0.040 s3.92 MiB3.94 MiB+ 21.61 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
CSS
Language % Lines of code Comment lines Files
PHP88.6%878374
CSS11.4%11301
Total 991 37 5

PHP Code Analysis | More results »

Lines of code 469
Total complexity 118
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function hefo_the_content()
Classes 0
Methods 0
Functions 25

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Options wp_options 1

Meta Boxes

{
    "post": {
        "hefo": {
            "title": "Head and Footer",
            "context": "advanced"
        }
    },
    "page": {
        "hefo": {
            "title": "Head and Footer",
            "context": "advanced"
        }
    }
}

PHP Error Log 16 lines

[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_1" in /wp-content/plugins/header-footer/admin/controls.php on line 157
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_1" in /wp-content/plugins/header-footer/admin/controls.php on line 160
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_1" in /wp-content/plugins/header-footer/admin/controls.php on line 163
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_2" in /wp-content/plugins/header-footer/admin/controls.php on line 157
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_2" in /wp-content/plugins/header-footer/admin/controls.php on line 160
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_2" in /wp-content/plugins/header-footer/admin/controls.php on line 163
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_3" in /wp-content/plugins/header-footer/admin/controls.php on line 157
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_3" in /wp-content/plugins/header-footer/admin/controls.php on line 160
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_3" in /wp-content/plugins/header-footer/admin/controls.php on line 163
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_4" in /wp-content/plugins/header-footer/admin/controls.php on line 157
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_4" in /wp-content/plugins/header-footer/admin/controls.php on line 160
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_4" in /wp-content/plugins/header-footer/admin/controls.php on line 163
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_5" in /wp-content/plugins/header-footer/admin/controls.php on line 157
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_5" in /wp-content/plugins/header-footer/admin/controls.php on line 160
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "inner_alt_5" in /wp-content/plugins/header-footer/admin/controls.php on line 163
[11-Feb-2025 18:00:24 UTC] PHP Warning:  Undefined array key "mobile_user_agents_parsed" in /wp-content/plugins/header-footer/admin/options.php on line 455
See also: All tests for this plugin, How to Hide Head, Footer and Post Injections Admin Menus and Meta Boxes