Conditional Payments and Shipping for WooCommerce 1.0.9

Does "Conditional Payments and Shipping for WooCommerce" work with WordPress 6.2.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: 111.89 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.2.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=75cdaf690f
Aspect after-activation
HTTP status 200
Load time 0.456 s
Memory usage 3.33 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.233 s
Memory usage 3.03 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.285 s0.273 s-0.012 s3.07 MiB3.19 MiB+ 119.94 KiB
/wp-admin/edit.php0.189 s0.188 s-0.001 s3.1 MiB3.21 MiB+ 116.98 KiB
/wp-admin/post-new.php0.749 s1.033 s+0.284 s5.02 MiB5.14 MiB+ 123.76 KiB
/wp-admin/upload.php0.547 s0.309 s-0.238 s3.02 MiB3.11 MiB+ 100.8 KiB
/wp-admin/options-writing.php0.183 s0.143 s-0.040 s3.01 MiB3.1 MiB+ 90.31 KiB
/wp-admin/media-new.php0.310 s0.205 s-0.105 s2.99 MiB3.1 MiB+ 112.21 KiB
/wp-admin/edit-tags.php?taxonomy=category0.198 s0.283 s+0.085 s3.01 MiB3.12 MiB+ 119.35 KiB
/wp-admin/post-new.php?post_type=page0.583 s0.625 s+0.042 s5.01 MiB5.13 MiB+ 119.34 KiB
/wp-admin/options-discussion.php0.206 s0.246 s+0.040 s3 MiB3.1 MiB+ 103.94 KiB
/wp-admin/edit-comments.php0.206 s0.203 s-0.003 s3.03 MiB3.13 MiB+ 102.98 KiB
/0.301 s0.218 s-0.083 s2.97 MiB3.09 MiB+ 121.19 KiB
Average 0.342 s0.339 s-0.003 s3.38 MiB3.49 MiB+ 111.89 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.2%1,09689434
JavaScript7.3%8822
CSS1.5%1882
Total 1,202 904 38

PHP Code Analysis | More results »

Lines of code 1,092
Total complexity 177
Median class complexity 4.5
Median method complexity 1.0
Most complex class RSPW_Payment_Filter
Most complex function RSPW_Payment_Filter::exclude_payment_gateways()
Classes 30
Methods 103
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

[24-May-2023 12:10:44 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
[24-May-2023 12:10:44 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