MxChat_Integrator C

Total Complexity 103
Dependencies 3
Dependents 0
Total lines 833
Lines of code 572
Logical lines of code 315
Comment lines 111
Methods 24
Properties 2

Methods 24

Method Rating Maintainability Complexity Lines of code
mxchat_handle_chat_request()
C
29
27 127
mxchat_find_relevant_content()
A
49 8 31
mxchat_generate_response_xai()
S
45 6 41
mxchat_generate_response_openai()
S
45 6 41
mxchat_calculate_cosine_similarity()
S
56 7 18
mxchat_generate_response_claude()
S
46 4 42
mxchat_store_product_embedding()
S
55 5 17
mxchat_generate_embedding()
S
50 4 29
mxchat_handle_product_change()
S
60 5 14
mxchat_generate_response()
S
59 5 13
mxchat_fetch_woocommerce_products()
S
50 3 30
fetch_content_with_product_links()
S
59 3 14
mxchat_fetch_conversation_history()
S
59 3 14
__construct()
S
54 2 20
mxchat_save_chat_message()
S
55 2 19
mxchat_check_pre_chat_message_status()
S
62 2 12
mxchat_fetch_conversation_history_for_ajax()
S
63 2 11
mxchat_enqueue_scripts_styles()
S
52 1 25
add_email_to_loops()
S
54 1 21
mxchat_handle_product_delete()
S
66 2 8
mxchat_reset_rate_limits()
S
63 2 10
mxchat_get_user_identifier()
S
81 1 3
mxchat_increment_chat_count()
S
73 1 5
mxchat_dismiss_pre_chat_message()
S
68 1 7