DH - Anti AdBlocker 44.1

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

Summary

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

Memory usage: 14.97 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=2f555b2590
Aspect after-activation
HTTP status 200
Load time 0.243 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.833 s
Memory usage 3.39 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.325 s
Memory usage 2.97 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.266 s0.419 s+0.153 s3.05 MiB3.07 MiB+ 22.02 KiB
/wp-admin/edit.php0.177 s0.183 s+0.006 s3.07 MiB3.1 MiB+ 22.02 KiB
/wp-admin/post-new.php0.761 s0.925 s+0.164 s4.97 MiB4.99 MiB+ 26.38 KiB
/wp-admin/upload.php0.680 s0.286 s-0.394 s2.99 MiB3 MiB+ 5.35 KiB
/wp-admin/options-writing.php0.131 s0.135 s+0.004 s2.99 MiB2.98 MiB- 8 KiB
/wp-admin/media-new.php0.254 s0.186 s-0.068 s2.97 MiB2.98 MiB+ 17.54 KiB
/wp-admin/edit-tags.php?taxonomy=category0.155 s0.180 s+0.025 s2.98 MiB3 MiB+ 22.71 KiB
/wp-admin/post-new.php?post_type=page0.611 s0.615 s+0.004 s4.96 MiB4.98 MiB+ 21.97 KiB
/wp-admin/options-discussion.php0.195 s0.259 s+0.064 s2.98 MiB2.98 MiB+ 5.84 KiB
/wp-admin/edit-comments.php0.174 s0.202 s+0.028 s3 MiB3.01 MiB+ 4.6 KiB
/0.292 s0.232 s-0.060 s2.94 MiB2.97 MiB+ 24.27 KiB
Average 0.336 s0.329 s-0.007 s3.35 MiB3.37 MiB+ 14.97 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
CSS48.9%27,3774,29353
JavaScript42.9%24,01597328
SVG5.1%2,880123
PHP2.5%1,41871212
PO File0.5%2711672
Total 55,961 6,157 98

PHP Code Analysis | More results »

Lines of code 842
Total complexity 148
Median class complexity 5.0
Median method complexity 1.0
Most complex class DH_Anti_AdBlocker_Admin
Most complex function dhadb_header()
Classes 7
Methods 35
Functions 9

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

PHP Error Log 31 lines

[24-Jan-2023 15:18:14 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:15 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:16 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:16 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 324
[24-Jan-2023 15:18:16 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
[24-Jan-2023 15:18:16 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 650
[24-Jan-2023 15:18:17 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 461
[24-Jan-2023 15:18:18 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:19 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:19 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:21 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:22 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:22 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:22 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:22 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:24 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:24 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:25 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 461
[24-Jan-2023 15:18:25 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:25 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php on line 182
[24-Jan-2023 15:18:26 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-deactivator.php on line 37
[24-Jan-2023 15:18:26 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method DH_Anti_AdBlocker_Deactivator::deleteDir() in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-deactivator.php:47
Stack trace:
#0 /wp-content/plugins/dh-anti-adblocker/dh-anti-adblocker.php(74): DH_Anti_AdBlocker_Deactivator::deactivate()
#1 /wp-includes/class-wp-hook.php(308): deactivate_DH_Anti_AdBlocker()
#2 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#3 /wp-includes/plugin.php(517): WP_Hook->do_action()
#4 /wp-admin/includes/plugin.php(814): do_action()
#5 /wp-admin/plugins.php(209): deactivate_plugins()
#6 {main}
  thrown in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-deactivator.php on line 47
See also: All tests for this plugin, How to Hide the "DH – Anti AdBlocker" Admin Menu