Code Analysis: ZigZag Delivery for WooCommerce 1.4.6

Function Rating Maintainability Complexity Lines of code
ZIGZAG\Core\Settings_API::settings_fields()
D
24
56 139
ZIGZAG\Core\Settings_API::settings_fields()
D
24
56 139
ZIGZAG\Core\Zigzag::create_new_shipping()
C
32 27 86
ZIGZAG\Core\Zigzag::create_new_shipping()
C
33 26 81
ZIGZAG\Core\Print_Label::view()
B
30 7 205
ZIGZAG\Core\Print_Label::view()
B
30 7 205
ZIGZAG\Core\admin\Settings::general_settings()
A
26
2 221
ZIGZAG\Core\admin\Settings::general_settings()
A
27
2 215
ZIGZAG\Core\Frontend\Pickup::pickup_select()
A
44 11 45
ZIGZAG\Core\Frontend\Pickup::pickup_select()
A
44 11 45
ZIGZAG\Core\Admin::orders_delivery_column()
A
47 8 33
ZIGZAG\Core\Admin::orders_delivery_column()
A
47 8 33
ZIGZAG\Core\Zigzag::create_shipping_label()
A
46 8 31
ZIGZAG\Core\Zigzag::create_shipping_label()
A
46 8 31
ZIGZAG\Core\Zigzag::get_shipping_data()
A
45 7 38
ZIGZAG\Core\Zigzag::get_shipping_data()
A
45 7 38
ZIGZAG\Core\Admin::ajax_new_shipping()
A
54 8 21
ZIGZAG\Core\Zigzag::get_address()
S
52 7 25
ZIGZAG\Core\Zigzag::get_address()
S
52 7 25
ZIGZAG\Core\Zigzag::post()
S
46 6 39
ZIGZAG\Core\admin\Metabox::add_order_metabox()
S
52 7 24
ZIGZAG\Core\Zigzag::post()
S
46 6 39
ZIGZAG\Core\admin\Metabox::add_order_metabox()
S
52 7 24
ZIGZAG\Core\Frontend\My_Account::view_order()
S
51 7 23
ZIGZAG\Core\admin\Metabox::after()
S
51 7 23
ZIGZAG\Core\Zigzag::__construct()
S
53 6 24
ZIGZAG\Core\Zigzag::__construct()
S
53 6 24
ZIGZAG\Core\Frontend\My_Account::view_order()
S
52 6 23
ZIGZAG\Core\admin\Metabox::after()
S
51 6 23
ZIGZAG\Core\Admin::bulk_action()
S
54 6 22
ZIGZAG\Core\Admin::bulk_action()
S
54 6 22
ZIGZAG\Core\Frontend\Autocomplete::load_assets()
S
55 6 17
ZIGZAG\Core\Frontend\Autocomplete::load_assets()
S
55 6 17
ZIGZAG\Core\Admin::get_allowed_html()
S
40 1 86
ZIGZAG\Core\Admin::get_allowed_html()
S
40 1 86
ZIGZAG\Core\Admin::ajax_new_shipping()
S
58 5 16
ZIGZAG\Core\Plugin::check_environment()
S
58 5 14
ZIGZAG\Core\Plugin::check_environment()
S
58 5 14
ZIGZAG\Core\admin\Metabox::before()
S
52 4 24
ZIGZAG\Core\admin\Metabox::before()
S
52 4 24
ZIGZAG\Core\Admin::load_assets()
S
53 4 19
ZIGZAG\Core\Admin::load_assets()
S
53 4 19
ZIGZAG\Core\Settings_API::settings_tabs()
S
57 4 15
ZIGZAG\Core\Settings_API::settings_tabs()
S
57 4 15
ZIGZAG\Core\Admin::print_label_endpoint()
S
61 4 13
ZIGZAG\Core\Zigzag::is_sds()
S
60 4 13
ZIGZAG\Core\Zigzag::is_pickup()
S
60 4 13
ZIGZAG\Core\Zigzag::is_pickup()
S
60 4 13
ZIGZAG\Core\Zigzag::is_sds()
S
60 4 13
ZIGZAG\Core\Admin::print_label_endpoint()
S
61 4 13
Zigzag_Shipping_Method::calculate_shipping()
S
54 3 21
Zigzag_Shipping_Method::calculate_shipping()
S
54 3 21
ZIGZAG\Core\Admin::admin_notice()
S
63 4 10
ZIGZAG\Core\Settings_API::register_settings()
S
63 4 10
ZIGZAG\Core\Settings_API::register_settings()
S
63 4 10
ZIGZAG\Core\Admin::admin_notice()
S
63 4 10
ZIGZAG\Core\Admin::register_options_page()
S
52 2 28
ZIGZAG\Core\Admin::tabs()
S
59 3 13
ZIGZAG\Core\Admin::tabs()
S
59 3 13
ZIGZAG\Core\Admin::register_options_page()
S
52 2 28
ZIGZAG\Core\Frontend\Pickup::ajax()
S
60 3 12
ZIGZAG\Core\Frontend\Pickup::ajax()
S
60 3 12
Zigzag_Shipping_Method::init_form_fields()
S
52 2 26
ZIGZAG\Core\admin\Settings::get_shipping_methods_array()
S
63 3 11
ZIGZAG\Core\admin\Settings::get_shipping_methods_array()
S
63 3 11
Zigzag_Shipping_Method::init_form_fields()
S
52 2 26
ZIGZAG\Core\Frontend\Pickup::get_cities()
S
53 2 22
ZIGZAG\Core\Frontend\Pickup::get_cities()
S
53 2 22
ZIGZAG\Core\Admin::setup_options()
S
49 1 34
ZIGZAG\Core\Settings_API::settings_form()
S
59 2 19
ZIGZAG\Core\Settings_API::settings_form()
S
59 2 19
ZIGZAG\Core\Admin::setup_options()
S
49 1 34
ZIGZAG\Core\Plugin::get_plugin_data()
S
67 3 7
ZIGZAG\Core\Admin::add_orders_delivery_column()
S
64 3 9
ZIGZAG\Core\Frontend\Pickup::validate_pickup_branch()
S
71 3 5
ZIGZAG\Core\Frontend\Autocomplete::override_default_address_fields()
S
63 3 10
ZIGZAG\Core\Frontend\Autocomplete::override_default_address_fields()
S
63 3 10
ZIGZAG\Core\Frontend\Pickup::validate_pickup_branch()
S
71 3 5
ZIGZAG\Core\Frontend\Pickup::add_branch_to_shipping_method()
S
68 3 6
ZIGZAG\Core\Frontend\Pickup::add_pickup_branch_to_order()
S
68 3 6
ZIGZAG\Core\Plugin::admin_notices()
S
62 3 10
ZIGZAG\Core\Plugin::get_plugin_data()
S
67 3 7
ZIGZAG\Core\Admin::add_orders_delivery_column()
S
64 3 9
ZIGZAG\Core\Plugin::admin_notices()
S
62 3 10
ZIGZAG\Core\Settings_API::get_options()
S
68 3 7
ZIGZAG\Core\Settings_API::get_options()
S
68 3 7
ZIGZAG\Core\Frontend\Pickup::add_branch_to_shipping_method()
S
68 3 6
ZIGZAG\Core\Frontend\Pickup::add_pickup_branch_to_order()
S
68 3 6
ZIGZAG\Core\Admin::__construct()
S
54 1 20
ZIGZAG\Core\Admin::__construct()
S
54 1 20
ZIGZAG\Core\Frontend\Pickup::load_assets()
S
63 2 10
ZIGZAG\Core\Frontend\Autocomplete::checkout_fields()
S
68 2 7
ZIGZAG\Core\Plugin::get_instance()
S
71 2 6
Zigzag_Shipping_Method::init()
S
67 2 7
ZIGZAG\Core\Frontend\Autocomplete::checkout_fields()
S
68 2 7
ZIGZAG\Core\admin\Metabox::order_metabox()
S
67 2 8
ZIGZAG\Core\Frontend\My_Account::table_shipping_data()
S
71 2 5
ZIGZAG\Core\Frontend\My_Account::track_shipping()
S
65 2 9
ZIGZAG\Core\Frontend\Pickup::load_assets()
S
63 2 10
ZIGZAG\Core\Frontend\My_Account::table_shipping_data()
S
71 2 5
ZIGZAG\Core\admin\Metabox::maybe_set_sds()
S
73 2 5
ZIGZAG\Core\Plugin::get_instance()
S
71 2 6
ZIGZAG\Core\Frontend\My_Account::track_shipping()
S
65 2 9
Zigzag_Shipping_Method::init()
S
67 2 7
ZIGZAG\Core\admin\Metabox::maybe_set_sds()
S
73 2 5
ZIGZAG\Core\admin\Metabox::order_metabox()
S
67 2 8
ZIGZAG\Core\Plugin::init()
S
58 1 14
ZIGZAG\Core\Plugin::init()
S
58 1 14
Zigzag_Shipping_Method::__construct()
S
62 1 12
Zigzag_Shipping_Method::__construct()
S
62 1 12
ZIGZAG\Core\Admin::settings_page()
S
62 1 11
ZIGZAG\Core\Admin::settings_page()
S
62 1 11
ZIGZAG\Core\Zigzag::get_shipping_locations()
S
62 1 11
ZIGZAG\Core\Zigzag::get_shipping_locations()
S
62 1 11
ZIGZAG\Core\Zigzag::add_shipping_method()
S
76 1 4
ZIGZAG\Core\Frontend\My_Account::shipping_data_column()
S
69 1 6
ZIGZAG\Core\Plugin::load_textdomain()
S
77 1 3
ZIGZAG\Core\admin\Settings::register_settings()
S
73 1 5
ZIGZAG\Core\Admin::get_option()
S
78 1 3
ZIGZAG\Core\Admin::hide_delivery_meta()
S
77 1 4
ZIGZAG\Core\Admin::admin_head()
S
77 1 9
ZIGZAG\Core\Admin::get_option()
S
78 1 3
ZIGZAG\Core\admin\Metabox::__construct()
S
79 1 3
ZIGZAG()
S
82 1 3
ZIGZAG\Core\Admin::label_create_link()
S
66 1 8
ZIGZAG\Core\admin\Settings::__construct()
S
75 1 4
ZIGZAG\Core\Print_Label::__construct()
S
77 1 4
ZIGZAG\Core\Frontend\Autocomplete::__construct()
S
72 1 5
ZIGZAG\Core\Print_Label::__construct()
S
77 1 4
ZIGZAG\Core\Plugin::view()
S
75 1 4
ZIGZAG\Core\Zigzag::add_shipping_method()
S
76 1 4
ZIGZAG\Core\Frontend\Pickup::__construct()
S
64 1 9
ZIGZAG\Core\Frontend\My_Account::__construct()
S
69 1 6
ZIGZAG\Core\Admin::add_bulk_action()
S
72 1 5
ZIGZAG\Core\Admin::label_create_link()
S
66 1 8
ZIGZAG\Core\admin\Metabox::__construct()
S
79 1 3
ZIGZAG\Core\Plugin::add_admin_notice()
S
70 1 6
ZIGZAG\Core\Frontend\My_Account::shipping_data_column()
S
69 1 6
ZIGZAG\Core\Settings_API::get_option()
S
78 1 3
ZIGZAG\Core\Zigzag::load_shipping_method()
S
80 1 3
ZIGZAG\Core\Zigzag::load_shipping_method()
S
80 1 3
ZIGZAG()
S
82 1 3
ZIGZAG\Core\admin\Settings::register_settings()
S
73 1 5
ZIGZAG\Core\admin\Settings::get_settings_form()
S
73 1 5
ZIGZAG\Core\admin\Settings::get_settings_form()
S
73 1 5
ZIGZAG\Core\Frontend\Pickup::__construct()
S
64 1 9
ZIGZAG\Core\Admin::ajax_update_status()
S
72 1 5
ZIGZAG\Core\Plugin::action_links()
S
67 1 7
ZIGZAG\Core\Admin::admin_head()
S
77 1 9
ZIGZAG\Core\Settings_API::get_option()
S
78 1 3
ZIGZAG\Core\admin\Settings::__construct()
S
75 1 4
ZIGZAG\Core\Plugin::action_links()
S
67 1 7
ZIGZAG\Core\Plugin::load_textdomain()
S
77 1 3
ZIGZAG\Core\Frontend\Autocomplete::__construct()
S
72 1 5
ZIGZAG\Core\Settings_API::__construct()
S
72 1 5
ZIGZAG\Core\Frontend\My_Account::__construct()
S
69 1 6
ZIGZAG\Core\Admin::removable_query_args()
S
69 1 7
ZIGZAG\Core\Admin::setup_delivery_types()
S
66 1 8
ZIGZAG\Core\Admin::add_bulk_action()
S
72 1 5
ZIGZAG\Core\Plugin::view()
S
75 1 4
ZIGZAG\Core\Plugin::add_admin_notice()
S
70 1 6
ZIGZAG\Core\Admin::hide_delivery_meta()
S
77 1 4
ZIGZAG\Core\Frontend::__construct()
S
73 1 5
ZIGZAG\Core\Settings_API::__construct()
S
72 1 5
ZIGZAG\Core\Admin::ajax_update_status()
S
72 1 5
ZIGZAG\Core\Admin::setup_delivery_types()
S
66 1 8
ZIGZAG\Core\Admin::removable_query_args()
S
69 1 7
ZIGZAG\Core\Frontend::__construct()
S
73 1 5