Head, Footer and Post Injections 3.2.7

Does "Head, Footer and Post Injections" work with WordPress 6.5.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: 15.22 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.5.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=8630169299
Aspect after-activation
HTTP status 200
Load time 0.273 s
Memory usage 3.4 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.872 s
Memory usage 3.54 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.205 s
Memory usage 3.41 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.639 s
Memory usage 5.62 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.628 s
Memory usage 5.61 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.396 s0.301 s-0.095 s3.44 MiB3.46 MiB+ 24.52 KiB
/wp-admin/edit.php0.285 s0.200 s-0.085 s3.46 MiB3.48 MiB+ 24.52 KiB
/wp-admin/post-new.php0.937 s0.629 s-0.308 s5.59 MiB5.62 MiB+ 33.2 KiB
/wp-admin/upload.php0.631 s0.440 s-0.191 s3.38 MiB3.39 MiB+ 7.16 KiB
/wp-admin/options-writing.php0.215 s0.207 s-0.008 s3.37 MiB3.37 MiB- 904 bytes
/wp-admin/media-new.php0.310 s0.251 s-0.059 s3.35 MiB3.37 MiB+ 19.34 KiB
/wp-admin/edit-tags.php?taxonomy=category0.195 s0.215 s+0.020 s3.37 MiB3.39 MiB+ 24.52 KiB
/wp-admin/post-new.php?post_type=page0.574 s0.600 s+0.026 s5.59 MiB5.61 MiB+ 28.78 KiB
/wp-admin/options-discussion.php0.289 s0.403 s+0.114 s3.36 MiB3.37 MiB+ 7.65 KiB
/wp-admin/edit-comments.php0.476 s0.275 s-0.201 s3.39 MiB3.4 MiB+ 7.15 KiB
/0.370 s0.239 s-0.131 s3.42 MiB3.41 MiB- 8.53 KiB
Average 0.425 s0.342 s-0.083 s3.79 MiB3.81 MiB+ 15.22 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

[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_1" in /wp-content/plugins/header-footer/admin/controls.php on line 157
[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_1" in /wp-content/plugins/header-footer/admin/controls.php on line 160
[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_1" in /wp-content/plugins/header-footer/admin/controls.php on line 163
[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_2" in /wp-content/plugins/header-footer/admin/controls.php on line 157
[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_2" in /wp-content/plugins/header-footer/admin/controls.php on line 160
[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_2" in /wp-content/plugins/header-footer/admin/controls.php on line 163
[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_3" in /wp-content/plugins/header-footer/admin/controls.php on line 157
[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_3" in /wp-content/plugins/header-footer/admin/controls.php on line 160
[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_3" in /wp-content/plugins/header-footer/admin/controls.php on line 163
[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_4" in /wp-content/plugins/header-footer/admin/controls.php on line 157
[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_4" in /wp-content/plugins/header-footer/admin/controls.php on line 160
[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_4" in /wp-content/plugins/header-footer/admin/controls.php on line 163
[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_5" in /wp-content/plugins/header-footer/admin/controls.php on line 157
[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_5" in /wp-content/plugins/header-footer/admin/controls.php on line 160
[10-Apr-2024 00:36:17 UTC] PHP Warning:  Undefined array key "inner_alt_5" in /wp-content/plugins/header-footer/admin/controls.php on line 163
[10-Apr-2024 00:36:17 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