YITH_YWGC_Backend D

Total Complexity 185
Dependencies 10
Dependents 1
Total lines 1,391
Lines of code 707
Logical lines of code 388
Comment lines 458
Methods 35
Properties 3

Methods 35

Method Rating Maintainability Complexity Lines of code
create_gift_cards_for_order()
C
33 22 91
enqueue_backend_files()
B
33 18 101
show_as_string_order_item_meta_key()
B
45 18 38
set_gift_card_category_to_media()
A
49 14 28
update_gift_card_amount_on_order_status_change()
A
49 13 27
post_updated_messages()
A
44 7 41
order_status_changed()
A
52 8 23
update_totals_on_save_order_items()
A
47 7 34
set_gift_card_category_to_product()
S
58 8 14
redirect_gift_cards_link()
S
54 7 19
start_race_condition()
S
48 5 40
filter_gift_card_page_query()
S
53 6 23
save_gift_card()
S
59 6 14
save_gift_card_data()
S
56 5 19
show_gift_cards_total_before_order_totals()
S
56 3 18
ywgc_custom_condition_to_create_gift_card_call_back()
S
67 4 7
show_gift_card_code_on_order_item()
S
58 3 15
add_cpt_table_class()
S
62 3 11
end_race_condition()
S
59 2 17
generate_gift_card_for_order()
S
67 3 8
__construct()
S
49 1 28
show_formatted_date()
S
67 2 7
get_category_select()
S
64 2 9
show_gift_card_amount_list()
S
66 2 8
show_inventory_tab()
S
70 2 6
update_taxonomy_count()
S
64 2 8
add_gift_card_product_type()
S
70 2 6
show_gift_card_product_settings()
S
72 2 6
get_instance()
S
72 2 6
bulk_post_updated_messages()
S
62 1 10
show_postbox_only_for_gift_card_products()
S
77 1 4
show_tax_class_for_gift_cards()
S
77 1 5
show_sold_individually_for_gift_cards()
S
78 1 8
hide_item_meta()
S
77 1 4
hide_postbox_only_for_gift_card_products()
S
77 1 4