Order Restriction 1.0.2

Does Order Restriction work with WordPress 6.6.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
2PHP fatal errors
No JavaScript exceptions
1Page failed to load
  • 1 500 Internal Server Error
No resource errors
Performance

Memory usage: 32.75 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/order-restriction/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

Order Restriction ‹ Test site — WordPress

Page screenshot: Order Restriction ‹ Test site — WordPress
URL /wp-admin/admin.php?page=order-restriction
Requested URL /wp-admin/plugins.php?action=activate&plugin=order-restriction%2Forder-restriction.php&plugin_status=all&paged=1&s&_wpnonce=7e29cbee7b
Aspect after-activation
HTTP status 200
Load time 0.696 s
Memory usage 3.48 MiB
JS errors None
Resource errors None

Order Restriction

Page screenshot: Order Restriction
URL /wp-admin/admin.php?page=order-restriction
Aspect menu-item
HTTP status 200
Load time 0.237 s
Memory usage 3.48 MiB
JS errors None
Resource errors None

WordPress › Error

Page screenshot: WordPress › Error
URL /
Aspect front-page
HTTP status 500
Load time 0.047 s
Memory usage N/A
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.360 s0.310 s-0.050 s3.47 MiB3.49 MiB+ 20.34 KiB
/wp-admin/edit.php0.218 s0.241 s+0.023 s3.54 MiB3.56 MiB+ 20.27 KiB
/wp-admin/post-new.php0.832 s0.616 s-0.216 s5.75 MiB5.78 MiB+ 23.91 KiB
/wp-admin/upload.php0.592 s0.423 s-0.169 s3.49 MiB3.49 MiB+ 2.87 KiB
/wp-admin/options-writing.php0.218 s0.185 s-0.033 s3.41 MiB3.47 MiB+ 65.67 KiB
/wp-admin/media-new.php0.292 s0.446 s+0.154 s3.4 MiB3.47 MiB+ 79.05 KiB
/wp-admin/edit-tags.php?taxonomy=category0.193 s0.193 s+0.000 s3.47 MiB3.5 MiB+ 25.73 KiB
/wp-admin/post-new.php?post_type=page0.600 s0.598 s-0.002 s5.75 MiB5.77 MiB+ 19.49 KiB
/wp-admin/options-discussion.php0.234 s0.266 s+0.032 s3.41 MiB3.47 MiB+ 67.36 KiB
/wp-admin/edit-comments.php0.230 s0.213 s-0.017 s3.49 MiB3.49 MiB+ 2.86 KiB
Average 0.377 s0.349 s-0.028 s3.92 MiB3.95 MiB+ 32.75 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.

CSS
JavaScript
Language % Lines of code Comment lines Files
CSS65.0%16,688334
JavaScript33.9%8,7111,2453
PHP1.1%279644
Total 25,678 1,342 11

PHP Code Analysis | More results »

Lines of code 294
Total complexity 25
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function ortn_admin_page()
Classes 0
Methods 0
Functions 13

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 20 lines

[20-Sep-2024 23:38:37 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function WC() in /wp-content/plugins/order-restriction/includes/vat/ortn-vat-restriction.php:10
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): ortn_disable_checkout_under_minimum()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/template-loader.php(13): do_action()
#4 /wp-blog-header.php(19): require_once('...')
#5 /index.php(17): require('...')
#6 {main}
  thrown in /wp-content/plugins/order-restriction/includes/vat/ortn-vat-restriction.php on line 10
[20-Sep-2024 23:38:46 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function WC() in /wp-content/plugins/order-restriction/includes/vat/ortn-vat-restriction.php:10
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): ortn_disable_checkout_under_minimum()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/template-loader.php(13): do_action()
#4 /wp-blog-header.php(19): require_once('...')
#5 /index.php(17): require('...')
#6 {main}
  thrown in /wp-content/plugins/order-restriction/includes/vat/ortn-vat-restriction.php on line 10
See also: All tests for this plugin