DH - Anti AdBlocker 41

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

Summary

Errors
The plugin could not be activated
3PHP fatal errors
No JavaScript exceptions
No resource errors
Performance

No data available.

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 1

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin=dh-anti-adblocker%2Fdh-anti-adblocker.php
Requested URL /wp-admin/plugins.php?action=activate&plugin=dh-anti-adblocker%2Fdh-anti-adblocker.php&plugin_status=all&paged=1&s&_wpnonce=77eeac9992
Aspect after-activation
HTTP status 200
Load time 0.564 s
Memory usage 2.99 MiB
JS errors None
Resource errors None

Benchmark

No benchmark data available.

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.2%23,99997328
SVG5.2%2,880123
PHP2.1%1,15862112
PO File0.4%2361262
Total 55,528 6,020 96

PHP Code Analysis | More results »

Lines of code 1,192
Total complexity 110
Median class complexity 4.0
Median method complexity 1.0
Most complex class DH_Anti_AdBlocker_Loader
Most complex function dhadb_footer()
Classes 7
Methods 30
Functions 10

Additions

No data available.

PHP Error Log 28 lines

[19-Jan-2023 13:12:48 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "DH_Anti_AdBlocker_Loader" in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker.php:166
Stack trace:
#0 /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker.php(79): DH_Anti_AdBlocker->define_admin_hooks()
#1 /wp-content/plugins/dh-anti-adblocker/dh-anti-adblocker.php(97): DH_Anti_AdBlocker->__construct()
#2 /wp-content/plugins/dh-anti-adblocker/dh-anti-adblocker.php(101): run_DH_Anti_AdBlocker()
#3 /wp-admin/includes/plugin.php(2314): include_once('...')
#4 /wp-admin/includes/plugin.php(661): plugin_sandbox_scrape()
#5 /wp-admin/plugins.php(58): activate_plugin()
#6 {main}
  thrown in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker.php on line 166
[19-Jan-2023 13:12:49 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "DH_Anti_AdBlocker_Loader" in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker.php:166
Stack trace:
#0 /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker.php(79): DH_Anti_AdBlocker->define_admin_hooks()
#1 /wp-content/plugins/dh-anti-adblocker/dh-anti-adblocker.php(97): DH_Anti_AdBlocker->__construct()
#2 /wp-content/plugins/dh-anti-adblocker/dh-anti-adblocker.php(101): run_DH_Anti_AdBlocker()
#3 /wp-admin/includes/plugin.php(2314): include_once('...')
#4 /wp-admin/plugins.php(192): plugin_sandbox_scrape()
#5 {main}
  thrown in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker.php on line 166
[19-Jan-2023 13:12:49 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "DH_Anti_AdBlocker_Loader" in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker.php:166
Stack trace:
#0 /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker.php(79): DH_Anti_AdBlocker->define_admin_hooks()
#1 /wp-content/plugins/dh-anti-adblocker/dh-anti-adblocker.php(97): DH_Anti_AdBlocker->__construct()
#2 /wp-content/plugins/dh-anti-adblocker/dh-anti-adblocker.php(101): run_DH_Anti_AdBlocker()
#3 /wp-admin/includes/plugin.php(2314): include_once('...')
#4 /wp-admin/plugins.php(192): plugin_sandbox_scrape()
#5 {main}
  thrown in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker.php on line 166
See also: All tests for this plugin, How to Hide the "DH – Anti AdBlocker" Admin Menu