Force apply terms and conditions 1.0

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

Summary

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

Memory usage: -13.87 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.6.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=45f89a2666
Aspect after-activation
HTTP status 200
Load time 0.536 s
Memory usage 3.49 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.162 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.206 s
Memory usage 3.13 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.374 s0.312 s-0.062 s3.47 MiB3.48 MiB+ 6.76 KiB
/wp-admin/edit.php0.225 s0.203 s-0.022 s3.54 MiB3.54 MiB+ 5.31 KiB
/wp-admin/post-new.php0.817 s0.599 s-0.218 s5.75 MiB5.76 MiB+ 8.11 KiB
/wp-admin/upload.php0.697 s0.411 s-0.286 s3.49 MiB3.48 MiB- 12.04 KiB
/wp-admin/options-writing.php0.217 s0.197 s-0.020 s3.41 MiB3.46 MiB+ 50.77 KiB
/wp-admin/media-new.php0.294 s0.244 s-0.050 s3.4 MiB3.46 MiB+ 64.14 KiB
/wp-admin/edit-tags.php?taxonomy=category0.195 s0.372 s+0.177 s3.47 MiB3.48 MiB+ 10.82 KiB
/wp-admin/post-new.php?post_type=page0.631 s0.663 s+0.032 s5.75 MiB5.75 MiB+ 8.12 KiB
/wp-admin/options-discussion.php0.235 s0.250 s+0.015 s3.41 MiB3.46 MiB+ 52.45 KiB
/wp-admin/edit-comments.php0.238 s0.212 s-0.026 s3.49 MiB3.48 MiB- 12.05 KiB
/0.331 s0.157 s-0.174 s3.45 MiB3.13 MiB- 334.91 KiB
Average 0.387 s0.329 s-0.058 s3.87 MiB3.86 MiB- 13.87 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 56 lines

[29-Sep-2024 08:09:32 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 6085
[29-Sep-2024 08:09:32 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 6085
[29-Sep-2024 08:09:34 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 6085
[29-Sep-2024 08:09:34 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 6085
[29-Sep-2024 08:09:34 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 6085
[29-Sep-2024 08:09:34 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 6085
[29-Sep-2024 08:09:35 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
[29-Sep-2024 08:09:36 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 6085
[29-Sep-2024 08:09:36 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 6085
[29-Sep-2024 08:09:36 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 6085
[29-Sep-2024 08:09:36 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 6085
[29-Sep-2024 08:09:36 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 6085
[29-Sep-2024 08:09:36 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 6085
[29-Sep-2024 08:09:37 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
[29-Sep-2024 08:09:37 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
[29-Sep-2024 08:09:37 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
[29-Sep-2024 08:09:37 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
[29-Sep-2024 08:09:38 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
[29-Sep-2024 08:09:38 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
[29-Sep-2024 08:09:38 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
[29-Sep-2024 08:09:38 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
[29-Sep-2024 08:09:38 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
[29-Sep-2024 08:09:38 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
[29-Sep-2024 08:09:38 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
[29-Sep-2024 08:09:38 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
[29-Sep-2024 08:09:38 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 6085
[29-Sep-2024 08:09:38 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 6085
[29-Sep-2024 08:09:39 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 6085
[29-Sep-2024 08:09:39 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 6085
[29-Sep-2024 08:09:39 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 6085
[29-Sep-2024 08:09:39 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 6085
[29-Sep-2024 08:09:39 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 6085
[29-Sep-2024 08:09:39 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 6085
[29-Sep-2024 08:09:40 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 6085
[29-Sep-2024 08:09:40 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 6085
[29-Sep-2024 08:09:41 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
[29-Sep-2024 08:09:41 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
[29-Sep-2024 08:09:41 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
[29-Sep-2024 08:09:41 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
[29-Sep-2024 08:09:41 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
[29-Sep-2024 08:09:41 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
[29-Sep-2024 08:09:41 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
[29-Sep-2024 08:09:41 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
[29-Sep-2024 08:09:41 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
[29-Sep-2024 08:09:41 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
[29-Sep-2024 08:09:41 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
[29-Sep-2024 08:09:42 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 6085
[29-Sep-2024 08:09:42 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 6085
[29-Sep-2024 08:09:42 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 6085
[29-Sep-2024 08:09:42 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 6085
[29-Sep-2024 08:09:42 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
[29-Sep-2024 08:09:42 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 6085
[29-Sep-2024 08:09:42 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 6085
[29-Sep-2024 08:09:43 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 6085
[29-Sep-2024 08:09:43 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 6085
[29-Sep-2024 08:09:43 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 6085
See also: All tests for this plugin, How to Hide the "Force apply tc" Admin Menu