DH - Anti AdBlocker 46

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

Summary

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

Memory usage: 12.15 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.5.2
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=44fb69095f
Aspect after-activation
HTTP status 200
Load time 0.304 s
Memory usage 3.4 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.843 s
Memory usage 3.85 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.271 s
Memory usage 3.39 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.369 s0.336 s-0.033 s3.44 MiB3.46 MiB+ 23.38 KiB
/wp-admin/edit.php0.216 s0.191 s-0.025 s3.46 MiB3.48 MiB+ 23.74 KiB
/wp-admin/post-new.php0.957 s0.812 s-0.145 s5.59 MiB5.62 MiB+ 28.37 KiB
/wp-admin/upload.php0.596 s0.452 s-0.144 s3.38 MiB3.39 MiB+ 6.34 KiB
/wp-admin/options-writing.php0.225 s0.219 s-0.006 s3.37 MiB3.37 MiB- 1.7 KiB
/wp-admin/media-new.php0.304 s0.215 s-0.089 s3.35 MiB3.37 MiB+ 18.52 KiB
/wp-admin/edit-tags.php?taxonomy=category0.207 s0.193 s-0.014 s3.37 MiB3.39 MiB+ 23.69 KiB
/wp-admin/post-new.php?post_type=page0.589 s0.587 s-0.002 s5.59 MiB5.61 MiB+ 23.95 KiB
/wp-admin/options-discussion.php0.519 s0.282 s-0.237 s3.36 MiB3.36 MiB+ 6.83 KiB
/wp-admin/edit-comments.php0.215 s0.216 s+0.001 s3.39 MiB3.4 MiB+ 6.33 KiB
/0.302 s0.280 s-0.022 s3.42 MiB3.39 MiB- 25.75 KiB
Average 0.409 s0.344 s-0.065 s3.79 MiB3.8 MiB+ 12.15 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.6%1,43973512
PO File0.5%2711672
Total 55,982 6,180 98

PHP Code Analysis | More results »

Lines of code 898
Total complexity 160
Median class complexity 7.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 4

PHP Error Log 12 lines

[14-Apr-2024 03:43:42 UTC] PHP Deprecated:  Automatic conversion of false to array is deprecated in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-activator.php on line 51
[14-Apr-2024 03:43:43 UTC] PHP Warning:  Undefined array key "dhadb_content" in /wp-content/plugins/dh-anti-adblocker/admin/partials/dh-anti-adblocker-admin-display.php on line 338
[14-Apr-2024 03:43:43 UTC] PHP Deprecated:  preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/kses.php on line 1745
[14-Apr-2024 03:43:43 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 664
[14-Apr-2024 03:43:43 UTC] PHP Warning:  Array to string conversion in /wp-includes/formatting.php on line 1108
[14-Apr-2024 03:43: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 462
[14-Apr-2024 03:43: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 462
[14-Apr-2024 03:43:55 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 462
[14-Apr-2024 03:43:55 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 462
[14-Apr-2024 03:43:55 UTC] PHP Warning:  Undefined variable $remove_dir_trans in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-deactivator.php on line 72
[14-Apr-2024 03:43:55 UTC] PHP Deprecated:  rmdir(): Passing null to parameter #1 ($directory) of type string is deprecated in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-deactivator.php on line 72
[14-Apr-2024 03:43:55 UTC] PHP Warning:  rmdir(): No such file or directory in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-deactivator.php on line 72
See also: All tests for this plugin, How to Hide the "DH – Anti AdBlocker" Admin Menu