Force apply terms and conditions 1.0

Does "Force apply terms and conditions" work with WordPress 6.7.1 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: -33.11 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.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=b8077709a9
Aspect after-activation
HTTP status 200
Load time 0.546 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.46 MiB
JS errors None
Resource errors None

Test site

Page screenshot: Test site
URL /
Aspect front-page
HTTP status 200
Load time 0.199 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.343 s0.293 s-0.050 s3.48 MiB3.48 MiB+ 5.2 KiB
/wp-admin/edit.php0.206 s0.209 s+0.003 s3.54 MiB3.55 MiB+ 5.99 KiB
/wp-admin/post-new.php0.820 s0.631 s-0.189 s5.92 MiB5.93 MiB+ 8.84 KiB
/wp-admin/upload.php0.570 s0.288 s-0.282 s3.49 MiB3.48 MiB- 11.36 KiB
/wp-admin/options-writing.php0.209 s0.189 s-0.020 s3.47 MiB3.46 MiB- 7.37 KiB
/wp-admin/media-new.php0.362 s0.240 s-0.122 s3.46 MiB3.46 MiB+ 848 bytes
/wp-admin/edit-tags.php?taxonomy=category0.179 s0.196 s+0.017 s3.47 MiB3.49 MiB+ 11.5 KiB
/wp-admin/post-new.php?post_type=page0.588 s0.822 s+0.234 s5.92 MiB5.93 MiB+ 8.85 KiB
/wp-admin/options-discussion.php0.284 s0.297 s+0.013 s3.47 MiB3.46 MiB- 10.87 KiB
/wp-admin/edit-comments.php0.205 s0.203 s-0.002 s3.49 MiB3.48 MiB- 11.37 KiB
/0.318 s0.158 s-0.160 s3.47 MiB3.12 MiB- 364.42 KiB
Average 0.371 s0.321 s-0.051 s3.93 MiB3.9 MiB- 33.11 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

[09-Dec-2024 18:09:04 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
[09-Dec-2024 18:09:04 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
[09-Dec-2024 18:09:05 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
[09-Dec-2024 18:09:05 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
[09-Dec-2024 18:09:05 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
[09-Dec-2024 18:09:05 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
[09-Dec-2024 18:09:06 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
[09-Dec-2024 18:09:07 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
[09-Dec-2024 18:09:07 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
[09-Dec-2024 18:09:07 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
[09-Dec-2024 18:09:07 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
[09-Dec-2024 18:09:08 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
[09-Dec-2024 18:09:08 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
[09-Dec-2024 18:09:09 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
[09-Dec-2024 18:09:09 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
[09-Dec-2024 18:09:09 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
[09-Dec-2024 18:09:09 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
[09-Dec-2024 18:09:09 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
[09-Dec-2024 18:09:09 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
[09-Dec-2024 18:09:09 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
[09-Dec-2024 18:09:09 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
[09-Dec-2024 18:09:09 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
[09-Dec-2024 18:09:09 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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09:12 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
[09-Dec-2024 18:09:12 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
[09-Dec-2024 18:09:12 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
[09-Dec-2024 18:09:12 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
[09-Dec-2024 18:09:12 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
[09-Dec-2024 18:09:12 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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09:13 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
[09-Dec-2024 18:09:13 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
[09-Dec-2024 18:09:13 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
[09-Dec-2024 18:09:13 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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
[09-Dec-2024 18:09: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
See also: All tests for this plugin, How to Hide the "Force apply tc" Admin Menu