Conditional Payments and Shipping for WooCommerce 1.0.8

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

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

Memory usage: 185.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.0.3
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
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=d2d2129348
Aspect after-activation
HTTP status 200
Load time 0.304 s
Memory usage 4.04 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.197 s
Memory usage 3.64 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.334 s0.372 s+0.038 s3.73 MiB3.93 MiB+ 204.77 KiB
/wp-admin/edit.php0.189 s0.287 s+0.098 s3.76 MiB3.96 MiB+ 201.5 KiB
/wp-admin/post-new.php0.979 s1.308 s+0.329 s5.55 MiB5.76 MiB+ 212.63 KiB
/wp-admin/upload.php0.454 s0.385 s-0.069 s3.69 MiB3.89 MiB+ 201.08 KiB
/wp-admin/options-writing.php0.153 s0.173 s+0.020 s3.62 MiB3.8 MiB+ 182.23 KiB
/wp-admin/media-new.php0.452 s0.202 s-0.250 s3.67 MiB3.87 MiB+ 202.5 KiB
/wp-admin/edit-tags.php?taxonomy=category0.185 s0.207 s+0.022 s3.69 MiB3.89 MiB+ 203.72 KiB
/wp-admin/post-new.php?post_type=page1.022 s0.934 s-0.088 s5.55 MiB5.75 MiB+ 208.22 KiB
/wp-admin/options-discussion.php0.218 s0.345 s+0.127 s3.6 MiB3.8 MiB+ 202.81 KiB
/wp-admin/edit-comments.php0.218 s0.234 s+0.016 s3.7 MiB3.9 MiB+ 203.62 KiB
/0.282 s0.219 s-0.063 s3.62 MiB3.64 MiB+ 18.98 KiB
Average 0.408 s0.424 s+0.016 s4.02 MiB4.2 MiB+ 185.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,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

The log file is empty.

See also: All tests for this plugin, How to Hide Conditional Payments and Shipping for WooCommerce Meta Boxes