Add Code to Head 1.13

Does Add Code to Head work with WordPress 5.7.2 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: 11.6 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.7.2
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=82db81a620
Aspect after-activation
HTTP status 200
Load time 0.243 s
Memory usage 2.73 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.168 s
Memory usage 2.69 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.164 s
Memory usage 2.66 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.259 s0.257 s-0.002 s2.82 MiB2.84 MiB+ 16.99 KiB
/wp-admin/edit.php0.175 s0.196 s+0.021 s2.86 MiB2.88 MiB+ 16.99 KiB
/wp-admin/post-new.php1.045 s1.087 s+0.042 s5.02 MiB5.05 MiB+ 28.55 KiB
/wp-admin/upload.php0.480 s0.412 s-0.068 s2.7 MiB2.71 MiB+ 11.86 KiB
/wp-admin/options-writing.php0.159 s0.142 s-0.017 s2.71 MiB2.69 MiB- 20.23 KiB
/wp-admin/media-new.php0.233 s0.163 s-0.070 s2.67 MiB2.68 MiB+ 12.03 KiB
/wp-admin/edit-tags.php?taxonomy=category0.199 s0.198 s-0.001 s2.77 MiB2.78 MiB+ 12.94 KiB
/wp-admin/post-new.php?post_type=page1.124 s0.605 s-0.519 s5.01 MiB5.03 MiB+ 20.14 KiB
/wp-admin/options-discussion.php0.300 s0.301 s+0.001 s2.68 MiB2.69 MiB+ 12.28 KiB
/wp-admin/edit-comments.php0.246 s0.225 s-0.021 s2.78 MiB2.79 MiB+ 11.84 KiB
/0.298 s0.217 s-0.081 s2.65 MiB2.66 MiB+ 4.22 KiB
Average 0.411 s0.346 s-0.065 s3.15 MiB3.16 MiB+ 11.6 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
PHP59.2%87612
Markdown40.8%6001
Total 147 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

[14-May-2021 06:29: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 88
[14-May-2021 06:29: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
[14-May-2021 06:29:09 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