Force apply terms and conditions 1.0

Does "Force apply terms and conditions" work with WordPress 6.4.3 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: -28.89 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.4.3
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs <10
WordPress.org page https://wordpress.org/plugins/force-apply-terms-and-conditions/
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=force-apply-terms-and-conditions%2Fforce-apply-terms-and-conditions.php&plugin_status=all&paged=1&s&_wpnonce=bd3308746e
Aspect after-activation
HTTP status 200
Load time 0.382 s
Memory usage 3.32 MiB
JS errors None
Resource errors None

Plugins → Force apply t&c

Page screenshot: Plugins  → Force apply t&c
URL /wp-admin/plugins.php?page=force-apply-terms-and-conditions%2Fforce-apply-terms-and-conditions.php
Requested URL /wp-admin/plugins.php?page=force-apply-terms-and-conditions/force-apply-terms-and-conditions.php
Aspect menu-item
HTTP status 200
Load time 0.155 s
Memory usage 3.33 MiB
JS errors None
Resource errors None

Test site

Page screenshot: Test site
URL /
Aspect front-page
HTTP status 200
Load time 0.181 s
Memory usage 3.02 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.349 s0.286 s-0.063 s3.38 MiB3.38 MiB+ 3.74 KiB
/wp-admin/edit.php0.211 s0.186 s-0.025 s3.41 MiB3.41 MiB+ 3.74 KiB
/wp-admin/post-new.php0.802 s0.579 s-0.223 s5.46 MiB5.47 MiB+ 8.11 KiB
/wp-admin/upload.php0.525 s0.385 s-0.140 s3.32 MiB3.31 MiB- 12.87 KiB
/wp-admin/options-writing.php0.218 s0.165 s-0.053 s3.32 MiB3.3 MiB- 19.45 KiB
/wp-admin/media-new.php0.288 s0.233 s-0.055 s3.3 MiB3.3 MiB+ 152 bytes
/wp-admin/edit-tags.php?taxonomy=category0.200 s0.286 s+0.086 s3.31 MiB3.32 MiB+ 4.49 KiB
/wp-admin/post-new.php?post_type=page0.524 s0.546 s+0.022 s5.45 MiB5.46 MiB+ 8.12 KiB
/wp-admin/options-discussion.php0.277 s0.248 s-0.029 s3.3 MiB3.29 MiB- 11.55 KiB
/wp-admin/edit-comments.php0.221 s0.192 s-0.029 s3.34 MiB3.32 MiB- 13.62 KiB
/0.304 s0.125 s-0.179 s3.31 MiB3.02 MiB- 288.64 KiB
Average 0.356 s0.294 s-0.063 s3.72 MiB3.69 MiB- 28.89 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
PHP100.0%150522
Total 150 52 2

PHP Code Analysis | More results »

Lines of code 82
Total complexity 21
Median class complexity 10.0
Median method complexity 3.0
Most complex class plugin_force_apply
Most complex function plugin_force_apply_frontend()
Classes 1
Methods 4
Functions 3

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.

No new entries found.

PHP Error Log 51 lines

[18-Feb-2024 07:51:48 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:48 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:49 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:49 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:49 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:49 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:50 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:51 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:51 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:51 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:51 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:51 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:51 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:52 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:52 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:52 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:52 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:53 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:53 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:53 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:53 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:53 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:53 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:53 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:53 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:53 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:54 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:54 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:54 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:54 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:54 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:54 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:55 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:55 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:55 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:55 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:55 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:55 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:55 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:55 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:55 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:56 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:56 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:56 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:56 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:56 UTC] PHP Warning:  Attempt to read property "post_content" on null in /wp-content/plugins/force-apply-terms-and-conditions/force-apply-terms-and-conditions.php on line 82
[18-Feb-2024 07:51:56 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:56 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:57 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:57 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
[18-Feb-2024 07:51:57 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6031
See also: All tests for this plugin, How to Hide the "Force apply tc" Admin Menu