Code Analysis: Conditional Payments and Shipping for WooCommerce 1.0.11

Function Rating Maintainability Complexity Lines of code
RSPW_Payment_Filter::exclude_payment_gateways()
A
54 10 19
RSPW_Admin::get_rule_type_operators()
S
57 8 13
RSPW_Shipping_Conditions_Meta_Box::get_shipping_methods()
S
52 6 24
RSPW_Payment_Filter::is_condition_match()
S
57 5 17
RSPW_Shipping_Filter::is_condition_match()
S
57 5 17
RSPW_Shipping_Conditions_Meta_Box::rules_metabox()
S
42 2 60
RSPW_Payment_Conditions_Meta_Box::rules_metabox()
S
42 2 60
RSPW_Shipping_Filter::exclude_package_shipping_methods()
S
59 5 14
RSPW_Admin::print_rules()
S
57 4 16
RSPW_Bootstrap::rules_and_operations_autoloader()
S
59 4 14
RSPW_Coupon_Code_Rule::validate()
S
60 4 12
RSPW_Admin::register_post_types()
S
43 1 56
RSPW_Shipping_Filter::is_rate_from_condition_method()
S
61 3 12
RSPW_Shipping_Class_Rule::get_shipping_classes()
S
63 3 11
RSPW_Payment_Conditions_Meta_Box::get_payment_gateways()
S
63 3 11
RSPW_Rules_Factory::available_rules()
S
50 1 32
RSPW_Coupon_Code_Rule::get_available_coupon_codes()
S
58 2 16
RSPW_Admin::should_print_nonce()
S
63 3 10
RSPW_Loader::run()
S
66 3 8
RSPW_Meta_Box::add_rules()
S
65 3 9
RSPW::__construct()
S
62 2 12
RSPW_Meta_Box::add_pro_promotion_meta_box()
S
62 2 12
RSPW_Meta_Box::add_pro_promotion_meta_box_html()
S
69 1 20
RSPW_Shipping_Country_Rule::get_package_shipping_country()
S
71 2 6
RSPW_Cart_Total_Rule::get_currency_symbol()
S
72 2 6
RSPW_Is_Operator::match()
S
70 2 6
RSPW_Shipping_Country_Rule::get_shipping_countries()
S
72 2 6
RSPW_Bootstrap::get_instance()
S
72 2 6
RSPW_Meta_Box::get_operators()
S
69 2 7
RSPW_Operators_Factory::make()
S
68 2 7
RSPW_Shipping_Conditions_Meta_Box::get_shipping_operators()
S
69 2 6
RSPW_Payment_Conditions_Meta_Box::get_payment_operators()
S
69 2 6
RSPW_Package_Weight_Rule::get_package_weight()
S
66 2 8
RSPW_Meta_Box::get_rules_types()
S
67 2 8
RSPW_Billing_Country_Rule::get_billing_countries()
S
72 2 6
RSPW_Rules_Factory::make()
S
68 2 7
RSPW_Shipping_Class_Rule::validate()
S
63 2 10
RSPW_Is_Not_Operator::match()
S
70 2 6
RSPW::load_dependencies()
S
60 1 14
RSPW_Payment_Country_Rule::get_meta_box_fields()
S
61 1 13
RSPW_Billing_Country_Rule::get_meta_box_fields()
S
61 1 13
RSPW_Shipping_Class_Rule::get_meta_box_fields()
S
61 1 13
RSPW_Shipping_Country_Rule::get_meta_box_fields()
S
61 1 13
RSPW_Coupon_Code_Rule::get_meta_box_fields()
S
61 1 13
RSPW_Payment_Filter::get_number_of_completed_orders_by_user()
S
60 1 13
RSPW_Operators_Factory::available_operators()
S
62 1 12
RSPW_Cart_Total_Rule::get_meta_box_fields()
S
63 1 11
RSPW_Shipping_Country_Rule::validate()
S
69 1 6
RSPW_Meta_Box::__construct()
S
72 1 5
RSPW_Public::enqueue_scripts()
S
91 1 2
RSPW::get_plugin_name()
S
82 1 3
RSPW_Less_Than_Operator::match()
S
80 1 3
RSPW_Deactivator::deactivate()
S
89 1 2
RSPW_Bootstrap::__construct()
S
72 1 5
RSPW_Bootstrap::deactivate()
S
82 1 3
RSPW_Bootstrap::activate()
S
82 1 3
RSPW_Bootstrap::run()
S
81 1 3
RSPW_Payment_Filter::get_rules()
S
75 1 4
RSPW_Coupon_Code_Rule::get_operators_labels()
S
71 1 6
RSPW_Payment_Country_Rule::get_payment_country()
S
82 1 3
RSPW_Customer_Rule::get_operators_labels()
S
71 1 6
RSPW_Meta_Box::rules_metabox()
S
100 1 0
RSPW_Public::__construct()
S
77 1 4
RSPW_Shipping_Class_Rule::get_operators_labels()
S
71 1 6
RSPW_Package_Weight_Rule::validate()
S
69 1 6
RSPW_Shipping_Filter::get_conditions()
S
66 1 9
RSPW::get_version()
S
82 1 3
RSPW_Activator::activate()
S
89 1 2
RSPW_Admin::enqueue_scripts()
S
77 1 3
RSPW_Loader::__construct()
S
77 1 4
RSPW_Payment_Filter::get_conditions()
S
66 1 9
RSPW_Package_Weight_Rule::get_operators_labels()
S
68 1 7
RSPW_I18n::load_plugin_textdomain()
S
69 1 7
RSPW::run()
S
82 1 3
RSPW_Cart_Total_Rule::validate()
S
69 1 6
RSPW_Admin::__construct()
S
77 1 4
RSPW_Payment_Country_Rule::get_operators_labels()
S
71 1 6
RSPW_Equal_Operator::match()
S
80 1 3
RSPW_Loader::add_action()
S
77 1 3
RSPW::define_admin_hooks()
S
67 1 7
RSPW_Billing_Country_Rule::validate()
S
69 1 6
RSPW::set_locale()
S
75 1 4
RSPW_Payment_Filter::__construct()
S
79 1 3
RSPW_In_Operator::match()
S
78 1 3
RSPW_Customer_Rule::validate()
S
69 1 6
RSPW_Shipping_Country_Rule::get_operators_labels()
S
71 1 6
RSPW_Public::enqueue_styles()
S
91 1 2
RSPW_Package_Weight_Rule::get_meta_box_fields()
S
65 1 10
RSPW_Payment_Country_Rule::validate()
S
69 1 6
RSPW_Customer_Rule::get_package_user_email()
S
72 1 5
RSPW_Shipping_Filter::get_rules()
S
75 1 4
RSPW::define_public_hooks()
S
72 1 5
RSPW_Loader::add_filter()
S
77 1 3
RSPW_Admin::enqueue_styles()
S
77 1 3
RSPW_Loader::add()
S
64 1 10
RSPW_Not_Equal_Operator::match()
S
80 1 3
RSPW_Shipping_Filter::__construct()
S
78 1 3
RSPW_Not_In_Operator::match()
S
79 1 3
RSPW_Payment_Filter::get_gateways()
S
75 1 4
RSPW::get_loader()
S
82 1 3
RSPW_Customer_Rule::get_meta_box_fields()
S
65 1 10
RSPW_Cart_Total_Rule::get_operators_labels()
S
67 1 8
RSPW_Greater_Than_Operator::match()
S
80 1 3
RSPW_Billing_Country_Rule::get_operators_labels()
S
71 1 6