Code Analysis: WooCommerce Conditional Payment Methods 1.11.0

Function Rating Maintainability Complexity Lines of code
wccpg_get_checkout_fields()
D
28
48 115
WPCPG_Condition::is_valid()
B
42 23 51
Vg_Payment_Gateways_Conditions_Frontend_Filter::check_vg_payment_gateways_conditions()
B
39 17 65
Vg_Payment_Gateways_Conditions_Metaboxes_Html::condition_table_row()
A
40 10 73
wccpg_trigger_update_checkout_on_change()
A
47 11 33
Vg_Payment_Gateways_Conditions_Frontend_Filter::filter_payment_gateways()
A
42 9 54
WP_CPG_Helpers::payment_gateways_options_array()
A
51 10 26
WP_CPG::condition_select_2_search()
A
45 7 41
Vg_Payment_Gateway_Conditions_Metaboxes::save_metaboxes()
S
53 7 21
WC_Conditional_Payment_Gateways_Dist::init()
S
48 6 31
WPCPG_Condition::condition_is_valid()
S
52 6 23
Vg_Payment_Gateways_Conditions::delete_conditions()
S
51 5 28
WP_CPG::testing()
S
52 5 24
WP_CPG_Helpers::get_customer_completed_orders()
S
54 5 20
Vg_Payment_Gateways_Conditions_Metaboxes_Html::conditions_mbx_html()
S
49 4 34
WP_CPG_Helpers::get_conditions_groups_html_options()
S
54 5 19
Vg_Payment_Gateways_Conditions_Metaboxes_Html::conditions_group()
S
50 4 32
WP_CPG_Enqueues::payment_gateway_conditions_enqueues()
S
48 4 31
WP_CPG_Helpers::get_options_html_formatted()
S
56 5 16
WP_CPG_Helpers::get_active_conditions_saved_data()
S
59 5 15
WP_CPG_Enqueues::options_page_enqueues()
S
55 4 20
WP_CPG_Settings_Views::get_payment_gateway_conditions_posts()
S
55 4 20
wccpg_tease_premium_condition_options()
S
55 4 19
Vg_Payment_Gateway_Conditions_Metaboxes::sanitize_groups()
S
57 4 18
WP_CPG::wp_init()
S
61 4 13
WPCPG_Condition::init_operators()
S
51 3 28
WP_CPG_Settings::settings_menu_page_display()
S
56 3 18
WP_CPG_Settings_Views::enable_conditional_payment_gateways_option_view()
S
58 3 18
wccpg_fs()
S
50 2 30
Vg_Payment_Gateways_Conditions::redirect_on_post_save()
S
69 4 6
WP_CPG_Helpers::get_states()
S
61 3 13
WP_CPG_Helpers::get_optgroups_options_html_formatted()
S
60 3 13
Vg_Payment_Gateways_Conditions_Frontend_Filter::toggle_body_class()
S
58 2 22
WP_CPG_Settings_Views::insert_post_row()
S
54 2 22
Vg_Payment_Gateways_Conditions_Metaboxes_Html::payment_gateways_mbx_html()
S
49 1 33
WP_CPG_Settings::zero_payment_gateways_message_option_view()
S
59 2 17
WPCPG_Subtotal_Ext_Taxes::get_cart_value()
S
64 3 10
WC_Conditional_Payment_Gateways_Dist::late_init()
S
63 3 10
WPCPG_Subtotal::get_cart_value()
S
64 3 10
WP_CPG_Settings_Views::payment_gateway_conditions_option_view()
S
52 1 30
WPCPG_Total::get_cart_value()
S
64 3 10
WP_CPG_Settings_Views::count_conditions()
S
64 3 10
WP_CPG_Helpers::get_successful_orders_by_billing_email()
S
60 2 14
WPCPG_Condition::prepare_float_values()
S
62 2 12
WPCPG_Condition::prepare_int_values()
S
62 2 12
WPCPG_Condition::prepare_non_numeric_values()
S
62 2 12
WP_CPG_Helpers::products_options_array()
S
62 2 12
WP_CPG_Helpers::get_categories()
S
62 2 12
WP_CPG_Helpers::get_shipping_classes()
S
62 2 12
WP_CPG_Helpers::get_coupons()
S
63 2 11
Vg_Payment_Gateways_Conditions::__construct()
S
55 1 20
WP_CPG_Helpers::get_conditions_groups()
S
59 1 17
WP_CPG_Settings::all_settings()
S
58 1 16
WP_CPG::get_instance()
S
67 2 8
WPCPG_Condition::add_condition()
S
66 2 9
WP_CPG_Helpers::get_user_roles()
S
63 2 10
WPCPG_Condition::getHtml_operators()
S
69 2 7
Vg_Payment_Gateways_Conditions_Frontend_Filter::filter_no_payment_gateways_message()
S
69 2 7
WC_Conditional_Payment_Gateways_Dist::get_modules_list()
S
68 2 7
WC_Conditional_Payment_Gateways_Dist::get_instance()
S
69 2 7
WP_CPG_Helpers::get_instance()
S
71 2 6
WP_CPG::__wakeup()
S
79 1 3
WP_CPG::__clone()
S
80 1 3
wccpg_tease_invite_pro_after_condition_groups()
S
68 1 8
WPCPG_Subtotal_Ext_Taxes::get_html_input()
S
79 1 3
WP_CPG::late_init()
S
71 1 6
WPCPG_Condition::setOperators()
S
82 1 3
WP_CPG::init()
S
72 1 5
WPCPG_Total::prepare_values()
S
79 1 3
WP_CPG_Settings::__construct()
S
82 1 3
WPCPG_Condition::setHtml_operators()
S
80 1 3
WP_CPG_Enqueues::enqueue_all()
S
77 1 4
WP_CPG_Helpers::user_details_optgroup_options_array()
S
64 1 10
WPCPG_Subtotal::__construct()
S
68 1 7
WP_CPG_Helpers::get_stock_status_array()
S
69 1 7
WP_CPG::__construct()
S
91 1 2
Vg_Payment_Gateways_Conditions_Frontend_Filter::init()
S
75 1 4
Vg_Payment_Gateway_Conditions_Metaboxes::metaboxes()
S
67 1 8
WPCPG_Condition::getHas_container_operators()
S
83 1 3
Vg_Payment_Gateways_Conditions::remove_support()
S
80 1 3
WPCPG_Condition::setGroup()
S
82 1 3
WP_CPG_Settings::init()
S
75 1 4
WPCPG_Condition::setIs_numeric()
S
82 1 3
WP_CPG_Enqueues::__construct()
S
82 1 3
WP_CPG::remove_directory_dots()
S
75 1 5
WPCPG_Condition::get_html_input()
S
100 1 0
WPCPG_Subtotal::get_html_input()
S
79 1 3
WPCPG_Condition::getCondition_assoc()
S
82 1 3
Vg_Payment_Gateway_Conditions_Metaboxes::init()
S
75 1 4
WP_CPG_Helpers::products_options_html_formatted()
S
77 1 3
Vg_Payment_Gateways_Conditions_Frontend_Filter::__construct()
S
82 1 3
WPCPG_Condition::get_html_option()
S
76 1 3
WPCPG_Condition::setHas_container_operators()
S
82 1 3
WPCPG_Subtotal::prepare_values()
S
79 1 3
WPCPG_Total::get_html_input()
S
79 1 3
WPCPG_Condition::setCondition_key()
S
82 1 3
WP_CPG_Helpers::get_conditions()
S
79 1 3
WPCPG_Condition::init()
S
78 1 3
WPCPG_Condition::setCondition_assoc()
S
81 1 3
WPCPG_Total::__construct()
S
68 1 7
WC_Conditional_Payment_Gateways_Dist::__get()
S
83 1 3
wccpg_add_settings_page_intro()
S
81 1 3
WPCPG_Condition::add_to_condition_assoc()
S
80 1 3
WC_Conditional_Payment_Gateways_Dist::__construct()
S
91 1 2
Vg_Payment_Gateways_Conditions::register()
S
80 1 3
WCCPG()
S
82 1 3
WPCPG_Subtotal_Ext_Taxes::__construct()
S
68 1 7
WP_CPG_Helpers::payment_gateways_options_html_formatted()
S
79 1 3
WPCPG_Condition::getLabel()
S
83 1 3
wccpg_enable_assets_on_settings_page()
S
77 1 4
WPCPG_Condition::getIs_numeric()
S
83 1 3
WCCPG_Helpers()
S
82 1 3
WP_CPG::activation_hook()
S
81 1 3
WP_CPG_Settings::settings_menu()
S
78 1 3
WPCPG_Condition::prepare_values()
S
100 1 0
WPCPG_Condition::init_condition_assoc()
S
65 1 9
WP_CPG_Helpers::__construct()
S
91 1 2
Vg_Payment_Gateways_Conditions::init()
S
67 1 7
Vg_Payment_Gateway_Conditions_Metaboxes::__construct()
S
77 1 4
WPCPG_Condition::setLabel()
S
82 1 3
WPCPG_Condition::__construct()
S
64 1 10
WPCPG_Condition::get_cart_value()
S
100 1 0
WP_CPG_Enqueues::init()
S
78 1 3
WPCPG_Condition::getGroup()
S
83 1 3
WPCPG_Condition::getCondition_key()
S
83 1 3
WC_Conditional_Payment_Gateways_Dist::__set()
S
82 1 3
WP_CPG_Settings_Views::wp_cpg_section_description()
S
80 1 3
WPCPG_Subtotal_Ext_Taxes::prepare_values()
S
79 1 3
WPCPG_Condition::getOperators()
S
83 1 3