Conditional Payments and Shipping for WooCommerce 1.0.10

Does "Conditional Payments and Shipping for WooCommerce" work with WordPress 6.3.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: 107.64 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.3.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=9704ef0c00
Aspect after-activation
HTTP status 200
Load time 0.336 s
Memory usage 3.08 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.203 s
Memory usage 3.19 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.396 s0.337 s-0.059 s2.83 MiB2.94 MiB+ 114.56 KiB
/wp-admin/edit.php0.224 s0.214 s-0.010 s2.85 MiB2.96 MiB+ 110.61 KiB
/wp-admin/post-new.php0.853 s0.606 s-0.247 s5.22 MiB5.36 MiB+ 147.94 KiB
/wp-admin/upload.php0.763 s0.605 s-0.158 s2.77 MiB2.86 MiB+ 95.79 KiB
/wp-admin/options-writing.php0.240 s0.222 s-0.018 s2.77 MiB2.85 MiB+ 89.26 KiB
/wp-admin/media-new.php0.299 s0.265 s-0.034 s2.74 MiB2.85 MiB+ 107.2 KiB
/wp-admin/edit-tags.php?taxonomy=category0.224 s0.249 s+0.025 s2.76 MiB2.87 MiB+ 114.97 KiB
/wp-admin/post-new.php?post_type=page0.699 s0.572 s-0.127 s5.21 MiB5.35 MiB+ 139.52 KiB
/wp-admin/options-discussion.php0.227 s0.271 s+0.044 s2.75 MiB2.85 MiB+ 98.93 KiB
/wp-admin/edit-comments.php0.269 s0.233 s-0.036 s2.78 MiB2.88 MiB+ 97.97 KiB
/0.299 s0.223 s-0.076 s3.13 MiB3.19 MiB+ 67.24 KiB
Average 0.408 s0.345 s-0.063 s3.26 MiB3.36 MiB+ 107.64 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,10590035
JavaScript7.3%8822
CSS1.5%1882
Total 1,211 910 39

PHP Code Analysis | More results »

Lines of code 1,101
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

[16-Oct-2023 09:52:41 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
[16-Oct-2023 09:52:41 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