Ad Inserter 2.7.20

Does Ad Inserter work with WordPress 6.0.3 and PHP 7.4.8? A smoke test was performed on .

Summary

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

Memory usage: 2.29 MiB
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.0.3
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 300,000+
WordPress.org page https://wordpress.org/plugins/ad-inserter/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 4

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=ad-inserter%2Fad-inserter.php&plugin_status=all&paged=1&s&_wpnonce=2d2319c0b8
Aspect after-activation
HTTP status 200
Load time 0.466 s
Memory usage 5.98 MiB
JS errors None
Resource errors None

Settings → Ad Inserter

Page screenshot: Settings → Ad Inserter
URL /wp-admin/options-general.php?page=ad-inserter.php
Aspect menu-item
HTTP status 200
Load time 1.389 s
Memory usage 6.35 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.448 s
Memory usage 5.85 MiB
JS errors None
Resource errors None

Widgets ‹ Test site — WordPress

Page screenshot: Widgets ‹ Test site — WordPress
URL /wp-admin/widgets.php
Aspect new-sidebar-widgets
HTTP status 200
Load time 1.465 s
Memory usage 7.8 MiB
JS errors
External errors: The following JavaScript errors were probably triggered by WordPress itself, or by compatibility issues in the test runner. They are not related to the plugin.
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetHeight')\n    at t (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10419)\n    at IntersectionObserver.n.threshold (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10591)",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetHeight')\n    at t (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10419)\n    at IntersectionObserver.n.threshold (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10591)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.281 s0.412 s+0.131 s3.73 MiB6 MiB+ 2.27 MiB
/wp-admin/edit.php0.175 s0.210 s+0.035 s3.76 MiB6.11 MiB+ 2.34 MiB
/wp-admin/post-new.php0.670 s0.863 s+0.193 s5.55 MiB7.83 MiB+ 2.28 MiB
/wp-admin/upload.php0.522 s0.341 s-0.181 s3.69 MiB5.96 MiB+ 2.27 MiB
/wp-admin/options-writing.php0.137 s0.167 s+0.030 s3.62 MiB5.94 MiB+ 2.32 MiB
/wp-admin/media-new.php0.373 s0.222 s-0.151 s3.67 MiB5.94 MiB+ 2.27 MiB
/wp-admin/edit-tags.php?taxonomy=category0.215 s0.206 s-0.009 s3.69 MiB5.97 MiB+ 2.27 MiB
/wp-admin/post-new.php?post_type=page0.539 s0.803 s+0.264 s5.55 MiB7.83 MiB+ 2.28 MiB
/wp-admin/options-discussion.php0.184 s0.324 s+0.140 s3.6 MiB5.94 MiB+ 2.34 MiB
/wp-admin/edit-comments.php0.206 s0.224 s+0.018 s3.7 MiB5.97 MiB+ 2.27 MiB
/0.632 s0.234 s-0.398 s3.62 MiB5.85 MiB+ 2.23 MiB
Average 0.358 s0.364 s+0.007 s4.02 MiB6.3 MiB+ 2.29 MiB

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
PO File
JavaScript
Language % Lines of code Comment lines Files
PHP50.7%41,3208,59945
PO File29.1%23,71010,62911
JavaScript16.0%13,0791,61197
CSS2.4%1,945407
Markdown1.8%1,44107
HTML0.0%101
Total 81,496 20,879 168

PHP Code Analysis | More results »

Lines of code 42,236
Total complexity 12,188
Median class complexity 4.0
Median method complexity 2.0
Most complex class ai_CodeBlock
Most complex function generate_settings_form()
Classes 116
Methods 1,272
Functions 338

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.

Options wp_options 3

Sidebar Widgets 1

ID Name
ai_widgetAd Inserter

PHP Error Log 9 lines

[18-Oct-2022 00:31:52 UTC] PHP Notice:  Undefined offset: 81 in /wp-content/plugins/ad-inserter/ad-inserter.php on line 2138
[18-Oct-2022 00:31:52 UTC] PHP Notice:  Undefined offset: 81 in /wp-content/plugins/ad-inserter/ad-inserter.php on line 2138
[18-Oct-2022 00:31:52 UTC] PHP Notice:  Undefined offset: 81 in /wp-content/plugins/ad-inserter/ad-inserter.php on line 2138
[18-Oct-2022 00:31:52 UTC] PHP Notice:  Undefined offset: 81 in /wp-content/plugins/ad-inserter/ad-inserter.php on line 2138
[18-Oct-2022 00:31:52 UTC] PHP Notice:  Undefined offset: 81 in /wp-content/plugins/ad-inserter/ad-inserter.php on line 2138
[18-Oct-2022 00:31:52 UTC] PHP Notice:  Undefined offset: 81 in /wp-content/plugins/ad-inserter/ad-inserter.php on line 2138
[18-Oct-2022 00:31:52 UTC] PHP Notice:  Undefined offset: 81 in /wp-content/plugins/ad-inserter/ad-inserter.php on line 2138
[18-Oct-2022 00:31:52 UTC] PHP Notice:  Undefined offset: 81 in /wp-content/plugins/ad-inserter/ad-inserter.php on line 2138
[18-Oct-2022 00:31:53 UTC] PHP Notice:  Undefined offset: 81 in /wp-content/plugins/ad-inserter/ad-inserter.php on line 2138
See also: All tests for this plugin, How to Hide the "Ad Inserter" Admin Menu