WooCommerce Conditional Payment Methods 1.16.3

Does "WooCommerce Conditional Payment Methods" work with WordPress 6.7.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
1Page failed to load
  • 1 403 Forbidden
No resource errors
Performance

Memory usage: 171.78 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 1,000+
WordPress.org page https://wordpress.org/plugins/woo-conditional-payment-gateways/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 2

WordPress › Error

Page screenshot: WordPress › Error
URL /wp-admin/admin.php?page=wp_cpg_settings_menu
Requested URL /wp-admin/plugins.php?action=activate&plugin=woo-conditional-payment-gateways%2Fconditional-payment-gateways.php&plugin_status=all&paged=1&s&_wpnonce=c8eda58f03
Aspect after-activation
HTTP status 403
Load time 0.301 s
Memory usage N/A
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.183 s
Memory usage 3.53 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.350 s0.340 s-0.010 s3.48 MiB3.73 MiB+ 251.76 KiB
/wp-admin/edit.php0.211 s0.213 s+0.002 s3.54 MiB3.75 MiB+ 209.41 KiB
/wp-admin/post-new.php0.857 s0.640 s-0.217 s5.92 MiB6.12 MiB+ 197.98 KiB
/wp-admin/upload.php0.789 s0.355 s-0.434 s3.49 MiB3.67 MiB+ 175.33 KiB
/wp-admin/options-writing.php0.237 s0.214 s-0.023 s3.47 MiB3.63 MiB+ 159.32 KiB
/wp-admin/media-new.php0.285 s0.208 s-0.077 s3.46 MiB3.63 MiB+ 167.52 KiB
/wp-admin/edit-tags.php?taxonomy=category0.198 s0.361 s+0.163 s3.48 MiB3.64 MiB+ 172.69 KiB
/wp-admin/post-new.php?post_type=page0.706 s0.707 s+0.001 s5.92 MiB6.1 MiB+ 189.52 KiB
/wp-admin/options-discussion.php0.302 s0.277 s-0.025 s3.47 MiB3.63 MiB+ 155.82 KiB
/wp-admin/edit-comments.php0.232 s0.223 s-0.009 s3.49 MiB3.65 MiB+ 155.32 KiB
/0.521 s0.211 s-0.310 s3.48 MiB3.53 MiB+ 54.96 KiB
Average 0.426 s0.341 s-0.085 s3.93 MiB4.1 MiB+ 171.78 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
JavaScript
Language % Lines of code Comment lines Files
PHP89.2%1,98917321
JavaScript9.9%220122
CSS0.4%1001
XML0.4%1001
Total 2,229 185 25

PHP Code Analysis | More results »

Lines of code 1,932
Total complexity 422
Median class complexity 14.0
Median method complexity 1.0
Most complex class WPCPG_Condition
Most complex function wccpg_get_checkout_fields()
Classes 14
Methods 121
Functions 9

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.

Options wp_options 5

Custom Post Types 1

ID Name
vg_gateway_conditionPayment gateways conditions

Meta Boxes

{
    "vg_gateway_condition": {
        "vg_payment_gateways_mbx": {
            "title": "Payment gateways",
            "context": "advanced"
        },
        "vg_payment_gateways_conditions_mbx": {
            "title": "Conditions",
            "context": "advanced"
        }
    }
}

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide Conditional Payment Methods for WooCommerce Meta Boxes