Add Code to Head 1.15

Does Add Code to Head work with WordPress 6.7.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: -200 bytes
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.7.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=ed34ceba9c
Aspect after-activation
HTTP status 200
Load time 0.290 s
Memory usage 3.51 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.142 s
Memory usage 3.5 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.195 s
Memory usage 3.41 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.334 s0.302 s-0.032 s3.48 MiB3.49 MiB+ 12.81 KiB
/wp-admin/edit.php0.197 s0.181 s-0.016 s3.54 MiB3.56 MiB+ 12.81 KiB
/wp-admin/post-new.php0.776 s0.626 s-0.150 s5.93 MiB5.94 MiB+ 16.44 KiB
/wp-admin/upload.php0.558 s0.310 s-0.248 s3.5 MiB3.49 MiB- 4.59 KiB
/wp-admin/options-writing.php0.200 s0.188 s-0.012 s3.47 MiB3.47 MiB- 616 bytes
/wp-admin/media-new.php0.337 s0.402 s+0.065 s3.46 MiB3.47 MiB+ 7.59 KiB
/wp-admin/edit-tags.php?taxonomy=category0.191 s0.254 s+0.063 s3.48 MiB3.49 MiB+ 18.27 KiB
/wp-admin/post-new.php?post_type=page0.560 s0.603 s+0.043 s5.92 MiB5.93 MiB+ 11.97 KiB
/wp-admin/options-discussion.php0.269 s0.233 s-0.036 s3.48 MiB3.47 MiB- 4.1 KiB
/wp-admin/edit-comments.php0.196 s0.201 s+0.005 s3.5 MiB3.49 MiB- 4.6 KiB
/0.304 s0.204 s-0.100 s3.48 MiB3.41 MiB- 68.14 KiB
Average 0.357 s0.319 s-0.038 s3.93 MiB3.93 MiB- 200 bytes

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
PHP57.6%87612
Markdown42.4%6401
Total 151 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

[13-Feb-2025 07:43:28 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
[13-Feb-2025 07:43:29 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
[13-Feb-2025 07:43:36 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