Force apply terms and conditions 1.0

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

Summary

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

Memory usage: -34.07 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.7.2
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=04bd870ae6
Aspect after-activation
HTTP status 200
Load time 0.274 s
Memory usage 3.5 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.157 s
Memory usage 3.47 MiB
JS errors None
Resource errors None

Test site

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

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.333 s0.277 s-0.056 s3.48 MiB3.49 MiB+ 4.64 KiB
/wp-admin/edit.php0.205 s0.218 s+0.013 s3.54 MiB3.55 MiB+ 5.45 KiB
/wp-admin/post-new.php0.787 s0.632 s-0.155 s5.93 MiB5.93 MiB+ 8.29 KiB
/wp-admin/upload.php0.579 s0.334 s-0.245 s3.5 MiB3.48 MiB- 11.91 KiB
/wp-admin/options-writing.php0.319 s0.335 s+0.016 s3.47 MiB3.47 MiB- 7.92 KiB
/wp-admin/media-new.php0.272 s0.310 s+0.038 s3.46 MiB3.46 MiB+ 280 bytes
/wp-admin/edit-tags.php?taxonomy=category0.197 s0.200 s+0.003 s3.48 MiB3.49 MiB+ 10.95 KiB
/wp-admin/post-new.php?post_type=page0.579 s0.600 s+0.021 s5.92 MiB5.93 MiB+ 8.3 KiB
/wp-admin/options-discussion.php0.281 s0.232 s-0.049 s3.48 MiB3.46 MiB- 11.42 KiB
/wp-admin/edit-comments.php0.424 s0.205 s-0.219 s3.5 MiB3.48 MiB- 11.92 KiB
/0.345 s0.153 s-0.192 s3.48 MiB3.12 MiB- 369.48 KiB
Average 0.393 s0.318 s-0.075 s3.93 MiB3.9 MiB- 34.07 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 52 lines

[02-Mar-2025 01:35:09 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 6114
[02-Mar-2025 01:35:09 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 6114
[02-Mar-2025 01:35:09 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 6114
[02-Mar-2025 01:35:09 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 6114
[02-Mar-2025 01:35:10 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 6114
[02-Mar-2025 01:35:10 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 6114
[02-Mar-2025 01:35:11 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
[02-Mar-2025 01:35:11 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 6114
[02-Mar-2025 01:35:11 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 6114
[02-Mar-2025 01:35:12 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 6114
[02-Mar-2025 01:35:12 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 6114
[02-Mar-2025 01:35:12 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 6114
[02-Mar-2025 01:35:12 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 6114
[02-Mar-2025 01:35:13 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
[02-Mar-2025 01:35:13 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
[02-Mar-2025 01:35:13 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
[02-Mar-2025 01:35:13 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
[02-Mar-2025 01:35:13 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
[02-Mar-2025 01:35:13 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
[02-Mar-2025 01:35:13 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
[02-Mar-2025 01:35:14 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
[02-Mar-2025 01:35:14 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
[02-Mar-2025 01:35:14 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
[02-Mar-2025 01:35:14 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 6114
[02-Mar-2025 01:35:14 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 6114
[02-Mar-2025 01:35:14 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 6114
[02-Mar-2025 01:35:14 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 6114
[02-Mar-2025 01:35:15 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 6114
[02-Mar-2025 01:35:15 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 6114
[02-Mar-2025 01:35:15 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 6114
[02-Mar-2025 01:35:15 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 6114
[02-Mar-2025 01:35:15 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 6114
[02-Mar-2025 01:35:15 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 6114
[02-Mar-2025 01:35:17 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
[02-Mar-2025 01:35:17 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
[02-Mar-2025 01:35:17 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
[02-Mar-2025 01:35:17 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
[02-Mar-2025 01:35:17 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
[02-Mar-2025 01:35:17 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
[02-Mar-2025 01:35:17 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
[02-Mar-2025 01:35:17 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
[02-Mar-2025 01:35:17 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
[02-Mar-2025 01:35: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 6114
[02-Mar-2025 01:35: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 6114
[02-Mar-2025 01:35:18 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 6114
[02-Mar-2025 01:35:18 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 6114
[02-Mar-2025 01:35: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
[02-Mar-2025 01:35:18 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 6114
[02-Mar-2025 01:35:18 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 6114
[02-Mar-2025 01:35:18 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 6114
[02-Mar-2025 01:35:18 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 6114
[02-Mar-2025 01:35: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 6114
See also: All tests for this plugin, How to Hide the "Force apply tc" Admin Menu