DH - Anti AdBlocker 41.4

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

Summary

Errors
4PHP fatal errors
1PHP warnings
3PHP deprecation warnings
No JavaScript exceptions
1Page failed to load
  • 1 500 Internal Server Error
No resource errors
Performance

Memory usage: 12.27 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=275ed05134
Aspect after-activation
HTTP status 200
Load time 0.498 s
Memory usage 3.02 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.397 s
Memory usage N/A
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 500
Load time 0.055 s
Memory usage N/A
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.335 s0.261 s-0.074 s3.05 MiB3.07 MiB+ 20.62 KiB
/wp-admin/edit.php0.214 s0.204 s-0.010 s3.08 MiB3.1 MiB+ 20.62 KiB
/wp-admin/post-new.php0.893 s0.990 s+0.097 s4.97 MiB4.99 MiB+ 24.98 KiB
/wp-admin/upload.php0.846 s0.282 s-0.564 s2.99 MiB3 MiB+ 3.21 KiB
/wp-admin/options-writing.php0.182 s0.158 s-0.024 s2.99 MiB2.98 MiB- 10.14 KiB
/wp-admin/media-new.php0.297 s0.268 s-0.029 s2.97 MiB2.98 MiB+ 15.4 KiB
/wp-admin/edit-tags.php?taxonomy=category0.195 s0.195 s+0.000 s2.98 MiB3 MiB+ 20.57 KiB
/wp-admin/post-new.php?post_type=page0.697 s0.890 s+0.193 s4.96 MiB4.98 MiB+ 20.57 KiB
/wp-admin/options-discussion.php0.236 s0.259 s+0.023 s2.98 MiB2.98 MiB+ 3.7 KiB
/wp-admin/edit-comments.php0.213 s0.227 s+0.014 s3 MiB3 MiB+ 3.2 KiB
Average 0.411 s0.373 s-0.037 s3.4 MiB3.41 MiB+ 12.27 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.1%27,2834,29252
JavaScript43.2%23,99997328
SVG5.2%2,880123
PHP2.1%1,17866012
PO File0.4%2461282
Total 55,586 6,065 97

PHP Code Analysis | More results »

Lines of code 1,210
Total complexity 118
Median class complexity 4.0
Median method complexity 1.0
Most complex class dh-anti-adblocker\dh-anti-adblocker/admin\DH_Anti_AdBlocker_Admin
Most complex function dhadb_footer()
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 3

PHP Error Log 64 lines

[20-Jan-2023 11:59:34 UTC] PHP Warning:  Undefined variable $dhadb_token in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-activator.php on line 50
[20-Jan-2023 11:59:34 UTC] PHP Deprecated:  str_shuffle(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-activator.php on line 50
[20-Jan-2023 11:59:36 UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /wp-content/plugins/dh-anti-adblocker/admin/partials/dh-anti-adblocker-admin-display.php:210
Stack trace:
#0 /wp-content/plugins/dh-anti-adblocker/admin/class-dh-anti-adblocker-admin.php(175): include_once()
#1 /wp-includes/class-wp-hook.php(308): DH_Anti_AdBlocker_Admin->display_plugin_setup_page()
#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/admin.php(259): do_action()
#5 /wp-admin/options-general.php(10): require_once('...')
#6 {main}
  thrown in /wp-content/plugins/dh-anti-adblocker/admin/partials/dh-anti-adblocker-admin-display.php on line 210
[20-Jan-2023 11:59:37 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 360
[20-Jan-2023 11:59:37 UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /wp-content/plugins/dh-anti-adblocker/public/class-dh-anti-adblocker-public.php:130
Stack trace:
#0 /wp-includes/class-wp-hook.php(308): DH_Anti_AdBlocker_Public->enqueue_scripts()
#1 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/script-loader.php(2180): do_action()
#4 /wp-includes/class-wp-hook.php(308): wp_enqueue_scripts()
#5 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#6 /wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /wp-includes/general-template.php(3043): do_action()
#8 /wp-content/themes/twentyseventeen/header.php(22): wp_head()
#9 /wp-includes/template.php(783): require_once('...')
#10 /wp-includes/template.php(718): load_template()
#11 /wp-includes/general-template.php(48): locate_template()
#12 /wp-content/themes/twentyseventeen/index.php(18): get_header()
#13 /wp-includes/template-loader.php(106): include('...')
#14 /wp-blog-header.php(19): require_once('...')
#15 /index.php(17): require('...')
#16 {main}
  thrown in /wp-content/plugins/dh-anti-adblocker/public/class-dh-anti-adblocker-public.php on line 130
[20-Jan-2023 11:59: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 360
[20-Jan-2023 11:59:45 UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /wp-content/plugins/dh-anti-adblocker/public/class-dh-anti-adblocker-public.php:130
Stack trace:
#0 /wp-includes/class-wp-hook.php(308): DH_Anti_AdBlocker_Public->enqueue_scripts()
#1 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/script-loader.php(2180): do_action()
#4 /wp-includes/class-wp-hook.php(308): wp_enqueue_scripts()
#5 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#6 /wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /wp-includes/general-template.php(3043): do_action()
#8 /wp-content/themes/twentyseventeen/header.php(22): wp_head()
#9 /wp-includes/template.php(783): require_once('...')
#10 /wp-includes/template.php(718): load_template()
#11 /wp-includes/general-template.php(48): locate_template()
#12 /wp-content/themes/twentyseventeen/index.php(18): get_header()
#13 /wp-includes/template-loader.php(106): include('...')
#14 /wp-blog-header.php(19): require_once('...')
#15 /index.php(17): require('...')
#16 {main}
  thrown in /wp-content/plugins/dh-anti-adblocker/public/class-dh-anti-adblocker-public.php on line 130
[20-Jan-2023 11:59:45 UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-deactivator.php:37
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 37
See also: All tests for this plugin, How to Hide the "DH – Anti AdBlocker" Admin Menu