Add Code to Head 1.17

Does Add Code to Head work with WordPress 6.8.2 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.2
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=58d8885b74
Aspect after-activation
HTTP status 200
Load time 0.298 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.147 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.215 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.335 s0.249 s-0.086 s3.51 MiB3.52 MiB+ 12.91 KiB
/wp-admin/edit.php0.203 s0.197 s-0.006 s3.57 MiB3.58 MiB+ 12.91 KiB
/wp-admin/post-new.php0.782 s0.632 s-0.150 s6.06 MiB6.08 MiB+ 16.54 KiB
/wp-admin/upload.php0.792 s0.476 s-0.316 s3.52 MiB3.52 MiB- 4.5 KiB
/wp-admin/options-writing.php0.231 s0.182 s-0.049 s3.5 MiB3.5 MiB- 520 bytes
/wp-admin/media-new.php0.337 s0.196 s-0.141 s3.49 MiB3.5 MiB+ 7.69 KiB
/wp-admin/edit-tags.php?taxonomy=category0.220 s0.186 s-0.034 s3.5 MiB3.52 MiB+ 18.36 KiB
/wp-admin/post-new.php?post_type=page0.607 s0.647 s+0.040 s6.05 MiB6.06 MiB+ 12.06 KiB
/wp-admin/options-discussion.php0.288 s0.222 s-0.066 s3.5 MiB3.5 MiB- 4.01 KiB
/wp-admin/edit-comments.php0.410 s0.179 s-0.231 s3.52 MiB3.52 MiB- 4.51 KiB
/0.334 s0.167 s-0.167 s3.43 MiB3.44 MiB+ 3.75 KiB
Average 0.413 s0.303 s-0.110 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

[17-Jul-2025 10:37:39 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
[17-Jul-2025 10:37:39 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
[17-Jul-2025 10:37:47 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