Add Code to Head 1.17

Does Add Code to Head work with WordPress 6.8.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
3PHP warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 6.43 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 3,000+
WordPress.org page https://wordpress.org/plugins/add-code-to-head/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

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=add-code-to-head%2Fadd-code-to-head.php&plugin_status=all&paged=1&s&_wpnonce=27b144a0b9
Aspect after-activation
HTTP status 200
Load time 0.243 s
Memory usage 3.53 MiB
JS errors None
Resource errors None

Settings → Add Code to Head

Page screenshot: Settings → Add Code to Head
URL /wp-admin/options-general.php?page=acth_plugin
Aspect menu-item
HTTP status 200
Load time 0.123 s
Memory usage 3.52 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.172 s
Memory usage 3.44 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.306 s0.226 s-0.080 s3.51 MiB3.52 MiB+ 12.91 KiB
/wp-admin/edit.php0.170 s0.172 s+0.002 s3.57 MiB3.58 MiB+ 12.91 KiB
/wp-admin/post-new.php0.677 s0.557 s-0.120 s6.06 MiB6.08 MiB+ 16.54 KiB
/wp-admin/upload.php0.475 s0.461 s-0.014 s3.52 MiB3.52 MiB- 4.5 KiB
/wp-admin/options-writing.php0.185 s0.158 s-0.027 s3.5 MiB3.5 MiB- 520 bytes
/wp-admin/media-new.php0.260 s0.200 s-0.060 s3.49 MiB3.5 MiB+ 7.69 KiB
/wp-admin/edit-tags.php?taxonomy=category0.154 s0.298 s+0.144 s3.5 MiB3.52 MiB+ 18.36 KiB
/wp-admin/post-new.php?post_type=page0.556 s0.611 s+0.055 s6.05 MiB6.06 MiB+ 12.06 KiB
/wp-admin/options-discussion.php0.226 s0.217 s-0.009 s3.5 MiB3.5 MiB- 4.01 KiB
/wp-admin/edit-comments.php0.175 s0.189 s+0.014 s3.52 MiB3.52 MiB- 4.51 KiB
/0.263 s0.176 s-0.087 s3.43 MiB3.44 MiB+ 3.75 KiB
Average 0.313 s0.297 s-0.017 s3.97 MiB3.98 MiB+ 6.43 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
Markdown
Language % Lines of code Comment lines Files
PHP55.1%87612
Markdown44.9%7101
Total 158 61 3

PHP Code Analysis | More results »

Lines of code 65
Total complexity 9
Median class complexity 9.0
Median method complexity 1.0
Most complex class AddCodeToHead
Most complex function AddCodeToHead::plugin_options_page()
Classes 1
Methods 8
Functions 0

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.

No new entries found.

PHP Error Log 3 lines

[02-May-2025 05:12:41 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/add-code-to-head/add-code-to-head.php on line 88
[02-May-2025 05:12:41 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/add-code-to-head/add-code-to-head.php on line 108
[02-May-2025 05:12:48 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/add-code-to-head/add-code-to-head.php on line 108
See also: All tests for this plugin, How to Hide the "Add Code to Head" Admin Menu