Alg_WC_Cost_of_Goods_Orders D

Total Complexity 262
Dependencies 5
Dependents 1
Total lines 1,740
Lines of code 988
Logical lines of code 536
Comment lines 600
Methods 45
Properties 32

Methods 45

Method Rating Maintainability Complexity Lines of code
update_order_items_costs()
D
11
76 330
order_admin_notice()
A
50 17 23
add_hooks()
A
39 11 62
manage_payment_gateways()
A
41 10 60
recalculate_order_ajax()
A
48 10 34
add_order_columns()
A
51 10 26
sort_hpos_admin_orders()
A
48 9 36
render_order_columns()
A
54 10 18
new_order_item_ajax()
A
60 9 12
save_order_items_ajax()
A
57 8 16
avoid_empty_order_metadata_saving()
S
60 6 13
update_order_item_costs_on_order_meta_update()
S
54 5 20
add_cost_input_shop_order()
S
56 5 16
add_handling_fee_input_shop_order()
S
56 5 16
save_cost_input_shop_order_new()
S
58 5 15
save_cost_input_shop_order_save_post()
S
56 4 19
get_array_value_by_dynamic_keys()
S
63 5 10
get_options()
S
44 2 42
add_fees_to_profit_meta_key_to_order_cmb()
S
61 3 11
add_shipping_to_profit_meta_key_to_order_cmb()
S
61 3 11
add_taxes_to_profit_meta_key_to_order_cmb()
S
61 3 11
get_order_total_for_pecentage_fees()
S
64 3 10
get_shop_order_screen_id()
S
72 3 5
shop_order_sortable_columns()
S
65 3 9
add_order_shipping_cost_to_profit()
S
58 2 14
add_order_taxes_to_profit()
S
58 2 14
add_order_fees_to_profit()
S
58 2 14
update_order_items_costs_order_status_changed()
S
63 2 11
update_order_items_costs_new_item()
S
63 2 11
add_payment_gateways_profit_meta_key_to_order_cmb()
S
68 2 7
need_to_avoid_empty_order_metadata_saving()
S
71 2 6
hide_handling_fee_input_meta_shop_order()
S
71 2 6
hide_cost_input_meta_shop_order()
S
71 2 6
trigger_woocommerce_new_order_on_new_order_via_rest()
S
67 2 8
save_cost_input_shop_order_new_by_order()
S
68 2 8
get_shipping_total_for_percentage_fees()
S
65 2 9
wf_pklist_remove_cog_meta()
S
71 2 6
update_order_items_costs_on_new_order()
S
63 2 10
get_order_column_key()
S
76 2 3
format_order_column_value()
S
76 2 3
get_new_order_hooks_for_cost_updating()
S
63 1 12
hide_order_item_profit_meta()
S
77 1 4
includes()
S
82 1 3
shop_order_pre_get_posts_order_by_column()
S
80 1 3
__construct()
S
76 1 5