Head, Footer and Post Injections 3.2.4

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: 24.53 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=13a5ee1c4c
Aspect after-activation
HTTP status 200
Load time 0.263 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.709 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.254 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.643 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.666 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.348 s0.384 s+0.036 s3.72 MiB3.74 MiB+ 21.34 KiB
/wp-admin/edit.php0.189 s0.223 s+0.034 s3.75 MiB3.77 MiB+ 21.34 KiB
/wp-admin/post-new.php0.747 s0.972 s+0.225 s5.53 MiB5.57 MiB+ 33.47 KiB
/wp-admin/upload.php0.405 s0.348 s-0.057 s3.68 MiB3.7 MiB+ 20.2 KiB
/wp-admin/options-writing.php0.259 s0.197 s-0.062 s3.61 MiB3.61 MiB+ 528 bytes
/wp-admin/media-new.php0.277 s0.221 s-0.056 s3.66 MiB3.68 MiB+ 20.38 KiB
/wp-admin/edit-tags.php?taxonomy=category0.195 s0.204 s+0.009 s3.68 MiB3.71 MiB+ 21.28 KiB
/wp-admin/post-new.php?post_type=page0.701 s0.764 s+0.063 s5.53 MiB5.55 MiB+ 25.05 KiB
/wp-admin/options-discussion.php0.399 s0.334 s-0.065 s3.59 MiB3.61 MiB+ 20.69 KiB
/wp-admin/edit-comments.php0.207 s0.228 s+0.021 s3.69 MiB3.71 MiB+ 20.19 KiB
/0.281 s0.232 s-0.049 s3.55 MiB3.61 MiB+ 65.4 KiB
Average 0.364 s0.373 s+0.009 s4 MiB4.02 MiB+ 24.53 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.5%845334
PO File21.2%2571602
CSS9.3%11301
Total 1,215 193 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

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