Conditional Payments and Shipping for WooCommerce 1.0.14

Does "Conditional Payments and Shipping for WooCommerce" work with WordPress 6.8.2 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 124.55 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.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 700+
WordPress.org page https://wordpress.org/plugins/wc-restricted-shipping-and-payment/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 2

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=wc-restricted-shipping-and-payment%2Frestricted-shipping-payment-for-woocommerce.php&plugin_status=all&paged=1&s&_wpnonce=5d74a8a21b
Aspect after-activation
HTTP status 200
Load time 0.349 s
Memory usage 3.78 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.180 s
Memory usage 3.5 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.341 s0.260 s-0.081 s3.51 MiB3.63 MiB+ 130.66 KiB
/wp-admin/edit.php0.203 s0.196 s-0.007 s3.57 MiB3.69 MiB+ 119.3 KiB
/wp-admin/post-new.php0.769 s0.642 s-0.127 s6.06 MiB6.25 MiB+ 191.42 KiB
/wp-admin/upload.php0.597 s0.701 s+0.104 s3.52 MiB3.64 MiB+ 116.89 KiB
/wp-admin/options-writing.php0.221 s0.215 s-0.006 s3.5 MiB3.62 MiB+ 120.26 KiB
/wp-admin/media-new.php0.273 s0.248 s-0.025 s3.49 MiB3.62 MiB+ 128.45 KiB
/wp-admin/edit-tags.php?taxonomy=category0.244 s0.194 s-0.050 s3.5 MiB3.64 MiB+ 133.63 KiB
/wp-admin/post-new.php?post_type=page0.594 s0.621 s+0.027 s6.05 MiB6.17 MiB+ 125.13 KiB
/wp-admin/options-discussion.php0.441 s0.448 s+0.007 s3.5 MiB3.62 MiB+ 116.76 KiB
/wp-admin/edit-comments.php0.240 s0.413 s+0.173 s3.52 MiB3.64 MiB+ 116.26 KiB
/0.295 s0.219 s-0.076 s3.43 MiB3.5 MiB+ 71.25 KiB
Average 0.383 s0.378 s-0.006 s3.97 MiB4.09 MiB+ 124.55 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
PHP91.3%1,11790035
JavaScript7.2%8822
CSS1.5%1882
Total 1,223 910 39

PHP Code Analysis | More results »

Lines of code 1,113
Total complexity 180
Median class complexity 4.0
Median method complexity 1.0
Most complex class RSPW_Payment_Filter
Most complex function RSPW_Payment_Filter::exclude_payment_gateways()
Classes 31
Methods 104
Functions 0

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.

Custom Post Types 2

ID Name
shipping_conditionShipping Conditions
payment_conditionPayment Conditions

Meta Boxes

{
    "shipping_condition": {
        "rspw_pro_promotion_box_id": {
            "title": "Upgrade To Pro",
            "context": "side"
        },
        "shipping_conditions_metabox": {
            "title": "Condition Properties",
            "context": "normal"
        }
    },
    "payment_condition": {
        "rspw_pro_promotion_box_id": {
            "title": "Upgrade To Pro",
            "context": "side"
        },
        "payment_conditions_metabox": {
            "title": "Condition Properties",
            "context": "normal"
        }
    }
}

PHP Error Log 1 lines

[18-Jul-2025 20:13:14 UTC] PHP Deprecated:  Optional parameter $type declared before required parameter $field_id is implicitly treated as a required parameter in /wp-content/plugins/wc-restricted-shipping-and-payment/admin/vendors/cmb2/includes/rest-api/CMB2_REST.php on line 693
See also: All tests for this plugin, How to Hide Conditional Payments and Shipping for WooCommerce Meta Boxes