DH - Anti AdBlocker 42

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=a301626e8b
Aspect after-activation
HTTP status 200
Load time 0.645 s
Memory usage 3 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,2834,29252
JavaScript43.2%23,99997328
SVG5.2%2,880123
PHP2.2%1,19966312
PO File0.4%2461282
Total 55,607 6,068 97

PHP Code Analysis | More results »

Lines of code 1,231
Total complexity 121
Median class complexity 5.0
Median method complexity 1.0
Most complex class DH_Anti_AdBlocker_Admin
Most complex function dhadb_footer()
Classes 7
Methods 33
Functions 10

Additions

No data available.

PHP Error Log 28 lines

[20-Jan-2023 11:54:15 UTC] PHP Fatal error:  Uncaught Error: Non-static method DH_Anti_AdBlocker_Activator::generateRandomString() cannot be called statically in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-activator.php:49
Stack trace:
#0 /wp-content/plugins/dh-anti-adblocker/dh-anti-adblocker.php(65): DH_Anti_AdBlocker_Activator::activate()
#1 /wp-includes/class-wp-hook.php(308): activate_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(691): do_action()
#5 /wp-admin/plugins.php(58): activate_plugin()
#6 {main}
  thrown in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-activator.php on line 49
[20-Jan-2023 11:54:15 UTC] PHP Fatal error:  Uncaught Error: Non-static method DH_Anti_AdBlocker_Activator::generateRandomString() cannot be called statically in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-activator.php:49
Stack trace:
#0 /wp-content/plugins/dh-anti-adblocker/dh-anti-adblocker.php(65): DH_Anti_AdBlocker_Activator::activate()
#1 /wp-includes/class-wp-hook.php(308): activate_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/plugins.php(194): do_action()
#5 {main}
  thrown in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-activator.php on line 49
[20-Jan-2023 11:54:15 UTC] PHP Fatal error:  Uncaught Error: Non-static method DH_Anti_AdBlocker_Activator::generateRandomString() cannot be called statically in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-activator.php:49
Stack trace:
#0 /wp-content/plugins/dh-anti-adblocker/dh-anti-adblocker.php(65): DH_Anti_AdBlocker_Activator::activate()
#1 /wp-includes/class-wp-hook.php(308): activate_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/plugins.php(194): do_action()
#5 {main}
  thrown in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-activator.php on line 49
See also: All tests for this plugin, How to Hide the "DH – Anti AdBlocker" Admin Menu