Add Code to Head 1.15

Does Add Code to Head work with WordPress 6.5.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: -197.82 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.5.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=ae2672257d
Aspect after-activation
HTTP status 200
Load time 0.257 s
Memory usage 3.39 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.152 s
Memory usage 3.37 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.183 s
Memory usage 3.36 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.384 s0.336 s-0.048 s3.44 MiB3.45 MiB+ 12.69 KiB
/wp-admin/edit.php0.214 s0.195 s-0.019 s3.46 MiB3.47 MiB+ 12.69 KiB
/wp-admin/post-new.php0.950 s0.617 s-0.333 s5.59 MiB5.61 MiB+ 16.26 KiB
/wp-admin/upload.php0.613 s0.481 s-0.132 s3.38 MiB3.38 MiB- 4.73 KiB
/wp-admin/options-writing.php0.229 s0.206 s-0.023 s3.37 MiB3.36 MiB- 12.82 KiB
/wp-admin/media-new.php0.298 s0.231 s-0.067 s3.35 MiB3.36 MiB+ 7.47 KiB
/wp-admin/edit-tags.php?taxonomy=category0.203 s0.215 s+0.012 s3.37 MiB3.38 MiB+ 12.64 KiB
/wp-admin/post-new.php?post_type=page0.566 s0.602 s+0.036 s5.59 MiB5.6 MiB+ 11.84 KiB
/wp-admin/options-discussion.php0.336 s0.264 s-0.072 s3.36 MiB3.35 MiB- 4.29 KiB
/wp-admin/edit-comments.php0.258 s0.483 s+0.225 s3.39 MiB3.39 MiB- 4.73 KiB
/0.319 s0.212 s-0.107 s3.42 MiB3.37 MiB- 49.15 KiB
Average 0.397 s0.349 s-0.048 s3.79 MiB3.79 MiB- 197.82 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

[11-Apr-2024 15:06:07 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
[11-Apr-2024 15:06:08 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
[11-Apr-2024 15:06:18 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