Admin Block Country 7.1.4

Does Admin Block Country work with WordPress 6.8.1 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 1.91 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.277 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.8.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 3,000+
WordPress.org page https://wordpress.org/plugins/admin-block-country/
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=admin-block-country%2Fadmin-block-country.php&plugin_status=all&paged=1&s&_wpnonce=1dfc48a5bd
Aspect after-activation
HTTP status 200
Load time 0.954 s
Memory usage 3.53 MiB
JS errors None
Resource errors None

Block Country

Page screenshot: Block Country
URL /wp-admin/admin.php?page=admin-block-country%2Fadmin-block-country.php
Requested URL /wp-admin/admin.php?page=admin-block-country/admin-block-country.php
Aspect menu-item
HTTP status 200
Load time 0.643 s
Memory usage 3.49 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.177 s
Memory usage 3.44 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.292 s0.618 s+0.326 s3.51 MiB3.51 MiB+ 7.98 KiB
/wp-admin/edit.php0.200 s0.529 s+0.329 s3.57 MiB3.58 MiB+ 7.98 KiB
/wp-admin/post-new.php0.696 s0.987 s+0.291 s6.06 MiB6.07 MiB+ 11.61 KiB
/wp-admin/upload.php0.550 s0.619 s+0.069 s3.52 MiB3.51 MiB- 9.43 KiB
/wp-admin/options-writing.php0.183 s0.542 s+0.359 s3.5 MiB3.49 MiB- 5.44 KiB
/wp-admin/media-new.php0.268 s0.568 s+0.300 s3.49 MiB3.49 MiB+ 2.76 KiB
/wp-admin/edit-tags.php?taxonomy=category0.170 s0.668 s+0.498 s3.5 MiB3.52 MiB+ 13.43 KiB
/wp-admin/post-new.php?post_type=page0.563 s0.927 s+0.364 s6.05 MiB6.06 MiB+ 7.13 KiB
/wp-admin/options-discussion.php0.270 s0.571 s+0.301 s3.5 MiB3.49 MiB- 8.94 KiB
/wp-admin/edit-comments.php0.196 s0.555 s+0.359 s3.52 MiB3.51 MiB- 9.44 KiB
/0.316 s0.172 s-0.144 s3.43 MiB3.44 MiB+ 3.32 KiB
Average 0.337 s0.614 s+0.277 s3.97 MiB3.97 MiB+ 1.91 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.

PHP
Language % Lines of code Comment lines Files
PHP98.2%8,12813221
Markdown0.7%6201
Perl0.5%3921
JSON0.3%2101
CSS0.2%1401
JavaScript0.1%1001
Total 8,274 134 26

PHP Code Analysis | More results »

Lines of code 2,884
Total complexity 867
Median class complexity 46.0
Median method complexity 5.0
Most complex class AdminBlockCountry\ABCTomM8
Most complex function get_time_zone()
Classes 2
Methods 11
Functions 11

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 1

PHP Error Log 2 lines

[02-May-2025 05:12:17 UTC] PHP Deprecated:  Optional parameter $field_attributes declared before required parameter $container_element is implicitly treated as a required parameter in /wp-content/plugins/admin-block-country/lib/tom-m8te.php on line 84
[02-May-2025 05:12:19 UTC] PHP Warning:  Undefined array key 0 in /wp-content/plugins/admin-block-country/admin-block-country.php on line 128
See also: All tests for this plugin, How to Hide the "Block Country" Admin Menu