Add Code to Head 1.17

Does Add Code to Head work with WordPress 6.9 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: 5.38 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.9
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=70adcac8fd
Aspect after-activation
HTTP status 200
Load time 0.299 s
Memory usage 3.74 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.239 s
Memory usage 3.73 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.169 s
Memory usage 4.1 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.922 s0.787 s-0.135 s3.78 MiB3.79 MiB+ 10.08 KiB
/wp-admin/edit.php0.527 s0.378 s-0.149 s3.78 MiB3.79 MiB+ 8.51 KiB
/wp-admin/post-new.php0.793 s1.226 s+0.433 s6.31 MiB6.32 MiB+ 13.7 KiB
/wp-admin/upload.php0.463 s0.424 s-0.039 s3.74 MiB3.73 MiB- 8.9 KiB
/wp-admin/options-writing.php0.350 s0.294 s-0.056 s3.71 MiB3.71 MiB- 464 bytes
/wp-admin/media-new.php0.536 s0.282 s-0.254 s3.7 MiB3.71 MiB+ 8.49 KiB
/wp-admin/edit-tags.php?taxonomy=category0.303 s0.434 s+0.131 s3.71 MiB3.73 MiB+ 19.16 KiB
/wp-admin/post-new.php?post_type=page1.296 s0.745 s-0.551 s6.29 MiB6.31 MiB+ 12.87 KiB
/wp-admin/options-discussion.php0.538 s0.755 s+0.217 s3.71 MiB3.71 MiB- 3.2 KiB
/wp-admin/edit-comments.php0.335 s0.426 s+0.091 s3.73 MiB3.73 MiB- 3.7 KiB
/0.288 s0.214 s-0.074 s4.1 MiB4.1 MiB+ 2.57 KiB
Average 0.577 s0.542 s-0.035 s4.23 MiB4.24 MiB+ 5.38 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

[04-Dec-2025 14:24:42 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
[04-Dec-2025 14:24:43 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
[04-Dec-2025 14:24:53 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