Add Code to Head 1.15

Does Add Code to Head work with WordPress 5.8.1 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: 12.11 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.1
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=011ca695ba
Aspect after-activation
HTTP status 200
Load time 0.271 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.170 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.302 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.376 s0.307 s-0.069 s3.08 MiB3.1 MiB+ 12.99 KiB
/wp-admin/edit.php0.258 s0.229 s-0.029 s3.11 MiB3.19 MiB+ 76.99 KiB
/wp-admin/post-new.php1.653 s1.510 s-0.143 s5.27 MiB5.28 MiB+ 17.18 KiB
/wp-admin/upload.php0.722 s0.533 s-0.189 s3.03 MiB3.04 MiB+ 11.86 KiB
/wp-admin/options-writing.php0.163 s0.147 s-0.016 s3.02 MiB3.02 MiB- 4.23 KiB
/wp-admin/media-new.php0.309 s0.211 s-0.098 s3.01 MiB3.02 MiB+ 12.03 KiB
/wp-admin/edit-tags.php?taxonomy=category0.343 s0.216 s-0.127 s3.04 MiB3.05 MiB+ 12.94 KiB
/wp-admin/post-new.php?post_type=page1.568 s1.168 s-0.400 s5.26 MiB5.27 MiB+ 12.77 KiB
/wp-admin/options-discussion.php0.387 s0.284 s-0.103 s3 MiB3.02 MiB+ 12.28 KiB
/wp-admin/edit-comments.php0.248 s0.238 s-0.010 s3.04 MiB3.05 MiB+ 11.84 KiB
/0.368 s0.292 s-0.076 s2.96 MiB2.91 MiB- 43.45 KiB
Average 0.581 s0.467 s-0.115 s3.44 MiB3.45 MiB+ 12.11 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

[10-Sep-2021 16:06:55 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
[10-Sep-2021 16:06:55 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
[10-Sep-2021 16:07:03 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