Head, Footer and Post Injections 3.3.2

Does "Head, Footer and Post Injections" work with WordPress 6.8.1 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.1 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.8.1
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=62cb1f4ba3
Aspect after-activation
HTTP status 200
Load time 0.350 s
Memory usage 3.55 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 1.001 s
Memory usage 3.61 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.262 s
Memory usage 3.48 MiB
JS errors None
Resource errors None

Add Post ‹ Test site — WordPress

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

Add Page ‹ Test site — WordPress

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

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.503 s0.396 s-0.107 s3.51 MiB3.53 MiB+ 24.77 KiB
/wp-admin/edit.php0.295 s0.256 s-0.039 s3.57 MiB3.6 MiB+ 24.8 KiB
/wp-admin/post-new.php1.236 s0.780 s-0.456 s6.06 MiB6.09 MiB+ 29.23 KiB
/wp-admin/upload.php0.852 s0.400 s-0.452 s3.52 MiB3.53 MiB+ 7.71 KiB
/wp-admin/options-writing.php0.323 s0.410 s+0.087 s3.5 MiB3.51 MiB+ 11.39 KiB
/wp-admin/media-new.php0.402 s0.339 s-0.063 s3.49 MiB3.51 MiB+ 19.59 KiB
/wp-admin/edit-tags.php?taxonomy=category0.230 s0.251 s+0.021 s3.5 MiB3.53 MiB+ 30.26 KiB
/wp-admin/post-new.php?post_type=page0.741 s0.731 s-0.010 s6.05 MiB6.07 MiB+ 24.75 KiB
/wp-admin/options-discussion.php0.326 s0.338 s+0.012 s3.5 MiB3.51 MiB+ 7.89 KiB
/wp-admin/edit-comments.php0.240 s0.244 s+0.004 s3.52 MiB3.53 MiB+ 7.39 KiB
/0.383 s0.231 s-0.152 s3.43 MiB3.48 MiB+ 44.34 KiB
Average 0.503 s0.398 s-0.105 s3.97 MiB3.99 MiB+ 21.1 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.9%903374
CSS11.1%11301
Total 1,016 37 5

PHP Code Analysis | More results »

Lines of code 481
Total complexity 121
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

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