DH - Anti AdBlocker 40

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

Summary

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

Memory usage: 8.59 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=fe20a341ee
Aspect after-activation
HTTP status 200
Load time 0.244 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.915 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.255 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.302 s0.231 s-0.071 s3.05 MiB3.06 MiB+ 15.95 KiB
/wp-admin/edit.php0.203 s0.176 s-0.027 s3.07 MiB3.09 MiB+ 15.95 KiB
/wp-admin/post-new.php0.810 s0.928 s+0.118 s4.97 MiB4.99 MiB+ 20.32 KiB
/wp-admin/upload.php0.522 s0.243 s-0.279 s2.99 MiB2.99 MiB- 1.45 KiB
/wp-admin/options-writing.php0.148 s0.140 s-0.008 s2.99 MiB2.97 MiB- 14.8 KiB
/wp-admin/media-new.php0.267 s0.243 s-0.024 s2.97 MiB2.98 MiB+ 10.73 KiB
/wp-admin/edit-tags.php?taxonomy=category0.177 s0.172 s-0.005 s2.98 MiB3 MiB+ 15.91 KiB
/wp-admin/post-new.php?post_type=page0.610 s0.803 s+0.193 s4.96 MiB4.98 MiB+ 15.91 KiB
/wp-admin/options-discussion.php0.203 s0.222 s+0.019 s2.97 MiB2.97 MiB- 984 bytes
/wp-admin/edit-comments.php0.192 s0.198 s+0.006 s3 MiB3 MiB- 1.46 KiB
/0.275 s0.236 s-0.039 s2.94 MiB2.96 MiB+ 18.35 KiB
Average 0.337 s0.327 s-0.011 s3.35 MiB3.36 MiB+ 8.59 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.

CSS
JavaScript
Language % Lines of code Comment lines Files
CSS49.1%27,2554,28851
JavaScript43.3%23,99997328
SVG5.2%2,880123
PHP2.0%1,08960812
PO File0.4%2361262
Total 55,459 6,007 96

PHP Code Analysis | More results »

Lines of code 1,119
Total complexity 105
Median class complexity 4.0
Median method complexity 1.0
Most complex class DH_Anti_AdBlocker_Admin
Most complex function dhadb_footer()
Classes 7
Methods 28
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.

Options wp_options 1

PHP Error Log 9 lines

[18-Jan-2023 06:37:34 UTC] PHP Warning:  Undefined variable $dir in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-activator.php on line 39
[18-Jan-2023 06:37:34 UTC] PHP Deprecated:  file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-activator.php on line 39
[18-Jan-2023 06:37:34 UTC] PHP Warning:  Undefined variable $dir in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-activator.php on line 39
[18-Jan-2023 06:37:34 UTC] PHP Deprecated:  is_dir(): Passing null to parameter #1 ($filename) of type string is deprecated in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-activator.php on line 39
[18-Jan-2023 06:37:36 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
[18-Jan-2023 06:37:36 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
[18-Jan-2023 06:37:36 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 531
[18-Jan-2023 06:37:37 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
[18-Jan-2023 06:37:45 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