Head, Footer and Post Injections 3.2.3

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

Summary

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

Memory usage: 19.7 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.0
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
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=131af4718f
Aspect after-activation
HTTP status 200
Load time 0.257 s
Memory usage 3.71 MiB
JS errors None
Resource errors None

Settings → Header and Footer

Page screenshot: Settings → Header 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.544 s
Memory usage 3.77 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.313 s
Memory usage 3.61 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.684 s
Memory usage 5.57 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.695 s
Memory usage 5.55 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.399 s0.273 s-0.126 s3.72 MiB3.74 MiB+ 21.41 KiB
/wp-admin/edit.php0.193 s0.214 s+0.021 s3.75 MiB3.77 MiB+ 21.41 KiB
/wp-admin/post-new.php0.788 s0.971 s+0.183 s5.53 MiB5.57 MiB+ 33.55 KiB
/wp-admin/upload.php0.444 s0.374 s-0.070 s3.68 MiB3.7 MiB+ 20.28 KiB
/wp-admin/options-writing.php0.284 s0.198 s-0.086 s3.61 MiB3.61 MiB+ 608 bytes
/wp-admin/media-new.php0.305 s0.199 s-0.106 s3.66 MiB3.68 MiB+ 20.45 KiB
/wp-admin/edit-tags.php?taxonomy=category0.190 s0.191 s+0.001 s3.68 MiB3.71 MiB+ 21.36 KiB
/wp-admin/post-new.php?post_type=page0.737 s0.745 s+0.008 s5.53 MiB5.55 MiB+ 25.13 KiB
/wp-admin/options-discussion.php0.316 s0.303 s-0.013 s3.59 MiB3.61 MiB+ 20.77 KiB
/wp-admin/edit-comments.php0.220 s0.197 s-0.023 s3.69 MiB3.71 MiB+ 20.27 KiB
/0.274 s0.293 s+0.019 s3.6 MiB3.61 MiB+ 11.42 KiB
Average 0.377 s0.360 s-0.017 s4 MiB4.02 MiB+ 19.7 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
PO File
CSS
Language % Lines of code Comment lines Files
PHP69.4%841324
PO File21.2%2571602
CSS9.3%11301
Total 1,211 192 7

PHP Code Analysis | More results »

Lines of code 475
Total complexity 122
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function hefo_the_content()
Classes 0
Methods 0
Functions 26

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

[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_1 in /wp-content/plugins/header-footer/admin/controls.php on line 180
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_1 in /wp-content/plugins/header-footer/admin/controls.php on line 183
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_1 in /wp-content/plugins/header-footer/admin/controls.php on line 186
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_2 in /wp-content/plugins/header-footer/admin/controls.php on line 180
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_2 in /wp-content/plugins/header-footer/admin/controls.php on line 183
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_2 in /wp-content/plugins/header-footer/admin/controls.php on line 186
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_3 in /wp-content/plugins/header-footer/admin/controls.php on line 180
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_3 in /wp-content/plugins/header-footer/admin/controls.php on line 183
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_3 in /wp-content/plugins/header-footer/admin/controls.php on line 186
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_4 in /wp-content/plugins/header-footer/admin/controls.php on line 180
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_4 in /wp-content/plugins/header-footer/admin/controls.php on line 183
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_4 in /wp-content/plugins/header-footer/admin/controls.php on line 186
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_5 in /wp-content/plugins/header-footer/admin/controls.php on line 180
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_5 in /wp-content/plugins/header-footer/admin/controls.php on line 183
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: inner_alt_5 in /wp-content/plugins/header-footer/admin/controls.php on line 186
[25-May-2022 08:13:28 UTC] PHP Notice:  Undefined index: mobile_user_agents_parsed in /wp-content/plugins/header-footer/admin/options.php on line 394
See also: All tests for this plugin, How to Hide Head, Footer and Post Injections Admin Menus and Meta Boxes