Code Analysis: Custom Shipping Methods for WooCommerce 1.6.3

Function Rating Maintainability Complexity Lines of code
WC_Shipping_Alg_Custom::is_available()
C
37 30 66
WC_Shipping_Alg_Custom::calculate_shipping()
A
41 13 51
Alg_WC_Custom_Shipping_Methods_Core::get_order_item_shipping_prop()
A
55 13 18
Alg_WC_Custom_Shipping_Methods_Settings_General::get_settings()
A
33 1 132
WC_Shipping_Alg_Custom::evaluate_cost()
S
47 6 33
WC_Shipping_Alg_Custom::fee()
S
56 6 18
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::is_plugin_active()
S
65 4 8
Alg_WC_Custom_Shipping_Methods_Core::replace_zero_cost()
S
73 4 4
Alg_WC_Custom_Shipping_Methods_Core::get_products_weight()
S
64 4 9
WC_Shipping_Alg_Custom::get_package_item_qty()
S
65 4 9
Alg_WC_Custom_Shipping_Methods_Core::enqueue_checkout_script()
S
63 3 11
WC_Shipping_Alg_Custom::init()
S
48 1 33
Alg_WC_Settings_Custom_Shipping_Methods::get_settings()
S
55 1 21
Alg_WC_Custom_Shipping_Methods::instance()
S
72 2 6
Alg_WC_Settings_Custom_Shipping_Methods::maybe_unsanitize_option()
S
78 2 3
Alg_WC_Custom_Shipping_Methods::admin()
S
67 2 7
Alg_WC_Custom_Shipping_Methods::action_links()
S
64 2 9
Alg_WC_Custom_Shipping_Methods_Core::change_order_return_url()
S
77 2 3
Alg_WC_Custom_Shipping_Methods_Core::init_custom_shipping()
S
71 2 6
WC_Shipping_Alg_Custom::__construct()
S
60 1 13
Alg_WC_Custom_Shipping_Methods_Core::costs_table()
S
79 1 3
Alg_WC_Custom_Shipping_Methods_Core::save_evaluate_cost_args()
S
82 1 3
Alg_WC_Custom_Shipping_Methods::version_updated()
S
80 1 3
Alg_WC_Custom_Shipping_Methods_Core::add_evaluate_cost_shortcodes()
S
70 1 6
Alg_WC_Custom_Shipping_Methods::add_woocommerce_settings_tab()
S
76 1 4
Alg_WC_Custom_Shipping_Methods_Core::get_package_item_volume()
S
80 1 3
Alg_WC_Custom_Shipping_Methods_Core::add_icon_and_description()
S
79 1 3
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_Core::add_evaluate_cost_custom_args_class()
S
73 1 5
Alg_WC_Custom_Shipping_Methods::plugin_path()
S
80 1 3
Alg_WC_Settings_Custom_Shipping_Methods::admin_notice_settings_reset()
S
76 1 4
Alg_WC_Custom_Shipping_Methods_Core::distance()
S
79 1 3
Alg_WC_Custom_Shipping_Methods_Settings_Section::settings_section()
S
77 1 4
Alg_WC_Custom_Shipping_Methods_Core::get_package_item_weight()
S
80 1 3
Alg_WC_Custom_Shipping_Methods_Core::add_evaluate_cost_custom_args_package()
S
73 1 5
Alg_WC_Custom_Shipping_Methods::includes()
S
80 1 3
alg_wc_custom_shipping_methods()
S
82 1 3
Alg_WC_Settings_Custom_Shipping_Methods::__construct()
S
66 1 8
Alg_WC_Custom_Shipping_Methods_Core::add_custom_shipping()
S
77 1 4
Alg_WC_Settings_Custom_Shipping_Methods::save()
S
78 1 4
Alg_WC_Custom_Shipping_Methods::plugin_url()
S
80 1 3
Alg_WC_Custom_Shipping_Methods_Core::add_evaluate_cost_custom_values()
S
73 1 5