MxChat_Integrator D

Total Complexity 353
Dependencies 8
Dependents 0
Total lines 2,912
Lines of code 1,964
Logical lines of code 1,037
Comment lines 451
Methods 60
Properties 4

Methods 60

Method Rating Maintainability Complexity Lines of code
mxchat_handle_search_request()
D
28
38 112
mxchat_handle_chat_request()
D
27
30 147
mxchat_handle_image_search_request()
B
36 17 75
fetch_and_split_pdf_pages()
B
40 16 58
mxchat_find_relevant_content()
A
39 14 62
mxchat_handle_product_recommendations()
A
37 13 74
mxchat_handle_pdf_discussion()
A
40 12 61
mxchat_generate_recommendations()
A
44 12 46
mxchat_check_intent_and_invoke_callback()
A
44 12 43
handle_pdf_upload()
A
40 10 60
mxchat_generate_response_openai()
A
42 9 50
mxchat_generate_response_xai()
A
42 9 49
mxchat_handle_product_inquiry()
A
41 8 55
mxchat_generate_response_claude()
A
43 8 47
mxchat_live_agent_handover()
A
36 4 98
mxchat_fetch_new_messages()
A
51 8 25
handle_slack_interaction()
A
40 5 66
add_email_to_loops()
A
48 7 32
mxchat_calculate_cosine_similarity()
S
56 7 18
mxchat_interpret_search_query()
S
47 5 35
mxchat_send_user_message_to_agent()
S
42 3 64
mxchat_call_ai_api()
S
45 4 43
mxchat_handle_checkout_intent()
S
51 5 27
mxchat_handle_add_to_cart_intent()
S
52 5 26
mxchat_stream_events()
S
52 5 23
mxchat_store_product_embedding()
S
55 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_agent_response()
S
51 4 27
mxchat_handle_order_history()
S
50 4 26
find_relevant_pdf_pages()
S
56 4 18
handle_pdf_remove()
S
57 4 17
mxchat_enqueue_scripts_styles()
S
44 2 45
mxchat_fetch_woocommerce_products()
S
50 3 30
mxchat_generate_dalle_image()
S
50 3 28
mxchat_fetch_conversation_history()
S
55 3 21
verify_slack_request()
S
57 3 15
mxchat_get_recommendations_from_order_history()
S
58 3 15
fetch_content_with_product_links()
S
59 3 14
mxchat_fetch_conversation_history_for_ai()
S
60 3 14
__construct()
S
49 2 29
mxchat_save_chat_message()
S
51 2 26
mxchat_generate_image()
S
53 2 22
mxchat_generate_ai_recommendation_prompt()
S
55 2 19
mxchat_check_pre_chat_message_status()
S
62 2 12
mxchat_fetch_conversation_history_for_ajax()
S
63 2 11
register_routes()
S
58 1 17
mxchat_get_general_recommendations()
S
59 1 16
verify_chat_session()
S
66 2 8
mxchat_fetch_ai_response()
S
74 2 4
mxchat_handle_product_delete()
S
66 2 8
mxchat_reset_rate_limits()
S
63 2 10
clear_pdf_transients()
S
71 1 6
mxchat_get_user_identifier()
S
81 1 3
mxchat_get_recommendations_from_cart()
S
66 1 8
mxchat_dismiss_pre_chat_message()
S
68 1 7
mxchat_handle_switch_to_chatbot_intent()
S
67 1 7
mxchat_increment_chat_count()
S
73 1 5
mxchat_handle_email_capture()
S
66 1 7