Header and Footer Scripts 2.2.2

Does Header and Footer Scripts work with WordPress 6.8.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

Memory usage: 42.66 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 200,000+
WordPress.org page https://wordpress.org/plugins/header-and-footer-scripts/
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-and-footer-scripts%2Fshfs.php&plugin_status=all&paged=1&s&_wpnonce=8dd227a79c
Aspect after-activation
HTTP status 200
Load time 0.253 s
Memory usage 3.57 MiB
JS errors None
Resource errors None

Settings → Header and Footer Scripts

Page screenshot: Settings → Header and Footer Scripts
URL /wp-admin/options-general.php?page=header-and-footer-scripts%2Fshfs.php
Requested URL /wp-admin/options-general.php?page=header-and-footer-scripts/shfs.php
Aspect menu-item
HTTP status 200
Load time 0.170 s
Memory usage 3.56 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.204 s
Memory usage 3.44 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.789 s
Memory usage 6.12 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.618 s
Memory usage 6.1 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.562 s0.275 s-0.287 s3.51 MiB3.56 MiB+ 53.11 KiB
/wp-admin/edit.php0.200 s0.194 s-0.006 s3.57 MiB3.62 MiB+ 52.88 KiB
/wp-admin/post-new.php0.776 s0.643 s-0.133 s6.06 MiB6.12 MiB+ 54.75 KiB
/wp-admin/upload.php0.612 s0.632 s+0.020 s3.52 MiB3.56 MiB+ 35.79 KiB
/wp-admin/options-writing.php0.221 s0.267 s+0.046 s3.5 MiB3.54 MiB+ 39.47 KiB
/wp-admin/media-new.php0.276 s0.249 s-0.027 s3.49 MiB3.54 MiB+ 47.66 KiB
/wp-admin/edit-tags.php?taxonomy=category0.264 s0.194 s-0.070 s3.5 MiB3.56 MiB+ 58.34 KiB
/wp-admin/post-new.php?post_type=page0.598 s0.576 s-0.022 s6.05 MiB6.1 MiB+ 50.27 KiB
/wp-admin/options-discussion.php0.446 s0.241 s-0.205 s3.5 MiB3.54 MiB+ 35.97 KiB
/wp-admin/edit-comments.php0.393 s0.201 s-0.192 s3.52 MiB3.56 MiB+ 35.47 KiB
/0.332 s0.201 s-0.131 s3.43 MiB3.44 MiB+ 5.58 KiB
Average 0.425 s0.334 s-0.092 s3.97 MiB4.01 MiB+ 42.66 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
Language % Lines of code Comment lines Files
PHP100.0%172604
Total 172 60 4

PHP Code Analysis | More results »

Lines of code 99
Total complexity 33
Median class complexity 16.0
Median method complexity 1.0
Most complex class HeaderAndFooterScripts
Most complex function shfs_post_meta_save()
Classes 1
Methods 7
Functions 3

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.

Meta Boxes

{
    "post": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "page": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "attachment": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "revision": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "nav_menu_item": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "custom_css": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "customize_changeset": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "oembed_cache": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "user_request": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "wp_block": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "wp_template": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "wp_template_part": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "wp_global_styles": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "wp_navigation": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "wp_font_family": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    },
    "wp_font_face": {
        "shfs_all_post_meta": {
            "title": "Insert Script to <head>",
            "context": "normal"
        }
    }
}

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide Header and Footer Scripts Admin Menus and Meta Boxes