Force apply terms and conditions 1.0

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

Summary

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

Memory usage: -27.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 version6.8.1
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=550cc34831
Aspect after-activation
HTTP status 200
Load time 0.294 s
Memory usage 3.52 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.148 s
Memory usage 3.49 MiB
JS errors None
Resource errors None

Test site

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

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.309 s0.224 s-0.085 s3.51 MiB3.51 MiB+ 7.97 KiB
/wp-admin/edit.php0.196 s0.192 s-0.004 s3.57 MiB3.58 MiB+ 5.62 KiB
/wp-admin/post-new.php0.766 s0.622 s-0.144 s6.06 MiB6.07 MiB+ 8.47 KiB
/wp-admin/upload.php0.603 s0.487 s-0.116 s3.52 MiB3.51 MiB- 11.74 KiB
/wp-admin/options-writing.php0.219 s0.193 s-0.026 s3.5 MiB3.49 MiB- 7.75 KiB
/wp-admin/media-new.php0.287 s0.249 s-0.038 s3.49 MiB3.49 MiB+ 456 bytes
/wp-admin/edit-tags.php?taxonomy=category0.286 s0.187 s-0.099 s3.5 MiB3.51 MiB+ 11.12 KiB
/wp-admin/post-new.php?post_type=page0.598 s0.617 s+0.019 s6.05 MiB6.06 MiB+ 8.47 KiB
/wp-admin/options-discussion.php0.472 s0.217 s-0.255 s3.5 MiB3.49 MiB- 11.25 KiB
/wp-admin/edit-comments.php0.273 s0.402 s+0.129 s3.52 MiB3.51 MiB- 11.75 KiB
/0.299 s0.168 s-0.131 s3.43 MiB3.14 MiB- 299.8 KiB
Average 0.392 s0.323 s-0.068 s3.97 MiB3.94 MiB- 27.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
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 50 lines

[19-May-2025 01:41:16 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:16 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:17 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:17 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:17 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:17 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:18 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
[19-May-2025 01:41:19 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:19 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:19 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:19 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:19 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:19 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:20 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
[19-May-2025 01:41:20 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
[19-May-2025 01:41:20 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
[19-May-2025 01:41:20 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
[19-May-2025 01:41:20 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
[19-May-2025 01:41:21 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
[19-May-2025 01:41:21 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
[19-May-2025 01:41:21 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
[19-May-2025 01:41:21 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
[19-May-2025 01:41:21 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:21 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:22 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:22 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:22 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:22 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:22 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:22 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:22 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:22 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:23 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
[19-May-2025 01:41:23 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
[19-May-2025 01:41:24 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
[19-May-2025 01:41:24 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
[19-May-2025 01:41:24 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
[19-May-2025 01:41:24 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
[19-May-2025 01:41:24 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
[19-May-2025 01:41:24 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
[19-May-2025 01:41:24 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:24 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:24 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:24 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:25 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
[19-May-2025 01:41:25 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:25 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:25 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:25 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
[19-May-2025 01:41:25 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6121
See also: All tests for this plugin, How to Hide the "Force apply tc" Admin Menu