Blocked in China 1.0.1

Does Blocked in China work with WordPress 5.7 and PHP 7.4.8? A smoke test was performed on .

Summary

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

Memory usage: 448.29 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 version5.7
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 40+
WordPress.org page https://wordpress.org/plugins/blocked-in-china/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 6

Blocked In China Options ‹ Test site — WordPress

Page screenshot: Blocked In China Options ‹ Test site — WordPress
URL /wp-admin/options-general.php?page=blocked-in-china
Requested URL /wp-admin/plugins.php?action=activate&plugin=blocked-in-china%2Fblocked-in-china.php&plugin_status=all&paged=1&s&_wpnonce=404f184645
Aspect after-activation
HTTP status 200
Load time 1.454 s
Memory usage 3.5 MiB
JS errors None
Resource errors None

Settings → Blocked in China

Page screenshot: Settings → Blocked in China
URL /wp-admin/options-general.php?page=blocked-in-china
Aspect menu-item
HTTP status 200
Load time 0.160 s
Memory usage 3.1 MiB
JS errors None
Resource errors None

Settings → Affiliation

Page screenshot: Settings → Affiliation
URL /wp-admin/options-general.php?page=blocked-in-china-affiliation
Aspect menu-item
HTTP status 200
Load time 0.484 s
Memory usage 3.5 MiB
JS errors None
Resource errors None

Settings → Contact Us

Page screenshot: Settings → Contact Us
URL /wp-admin/options-general.php?page=blocked-in-china-contact
Aspect menu-item
HTTP status 200
Load time 0.157 s
Memory usage 3.17 MiB
JS errors None
Resource errors None

Settings → Upgrade  ➤

Page screenshot: Settings → Upgrade  ➤
URL /wp-admin/options-general.php?page=blocked-in-china-pricing
Aspect menu-item
HTTP status 200
Load time 0.267 s
Memory usage 3.46 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.505 s
Memory usage 2.98 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.270 s0.394 s+0.124 s2.82 MiB3.34 MiB+ 532.35 KiB
/wp-admin/edit.php0.177 s0.208 s+0.031 s2.86 MiB3.39 MiB+ 537.54 KiB
/wp-admin/post-new.php0.876 s0.923 s+0.047 s5.02 MiB5.55 MiB+ 540.58 KiB
/wp-admin/upload.php0.475 s0.275 s-0.200 s2.7 MiB3.12 MiB+ 434.32 KiB
/wp-admin/options-writing.php0.249 s0.248 s-0.001 s2.71 MiB3.1 MiB+ 402.3 KiB
/wp-admin/media-new.php0.246 s0.213 s-0.033 s2.67 MiB3.1 MiB+ 435.12 KiB
/wp-admin/edit-tags.php?taxonomy=category0.195 s0.216 s+0.021 s2.77 MiB3.13 MiB+ 371.4 KiB
/wp-admin/post-new.php?post_type=page1.140 s0.727 s-0.413 s5.01 MiB5.53 MiB+ 539.25 KiB
/wp-admin/options-discussion.php0.319 s0.335 s+0.016 s2.67 MiB3.1 MiB+ 435.43 KiB
/wp-admin/edit-comments.php0.222 s0.255 s+0.033 s2.78 MiB3.14 MiB+ 370.34 KiB
/0.283 s0.212 s-0.071 s2.65 MiB2.98 MiB+ 332.56 KiB
Average 0.405 s0.364 s-0.041 s3.15 MiB3.59 MiB+ 448.29 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
PHP99.9%62,59966816
CSS0.1%5182
JavaScript0.0%18542
JSON0.0%1201
Total 62,680 730 21

PHP Code Analysis | More results »

Lines of code 4,978
Total complexity 360
Median class complexity 6.0
Median method complexity 2.0
Most complex class Installer
Most complex function HttpClient::getPackagedCaFile()
Classes 13
Methods 69
Functions 20

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 8

PHP Error Log 1 lines

[16-Mar-2021 20:27:05 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, function 'activate_blocked_in_china' not found or invalid function name in /wp-includes/class-wp-hook.php on line 292
See also: All tests for this plugin, How to Hide Blocked in China Admin Menus