Ad Inserter 2.7.21

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

Summary

Errors
4PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 2.3 MiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.065 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.1
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=043d6fb76b
Aspect after-activation
HTTP status 200
Load time 0.470 s
Memory usage 5.82 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.150 s
Memory usage 6.18 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.507 s
Memory usage 5.71 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 2.905 s
Memory usage 7.74 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.267 s0.415 s+0.148 s3.55 MiB5.86 MiB+ 2.31 MiB
/wp-admin/edit.php0.169 s0.226 s+0.057 s3.58 MiB5.94 MiB+ 2.36 MiB
/wp-admin/post-new.php0.760 s0.915 s+0.155 s5.48 MiB7.77 MiB+ 2.29 MiB
/wp-admin/upload.php0.554 s0.355 s-0.199 s3.49 MiB5.8 MiB+ 2.31 MiB
/wp-admin/options-writing.php0.194 s0.180 s-0.014 s3.48 MiB5.77 MiB+ 2.29 MiB
/wp-admin/media-new.php0.297 s0.217 s-0.080 s3.47 MiB5.78 MiB+ 2.31 MiB
/wp-admin/edit-tags.php?taxonomy=category0.257 s0.204 s-0.053 s3.5 MiB5.81 MiB+ 2.3 MiB
/wp-admin/post-new.php?post_type=page0.600 s0.955 s+0.355 s5.47 MiB7.76 MiB+ 2.29 MiB
/wp-admin/options-discussion.php0.210 s0.419 s+0.209 s3.47 MiB5.78 MiB+ 2.31 MiB
/wp-admin/edit-comments.php0.202 s0.276 s+0.074 s3.5 MiB5.81 MiB+ 2.31 MiB
/0.261 s0.319 s+0.058 s3.47 MiB5.71 MiB+ 2.24 MiB
Average 0.343 s0.407 s+0.065 s3.86 MiB6.16 MiB+ 2.3 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
PHP47.3%41,6378,63145
PO File27.6%24,30711,21711
JavaScript21.2%18,6523,568106
CSS2.2%1,945407
Markdown1.6%1,44107
HTML0.0%101
Total 87,983 23,456 177

PHP Code Analysis | More results »

Lines of code 42,546
Total complexity 12,297
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 340

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

User Metadata wp_usermeta 1

Sidebar Widgets 1

ID Name
ai_widgetAd Inserter

PHP Error Log 4 lines

[02-Nov-2022 03:13:11 UTC] PHP Deprecated:  The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /wp-content/plugins/ad-inserter/class.php on line 7077
[02-Nov-2022 03:13:11 UTC] PHP Deprecated:  The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /wp-content/plugins/ad-inserter/class.php on line 7139
[02-Nov-2022 03:13:11 UTC] PHP Deprecated:  The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /wp-content/plugins/ad-inserter/class.php on line 8135
[02-Nov-2022 03:13:11 UTC] PHP Deprecated:  The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /wp-content/plugins/ad-inserter/class.php on line 8197
See also: All tests for this plugin, How to Hide the "Ad Inserter" Admin Menu