Head, Footer and Post Injections 3.2.5

Does "Head, Footer and Post Injections" work with WordPress 6.2.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: 18.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.2.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=e1f17ad03d
Aspect after-activation
HTTP status 200
Load time 0.240 s
Memory usage 3.03 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.879 s
Memory usage 3.17 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.251 s
Memory usage 3.03 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.627 s
Memory usage 5.05 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.597 s
Memory usage 5.04 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.409 s0.247 s-0.162 s3.07 MiB3.09 MiB+ 21.61 KiB
/wp-admin/edit.php0.189 s0.182 s-0.007 s3.1 MiB3.12 MiB+ 21.61 KiB
/wp-admin/post-new.php0.760 s0.966 s+0.206 s5.02 MiB5.05 MiB+ 30.28 KiB
/wp-admin/upload.php0.630 s0.314 s-0.316 s3.02 MiB3.02 MiB+ 4.24 KiB
/wp-admin/options-writing.php0.179 s0.139 s-0.040 s3.01 MiB3 MiB- 9 KiB
/wp-admin/media-new.php0.288 s0.200 s-0.088 s2.99 MiB3.01 MiB+ 16.43 KiB
/wp-admin/edit-tags.php?taxonomy=category0.193 s0.179 s-0.014 s3.01 MiB3.03 MiB+ 21.6 KiB
/wp-admin/post-new.php?post_type=page0.611 s0.787 s+0.176 s5.01 MiB5.04 MiB+ 25.87 KiB
/wp-admin/options-discussion.php0.212 s0.239 s+0.027 s3 MiB3 MiB+ 4.73 KiB
/wp-admin/edit-comments.php0.232 s0.206 s-0.026 s3.03 MiB3.03 MiB+ 4.23 KiB
/0.313 s0.223 s-0.090 s2.97 MiB3.03 MiB+ 57.49 KiB
Average 0.365 s0.335 s-0.030 s3.38 MiB3.4 MiB+ 18.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
PO File
CSS
Language % Lines of code Comment lines Files
PHP68.3%799334
PO File22.0%2571602
CSS9.7%11301
Total 1,169 193 7

PHP Code Analysis | More results »

Lines of code 435
Total complexity 107
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function hefo_the_content()
Classes 0
Methods 0
Functions 23

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

[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_1" in /wp-content/plugins/header-footer/admin/controls.php on line 132
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_1" in /wp-content/plugins/header-footer/admin/controls.php on line 135
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_1" in /wp-content/plugins/header-footer/admin/controls.php on line 138
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_2" in /wp-content/plugins/header-footer/admin/controls.php on line 132
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_2" in /wp-content/plugins/header-footer/admin/controls.php on line 135
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_2" in /wp-content/plugins/header-footer/admin/controls.php on line 138
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_3" in /wp-content/plugins/header-footer/admin/controls.php on line 132
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_3" in /wp-content/plugins/header-footer/admin/controls.php on line 135
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_3" in /wp-content/plugins/header-footer/admin/controls.php on line 138
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_4" in /wp-content/plugins/header-footer/admin/controls.php on line 132
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_4" in /wp-content/plugins/header-footer/admin/controls.php on line 135
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_4" in /wp-content/plugins/header-footer/admin/controls.php on line 138
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_5" in /wp-content/plugins/header-footer/admin/controls.php on line 132
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_5" in /wp-content/plugins/header-footer/admin/controls.php on line 135
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "inner_alt_5" in /wp-content/plugins/header-footer/admin/controls.php on line 138
[20-May-2023 08:17:25 UTC] PHP Warning:  Undefined array key "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