Code Analysis: Custom Shipping Methods for WooCommerce 1.9.0

Function Rating Maintainability Complexity Lines of code
WC_Shipping_Alg_Custom::is_available()
C
37 29 64
WC_Shipping_Alg_Custom::calculate_shipping()
A
39 13 66
Alg_WC_Custom_Shipping_Methods_Core::get_order_item_shipping_prop()
A
54 13 19
Alg_WC_Custom_Shipping_Methods_Settings_General::get_settings()
A
32 1 143
WC_Shipping_Alg_Custom::evaluate_cost()
S
46 6 37
WC_Shipping_Alg_Custom::fee()
S
54 6 22
Alg_WC_Custom_Shipping_Methods_Core::round()
S
56 6 18
Alg_WC_Custom_Shipping_Methods::__construct()
S
57 6 16
Alg_WC_Custom_Shipping_Methods_Core::__construct()
S
54 5 20
Alg_WC_Custom_Shipping_Methods_Core::get_products_volume()
S
63 6 9
WC_Shipping_Alg_Custom::get_package_products_data()
S
59 5 14
WC_Shipping_Alg_Custom::find_shipping_classes()
S
61 4 13
Alg_WC_Settings_Custom_Shipping_Methods::maybe_reset_settings()
S
60 4 12
Alg_WC_Custom_Shipping_Methods_Core::replace_zero_cost()
S
72 4 4
Alg_WC_Custom_Shipping_Methods::is_plugin_active()
S
65 4 8
Alg_WC_Custom_Shipping_Methods_Core::get_products_weight()
S
64 4 9
WC_Shipping_Alg_Custom::get_package_item_qty()
S
64 4 9
Alg_WC_Custom_Shipping_Methods_Core::enqueue_checkout_script()
S
62 3 12
WC_Shipping_Alg_Custom::init()
S
47 1 33
Alg_WC_Settings_Custom_Shipping_Methods::get_settings()
S
53 1 24
Alg_WC_Custom_Shipping_Methods::instance()
S
72 2 6
Alg_WC_Custom_Shipping_Methods_Core::init_custom_shipping()
S
70 2 6
Alg_WC_Custom_Shipping_Methods::admin()
S
65 2 8
Alg_WC_Settings_Custom_Shipping_Methods::maybe_unsanitize_option()
S
77 2 3
Alg_WC_Custom_Shipping_Methods::csm_declare_hpos_compatibility()
S
71 2 5
Alg_WC_Custom_Shipping_Methods_Core::change_order_return_url()
S
74 2 4
Alg_WC_Custom_Shipping_Methods::action_links()
S
63 2 9
WC_Shipping_Alg_Custom::__construct()
S
60 1 13
Alg_WC_Settings_Custom_Shipping_Methods::admin_notice_settings_reset()
S
75 1 4
Alg_WC_Custom_Shipping_Methods_Core::save_evaluate_cost_args()
S
81 1 3
Alg_WC_Custom_Shipping_Methods_Core::distance()
S
79 1 3
Alg_WC_Custom_Shipping_Methods_Core::add_evaluate_cost_custom_values()
S
73 1 5
Alg_WC_Custom_Shipping_Methods_Settings_Section::__construct()
S
74 1 4
Alg_WC_Custom_Shipping_Methods_Settings_General::__construct()
S
73 1 5
Alg_WC_Custom_Shipping_Methods::includes()
S
80 1 3
Alg_WC_Custom_Shipping_Methods::plugin_path()
S
80 1 3
Alg_WC_Settings_Custom_Shipping_Methods::__construct()
S
66 1 8
Alg_WC_Custom_Shipping_Methods_Core::add_icon_and_description()
S
79 1 3
alg_wc_custom_shipping_methods()
S
82 1 3
Alg_WC_Custom_Shipping_Methods_Core::costs_table()
S
78 1 3
Alg_WC_Settings_Custom_Shipping_Methods::save()
S
77 1 4
Alg_WC_Custom_Shipping_Methods_Settings_Section::settings_section()
S
76 1 4
Alg_WC_Custom_Shipping_Methods::version_updated()
S
80 1 3
Alg_WC_Custom_Shipping_Methods::plugin_url()
S
80 1 3
Alg_WC_Custom_Shipping_Methods_Core::get_package_item_weight()
S
79 1 3
Alg_WC_Custom_Shipping_Methods_Core::get_package_item_volume()
S
79 1 3
Alg_WC_Custom_Shipping_Methods_Core::add_evaluate_cost_shortcodes()
S
70 1 6
Alg_WC_Custom_Shipping_Methods_Core::add_custom_shipping()
S
76 1 4
Alg_WC_Custom_Shipping_Methods_Core::add_evaluate_cost_custom_args_class()
S
72 1 5
Alg_WC_Custom_Shipping_Methods::add_woocommerce_settings_tab()
S
76 1 4
Alg_WC_Custom_Shipping_Methods_Core::add_evaluate_cost_custom_args_package()
S
72 1 5