Conditional Payments and Shipping for WooCommerce 1.0.12

Does "Conditional Payments and Shipping for WooCommerce" work with WordPress 6.6.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: 160.68 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.6.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=a7fcb47c1c
Aspect after-activation
HTTP status 200
Load time 0.247 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.210 s
Memory usage 3.47 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.340 s0.285 s-0.055 s3.47 MiB3.6 MiB+ 131.08 KiB
/wp-admin/edit.php0.188 s0.171 s-0.017 s3.54 MiB3.65 MiB+ 120.16 KiB
/wp-admin/post-new.php0.711 s0.584 s-0.127 s5.75 MiB6.04 MiB+ 293.25 KiB
/wp-admin/upload.php0.519 s0.398 s-0.121 s3.49 MiB3.6 MiB+ 116.19 KiB
/wp-admin/options-writing.php0.200 s0.174 s-0.026 s3.41 MiB3.59 MiB+ 178.99 KiB
/wp-admin/media-new.php0.212 s0.286 s+0.074 s3.4 MiB3.58 MiB+ 192.38 KiB
/wp-admin/edit-tags.php?taxonomy=category0.187 s0.195 s+0.008 s3.47 MiB3.6 MiB+ 133.55 KiB
/wp-admin/post-new.php?post_type=page0.559 s0.548 s-0.011 s5.75 MiB6.03 MiB+ 286.09 KiB
/wp-admin/options-discussion.php0.226 s0.234 s+0.008 s3.41 MiB3.58 MiB+ 180.68 KiB
/wp-admin/edit-comments.php0.215 s0.203 s-0.012 s3.49 MiB3.6 MiB+ 116.18 KiB
/0.293 s0.184 s-0.109 s3.45 MiB3.47 MiB+ 18.95 KiB
Average 0.332 s0.297 s-0.035 s3.88 MiB4.03 MiB+ 160.68 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 2 lines

[14-Sep-2024 11:27: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
[14-Sep-2024 11:27: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