MxChat_Integrator D

Total Complexity 241
Dependencies 5
Dependents 0
Total lines 1,769
Lines of code 1,155
Logical lines of code 659
Comment lines 298
Methods 40
Properties 2

Methods 40

Method Rating Maintainability Complexity Lines of code
mxchat_handle_search_request()
D
28
38 112
mxchat_handle_chat_request()
C
29
27 124
mxchat_handle_image_search_request()
B
36 17 75
mxchat_handle_pdf_discussion()
A
40 12 61
mxchat_check_intent_and_invoke_callback()
A
44 12 42
mxchat_find_relevant_content()
A
48 10 32
fetch_and_split_pdf_pages()
A
46 7 36
add_email_to_loops()
A
48 7 32
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 5 39
mxchat_interpret_search_query()
S
47 5 35
mxchat_handle_product_inquiry()
S
49 5 31
mxchat_handle_add_to_cart_intent()
S
50 5 29
mxchat_store_product_embedding()
S
55 5 17
mxchat_extract_product_id_from_message()
S
57 5 17
mxchat_handle_product_change()
S
60 5 14
mxchat_generate_embedding()
S
50 4 29
mxchat_generate_response()
S
59 5 13
mxchat_handle_checkout_intent()
S
52 4 25
find_relevant_pdf_pages()
S
56 4 18
mxchat_fetch_woocommerce_products()
S
50 3 30
mxchat_handle_order_history()
S
63 5 9
mxchat_generate_dalle_image()
S
50 3 28
mxchat_enqueue_scripts_styles()
S
46 2 39
mxchat_fetch_conversation_history_for_ai()
S
60 3 14
mxchat_fetch_conversation_history()
S
59 3 14
fetch_content_with_product_links()
S
59 3 14
mxchat_generate_image()
S
53 2 22
__construct()
S
53 2 22
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_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
mxchat_handle_email_capture()
S
66 1 7