Conditional Payments and Shipping for WooCommerce 1.0.11

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

Summary

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

Memory usage: 110.54 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.4.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=1f093f4a53
Aspect after-activation
HTTP status 200
Load time 0.334 s
Memory usage 3.64 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.212 s
Memory usage 3.37 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.445 s0.364 s-0.081 s3.38 MiB3.5 MiB+ 125.34 KiB
/wp-admin/edit.php0.273 s0.236 s-0.037 s3.41 MiB3.52 MiB+ 121.76 KiB
/wp-admin/post-new.php0.942 s0.656 s-0.286 s5.46 MiB5.59 MiB+ 139.46 KiB
/wp-admin/upload.php0.705 s0.582 s-0.123 s3.32 MiB3.43 MiB+ 108.84 KiB
/wp-admin/options-writing.php0.267 s0.235 s-0.032 s3.32 MiB3.41 MiB+ 100.41 KiB
/wp-admin/media-new.php0.394 s0.294 s-0.100 s3.29 MiB3.41 MiB+ 119.61 KiB
/wp-admin/edit-tags.php?taxonomy=category0.235 s0.231 s-0.004 s3.31 MiB3.44 MiB+ 125.49 KiB
/wp-admin/post-new.php?post_type=page0.661 s0.659 s-0.002 s5.45 MiB5.58 MiB+ 135.05 KiB
/wp-admin/options-discussion.php0.352 s0.521 s+0.169 s3.3 MiB3.41 MiB+ 112.2 KiB
/wp-admin/edit-comments.php0.255 s0.254 s-0.001 s3.33 MiB3.44 MiB+ 109.12 KiB
/0.334 s0.221 s-0.113 s3.36 MiB3.38 MiB+ 18.66 KiB
Average 0.442 s0.387 s-0.055 s3.72 MiB3.83 MiB+ 110.54 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,11090035
JavaScript7.2%8822
CSS1.5%1882
Total 1,216 910 39

PHP Code Analysis | More results »

Lines of code 1,106
Total complexity 178
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 2 lines

[10-Dec-2023 12:16:05 UTC] PHP Deprecated:  Optional parameter $field_escaped_value declared before required parameter $field_type_object is implicitly treated as a required parameter in /wp-content/plugins/wc-restricted-shipping-and-payment/admin/vendors/cmb-field-select2/cmb-field-select2.php on line 89
[10-Dec-2023 12:16:05 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