MxChat_Integrator D

Total Complexity 646
Dependencies 9
Dependents 1
Total lines 4,845
Lines of code 3,334
Logical lines of code 1,679
Comment lines 783
Methods 68
Properties 6

Methods 68

Method Rating Maintainability Complexity Lines of code
mxchat_handle_chat_request()
D
11
72 339
mxchat_generate_response_xai()
D
28
28 139
mxchat_generate_embedding()
C
28
24 148
mxchat_generate_response_deepseek()
C
29 25 129
mxchat_generate_response()
C
30 22 143
mxchat_generate_response_claude_stream()
C
32 24 101
mxchat_generate_response_openai()
C
31 21 118
mxchat_generate_response_openai_stream()
B
34 20 85
mxchat_live_agent_handover()
B
30 17 124
check_rate_limit()
B
35 19 84
handle_slack_messages()
B
37 19 73
find_relevant_content_wordpress()
B
33 17 100
mxchat_check_intent_and_invoke_callback()
B
36 18 82
mxchat_handle_image_search_request()
B
35 18 79
mxchat_generate_response_gemini()
B
34 15 100
mxchat_generate_response_claude()
B
38 16 63
fetch_and_split_pdf_pages()
B
40 16 58
mxchat_handle_search_request()
B
35 14 88
mxchat_interpret_search_query()
B
44 17 40
mxchat_save_chat_message()
A
38 14 67
find_relevant_content_pinecone()
A
38 13 70
mxchat_reset_rate_limits()
A
41 14 53
handle_pdf_upload()
A
40 10 60
find_relevant_products_wordpress()
A
40 10 59
find_relevant_products_pinecone()
A
42 10 53
mxchat_fetch_conversation_history_for_ai()
A
43 9 48
mxchat_handle_pdf_discussion()
A
50 10 24
mxchat_handle_save_email_and_response()
A
48 8 30
mxchat_fetch_new_messages()
A
51 8 25
handle_slack_interaction()
A
40 5 66
add_email_to_loops()
A
48 7 32
send_new_chat_notification()
A
48 7 32
mxchat_enqueue_scripts_styles()
S
43 5 50
mxchat_check_email_provided()
S
53 7 20
mxchat_calculate_cosine_similarity()
S
56 7 18
mxchat_stream_events()
S
52 5 23
mxchat_handle_agent_response()
S
51 4 26
interpret_query_with_gemini()
S
48 3 34
find_relevant_pdf_pages()
S
56 4 18
handle_pdf_remove()
S
56 4 17
interpret_query_with_claude()
S
49 3 30
interpret_query_with_deepseek()
S
50 3 29
interpret_query_with_xai()
S
50 3 29
get_client_ip()
S
60 4 13
mxchat_generate_dalle_image()
S
50 3 28
interpret_query_with_openai()
S
50 3 28
mxchat_fetch_conversation_history()
S
55 3 21
mxchat_send_user_message_to_agent()
S
54 3 20
verify_slack_request()
S
57 3 15
mxchat_find_relevant_products()
S
64 4 9
mxchat_find_relevant_content()
S
64 4 9
fetch_content_with_product_links()
S
59 3 14
setup_rate_limit_cron_jobs()
S
62 3 12
mxchat_generate_image()
S
51 2 27
__construct()
S
46 1 38
mxchat_check_pre_chat_message_status()
S
62 2 12
register_routes()
S
55 1 22
verify_chat_session()
S
66 2 8
clear_pdf_transients()
S
63 1 11
mxchat_handle_switch_to_chatbot_intent()
S
67 1 7
mxchat_handle_word_upload()
S
82 1 3
mxchat_handle_email_capture()
S
66 1 7
mxchat_handle_word_remove()
S
82 1 3
mxchat_dismiss_pre_chat_message()
S
68 1 7
mxchat_check_word_status()
S
82 1 3
cleanup_cron_events()
S
81 1 3
mxchat_increment_chat_count()
S
73 1 5
mxchat_get_user_identifier()
S
81 1 3