YITH_WooCommerce_Question_Answer B

Total Complexity 86
Dependencies 13
Dependents 1
Total lines 958
Lines of code 522
Logical lines of code 207
Comment lines 302
Methods 34
Properties 3

Methods 34

Method Rating Maintainability Complexity Lines of code
is_new_question()
A
50 8 30
is_new_answer()
A
50 8 28
display_plugin_metabox()
A
41 5 72
get_questions()
S
49 5 32
save_plugin_metabox()
S
61 5 12
show_question_answer_tab()
S
55 4 19
add_custom_columns_content()
S
60 4 14
show_question_answer_template()
S
53 3 26
admin_enqueue_styles_scripts()
S
50 2 30
submit_answer_callback()
S
54 2 23
init_post_type()
S
47 1 38
on_plugin_init()
S
68 3 9
get_discussion()
S
65 3 9
plugin_row_meta()
S
69 3 6
before_insert_discussion()
S
65 3 9
__construct()
S
50 1 28
enqueue_styles_scripts()
S
61 2 11
get_questions_count()
S
59 1 16
get_instance()
S
72 2 6
load_privacy()
S
73 2 5
show_answers()
S
74 2 5
show_questions()
S
68 2 7
init_plugin_settings()
S
73 2 4
limit_products_creation()
S
72 2 6
remove_add_product_link()
S
70 2 7
add_plugin_metabox()
S
63 1 13
show_question()
S
65 1 11
show_answer()
S
65 1 11
create_answer()
S
68 1 7
avoid_view_post_link()
S
65 1 8
get_item()
S
76 1 4
create_question()
S
68 1 7
action_links()
S
75 1 4
add_custom_columns_title()
S
71 1 5