Add Code to Head 1.15

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

Summary

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

Memory usage: 16.44 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 version5.8
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
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=100b50b94d
Aspect after-activation
HTTP status 200
Load time 0.216 s
Memory usage 3.05 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.141 s
Memory usage 3.01 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.222 s
Memory usage 2.91 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.288 s0.217 s-0.071 s3.08 MiB3.1 MiB+ 12.99 KiB
/wp-admin/edit.php0.176 s0.169 s-0.007 s3.11 MiB3.19 MiB+ 76.99 KiB
/wp-admin/post-new.php1.028 s0.746 s-0.282 s5.27 MiB5.28 MiB+ 17.18 KiB
/wp-admin/upload.php0.491 s0.274 s-0.217 s3.03 MiB3.04 MiB+ 11.86 KiB
/wp-admin/options-writing.php0.143 s0.254 s+0.111 s3.02 MiB3.02 MiB- 4.23 KiB
/wp-admin/media-new.php0.249 s0.213 s-0.036 s3.01 MiB3.02 MiB+ 12.03 KiB
/wp-admin/edit-tags.php?taxonomy=category0.150 s0.169 s+0.019 s3.04 MiB3.05 MiB+ 12.94 KiB
/wp-admin/post-new.php?post_type=page1.115 s0.613 s-0.502 s5.26 MiB5.27 MiB+ 12.77 KiB
/wp-admin/options-discussion.php0.279 s0.215 s-0.064 s3 MiB3.02 MiB+ 12.28 KiB
/wp-admin/edit-comments.php0.190 s0.188 s-0.002 s3.04 MiB3.05 MiB+ 11.84 KiB
/0.376 s0.224 s-0.152 s2.91 MiB2.91 MiB+ 4.22 KiB
Average 0.408 s0.298 s-0.109 s3.43 MiB3.45 MiB+ 16.44 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
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 0.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

[22-Jul-2021 06:10:56 UTC] PHP Notice:  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
[22-Jul-2021 06:10:56 UTC] PHP Notice:  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
[22-Jul-2021 06:11:02 UTC] PHP Notice:  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