Code Analysis: Purolator Shipping Method for WooCommerce 1.0.1

Function Rating Maintainability Complexity Lines of code
MA_purolator_Shipping::weight_based_shipping()
B
34 20 88
MA_purolator_Shipping::init()
A
43 15 38
MA_purolator_Shipping::calculate_shipping()
A
44 11 42
MA_purolator_Shipping::is_available()
A
51 12 25
MoreAddons_Uninstall_feedback_Listener::deactivate_scripts()
A
35 3 155
MA_purolator_Shipping::per_item_shipping()
A
42 10 48
MA_purolator_Shipping::process_result()
A
49 11 28
MA_purolator_Shipping::add_found_rates()
A
53 9 22
MA_purolator_Shipping::prepare_rate()
A
49 7 31
WeightPacketUtil::pack_items_into_weight_box()
S
50 6 32
MA_PU_Extra_Cart_Details::__construct()
S
59 6 12
MoreAddons_Uninstall_feedback_Listener::moreaddons_uninstall_feedback()
S
47 4 35
MA_purolator_Shipping::generate_ma_pu_tab_html()
S
48 3 46
MA_purolator_Shipping::ma_get_cost_based_on_currency()
S
65 5 9
MA_purolator_Shipping::ma_get_tabs_name_url()
S
58 4 13
MA_PU_Extra_Cart_Details::ma_add_est_del_date()
S
60 4 12
MoreAddons_Uninstall_feedback_Listener::get_uninstall_reasons()
S
46 1 47
MA_purolator_Shipping::validate_services_field()
S
59 3 14
ma_pu_wc_admin_notices()
S
60 3 14
MA_purolator_Shipping::ma_get_postcode_city()
S
54 3 12
MA_purolator_Shipping::get_pu_single_array()
S
64 3 11
WeightPacketUtil::pack_all_items_into_one_box()
S
58 2 16
MA_purolator_Shipping::ma_get_package_piece()
S
65 3 9
MA_purolator_Shipping::init_form_fields()
S
64 3 10
WeightPackDescend::sort_items()
S
66 3 8
WeightPackDescend::pack_items()
S
63 2 11
MA_purolator_Shipping::createPWSSOAPClient()
S
53 1 24
MA_purolator_Shipping::get_pu_request()
S
53 1 23
ma_pu_get_deprecated_url()
S
78 2 3
ma_pu_get_order_currency()
S
75 2 4
ma_pu_get_order_shipping_postcode()
S
75 2 4
ma_pu_get_product_weight()
S
75 2 4
ma_pu_get_order_billing_email()
S
75 2 4
ma_pu_get_order_shipping_country()
S
75 2 4
ma_pu_get_order_billing_phone()
S
75 2 4
ma_pu_plugin_override()
S
70 2 7
ma_pu_get_order_shipping_company()
S
75 2 4
ma_pu_get_product_id()
S
75 2 4
ma_pu_get_product_width()
S
75 2 4
ma_pu_get_product_length()
S
75 2 4
ma_pu_get_order_shipping_first_name()
S
75 2 4
ma_pu_get_order_shipping_last_name()
S
75 2 4
ma_pu_get_product_height()
S
75 2 4
ma_pu_get_shipping_countries()
S
69 2 7
ma_pu_get_order_shipping_address_1()
S
75 2 4
MA_purolator_Shipping::debug()
S
74 2 5
ma_pu_get_settings_url()
S
78 2 3
ma_pu_get_order_shipping_address_2()
S
75 2 4
ma_pu_get_order_id()
S
75 2 4
ma_pu_get_order_shipping_city()
S
75 2 4
ma_pu_get_order_shipping_state()
S
75 2 4
MA_PU_Shipping_Class::ma_pu_plugin_action_links()
S
62 2 10
WeightPackStrategy::add_item()
S
66 2 8
MA_PU_Shipping_Class::ma_load_plugin_textdomain()
S
77 1 3
WeightPackStrategy::set_result()
S
81 1 3
WeightPackStrategy::get_packable_items()
S
82 1 3
WeightPack::get_packable_items()
S
82 1 3
MA_PU_Shipping_Class::ma_pu_shipping_method_add()
S
77 1 4
MA_PU_Shipping_Class::ma_pu_shipping_init()
S
81 1 3
WeightPackResult::get_packed_boxes()
S
82 1 3
MA_purolator_Shipping::sort_rates()
S
82 1 3
WC()
S
81 1 3
WeightPack::add_item()
S
80 1 3
WeightPackDescend::__construct()
S
81 1 3
WeightPackStrategy::__construct()
S
80 1 3
WeightPackResult::set_unpacked_items()
S
81 1 3
WeightPackStrategy::get_max_weight()
S
82 1 3
WeightPackStrategy::pack_items()
S
100 1 0
WeightPackResult::get_errors()
S
82 1 3
WeightPackResult::get_unpacked_items()
S
82 1 3
MA_PU_Shipping_Class::__construct()
S
67 1 7
WeightPackResult::set_packed_boxes()
S
81 1 3
WeightPack::set_max_weight()
S
82 1 3
WeightPackStrategy::get_result()
S
82 1 3
WeightPack::get_result()
S
82 1 3
MA_purolator_Shipping::admin_options()
S
81 1 3
WeightPackStrategy::set_max_weight()
S
81 1 3
WeightPack::__construct()
S
77 1 4
MA_purolator_Shipping::__construct()
S
67 1 7
WeightPackResult::set_error()
S
80 1 3
MoreAddons_Uninstall_feedback_Listener::__construct()
S
72 1 5
WeightPack::pack_items()
S
78 1 4