DH - Anti AdBlocker 39

Does DH - Anti AdBlocker work with WordPress 6.1.1 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 7.17 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 version6.1.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 400+
WordPress.org page https://wordpress.org/plugins/dh-anti-adblocker/
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=dh-anti-adblocker%2Fdh-anti-adblocker.php&plugin_status=all&paged=1&s&_wpnonce=7d32d1568d
Aspect after-activation
HTTP status 200
Load time 0.227 s
Memory usage 3.01 MiB
JS errors None
Resource errors None

Settings → DH – Anti AdBlocker

Page screenshot: Settings → DH – Anti AdBlocker
URL /wp-admin/options-general.php?page=dh-anti-adblocker
Aspect menu-item
HTTP status 200
Load time 0.972 s
Memory usage 3.25 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.248 s
Memory usage 2.96 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.283 s0.297 s+0.014 s3.05 MiB3.06 MiB+ 14.84 KiB
/wp-admin/edit.php0.178 s0.179 s+0.001 s3.07 MiB3.09 MiB+ 14.84 KiB
/wp-admin/post-new.php0.827 s0.628 s-0.199 s4.97 MiB4.99 MiB+ 19.21 KiB
/wp-admin/upload.php0.778 s0.578 s-0.200 s2.99 MiB2.99 MiB- 2.57 KiB
/wp-admin/options-writing.php0.170 s0.160 s-0.010 s2.99 MiB2.97 MiB- 15.92 KiB
/wp-admin/media-new.php0.277 s0.198 s-0.079 s2.97 MiB2.98 MiB+ 9.62 KiB
/wp-admin/edit-tags.php?taxonomy=category0.182 s0.208 s+0.026 s2.98 MiB2.99 MiB+ 14.79 KiB
/wp-admin/post-new.php?post_type=page0.622 s0.625 s+0.003 s4.96 MiB4.97 MiB+ 14.79 KiB
/wp-admin/options-discussion.php0.202 s0.204 s+0.002 s2.97 MiB2.97 MiB- 2.08 KiB
/wp-admin/edit-comments.php0.211 s0.199 s-0.012 s3 MiB3 MiB- 2.58 KiB
/0.288 s0.243 s-0.045 s2.94 MiB2.96 MiB+ 13.97 KiB
Average 0.365 s0.320 s-0.045 s3.35 MiB3.36 MiB+ 7.17 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.

JavaScript
PHP
CSS
Language % Lines of code Comment lines Files
JavaScript53.0%1,8832584
PHP28.0%99460612
CSS12.8%453363
PO File6.2%2201202
Total 3,550 1,020 21

PHP Code Analysis | More results »

Lines of code 1,022
Total complexity 99
Median class complexity 4.0
Median method complexity 1.0
Most complex class DH_Anti_AdBlocker
Most complex function dhadb_footer()
Classes 7
Methods 27
Functions 10

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 7 lines

[25-Dec-2022 04:22:03 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/partials/dh-anti-adblocker-admin-display.php on line 210
[25-Dec-2022 04:22:03 UTC] PHP Deprecated:  preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/kses.php on line 1686
[25-Dec-2022 04:22:03 UTC] PHP Deprecated:  explode(): Passing null to parameter #2 ($string) of type string is deprecated in /wp-content/plugins/dh-anti-adblocker/admin/partials/dh-anti-adblocker-admin-display.php on line 476
[25-Dec-2022 04:22:03 UTC] PHP Deprecated:  explode(): Passing null to parameter #2 ($string) of type string is deprecated in /wp-content/plugins/dh-anti-adblocker/public/partials/dh-anti-adblocker-public-display.php on line 360
[25-Dec-2022 04:22:03 UTC] PHP Deprecated:  explode(): Passing null to parameter #2 ($string) of type string is deprecated in /wp-content/plugins/dh-anti-adblocker/public/partials/dh-anti-adblocker-public-display.php on line 360
[25-Dec-2022 04:22:04 UTC] PHP Deprecated:  explode(): Passing null to parameter #2 ($string) of type string is deprecated in /wp-content/plugins/dh-anti-adblocker/public/partials/dh-anti-adblocker-public-display.php on line 360
[25-Dec-2022 04:22:12 UTC] PHP Deprecated:  explode(): Passing null to parameter #2 ($string) of type string is deprecated in /wp-content/plugins/dh-anti-adblocker/public/partials/dh-anti-adblocker-public-display.php on line 360
See also: All tests for this plugin, How to Hide the "DH – Anti AdBlocker" Admin Menu