DH - Anti AdBlocker 43.1

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

Summary

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

Memory usage: 13.69 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=80e20b9eb9
Aspect after-activation
HTTP status 200
Load time 0.261 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.935 s
Memory usage 3.27 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.298 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.315 s0.533 s+0.218 s3.05 MiB3.07 MiB+ 21.05 KiB
/wp-admin/edit.php0.219 s0.220 s+0.001 s3.07 MiB3.09 MiB+ 21.05 KiB
/wp-admin/post-new.php0.894 s1.035 s+0.141 s4.97 MiB4.99 MiB+ 25.42 KiB
/wp-admin/upload.php0.824 s0.310 s-0.514 s2.99 MiB3 MiB+ 3.65 KiB
/wp-admin/options-writing.php0.171 s0.168 s-0.003 s2.99 MiB2.98 MiB- 9.7 KiB
/wp-admin/media-new.php0.317 s0.208 s-0.109 s2.97 MiB2.98 MiB+ 15.84 KiB
/wp-admin/edit-tags.php?taxonomy=category0.195 s0.207 s+0.012 s2.98 MiB3 MiB+ 21.01 KiB
/wp-admin/post-new.php?post_type=page0.685 s0.762 s+0.077 s4.96 MiB4.98 MiB+ 21.01 KiB
/wp-admin/options-discussion.php0.233 s0.296 s+0.063 s2.97 MiB2.98 MiB+ 4.14 KiB
/wp-admin/edit-comments.php0.238 s0.209 s-0.029 s3 MiB3 MiB+ 3.64 KiB
/0.303 s0.240 s-0.063 s2.94 MiB2.97 MiB+ 23.45 KiB
Average 0.399 s0.381 s-0.019 s3.35 MiB3.37 MiB+ 13.69 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.0%27,3724,29353
JavaScript43.0%24,01597328
SVG5.2%2,880123
PHP2.4%1,35863212
PO File0.5%2621422
Total 55,887 6,052 98

PHP Code Analysis | More results »

Lines of code 1,389
Total complexity 147
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 32
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 2

PHP Error Log 7 lines

[21-Jan-2023 07:11:30 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 43
[21-Jan-2023 07:11:31 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 280
[21-Jan-2023 07:11:31 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
[21-Jan-2023 07:11:31 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 606
[21-Jan-2023 07:11:31 UTC] PHP Warning:  Array to string conversion in /wp-includes/formatting.php on line 1098
[21-Jan-2023 07:11:33 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
[21-Jan-2023 07:11:41 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
See also: All tests for this plugin, How to Hide the "DH – Anti AdBlocker" Admin Menu