Conditional Payments and Shipping for WooCommerce 1.0.13

Does "Conditional Payments and Shipping for WooCommerce" work with WordPress 6.7.1 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: 120.01 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.7.1
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=66a2d6aa8a
Aspect after-activation
HTTP status 200
Load time 0.558 s
Memory usage 3.75 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.236 s
Memory usage 3.48 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.338 s0.291 s-0.047 s3.48 MiB3.61 MiB+ 130.66 KiB
/wp-admin/edit.php0.225 s0.201 s-0.024 s3.54 MiB3.66 MiB+ 119.66 KiB
/wp-admin/post-new.php0.870 s0.666 s-0.204 s5.92 MiB6.09 MiB+ 168.89 KiB
/wp-admin/upload.php0.798 s0.364 s-0.434 s3.5 MiB3.61 MiB+ 117.26 KiB
/wp-admin/options-writing.php0.223 s0.203 s-0.020 s3.47 MiB3.59 MiB+ 120.62 KiB
/wp-admin/media-new.php0.325 s0.249 s-0.076 s3.46 MiB3.59 MiB+ 128.82 KiB
/wp-admin/edit-tags.php?taxonomy=category0.182 s0.465 s+0.283 s3.48 MiB3.61 MiB+ 133.99 KiB
/wp-admin/post-new.php?post_type=page0.700 s0.610 s-0.090 s5.92 MiB6.08 MiB+ 166.61 KiB
/wp-admin/options-discussion.php0.327 s0.280 s-0.047 s3.47 MiB3.59 MiB+ 117.13 KiB
/wp-admin/edit-comments.php0.218 s0.223 s+0.005 s3.49 MiB3.61 MiB+ 116.63 KiB
/0.337 s0.212 s-0.125 s3.48 MiB3.48 MiB- 128 bytes
Average 0.413 s0.342 s-0.071 s3.93 MiB4.05 MiB+ 120.01 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

[25-Nov-2024 02:44:18 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