MxChat_Integrator D

Total Complexity 762
Dependencies 9
Dependents 1
Total lines 5,648
Lines of code 3,886
Logical lines of code 1,993
Comment lines 900
Methods 79
Properties 7

Methods 79

Method Rating Maintainability Complexity Lines of code
mxchat_handle_chat_request()
D
4
104 422
mxchat_generate_response()
D
26
31 181
mxchat_generate_response_claude_stream()
D
26
32 159
mxchat_generate_response_xai()
D
28
28 139
mxchat_generate_response_openai_stream()
C
28
27 138
mxchat_generate_embedding()
C
28
24 148
mxchat_generate_response_deepseek()
C
29 25 129
find_relevant_content_wordpress()
C
29
21 135
mxchat_generate_response_openai()
C
31 21 118
mxchat_check_intent_and_invoke_callback()
B
32 21 104
find_relevant_content_pinecone()
B
31 20 113
mxchat_live_agent_handover()
B
30 17 124
check_rate_limit()
B
35 19 85
handle_slack_messages()
B
37 19 73
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
mxchat_handle_search_request()
B
35 14 88
fetch_and_split_pdf_pages()
B
40 16 58
mxchat_interpret_search_query()
B
44 17 40
mxchat_save_chat_message()
A
38 14 67
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
capture_testing_data()
A
49 8 29
mxchat_fetch_new_messages()
A
51 8 25
handle_slack_interaction()
A
40 5 66
mxchat_enqueue_scripts_styles()
A
42 6 51
add_email_to_loops()
A
48 7 32
send_new_chat_notification()
A
48 7 32
mxchat_start_fresh_session()
S
51 7 26
mxchat_get_kb_status()
S
50 7 26
mxchat_check_email_provided()
S
53 7 20
mxchat_calculate_cosine_similarity()
S
56 7 18
mxchat_get_system_info()
S
51 5 25
mxchat_stream_events()
S
52 5 23
process_rate_limit_message_html()
S
52 4 27
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
mxchat_get_similarity_threshold()
S
56 4 17
interpret_query_with_claude()
S
49 3 30
interpret_query_with_xai()
S
50 3 29
interpret_query_with_deepseek()
S
50 3 29
interpret_query_with_openai()
S
50 3 28
mxchat_generate_dalle_image()
S
50 3 28
get_client_ip()
S
60 4 13
mxchat_fetch_conversation_history()
S
55 3 21
mxchat_send_user_message_to_agent()
S
54 3 20
convert_markdown_links()
S
56 3 18
auto_link_urls()
S
58 3 15
mxchat_find_relevant_content()
S
64 4 9
verify_slack_request()
S
57 3 15
mxchat_find_relevant_products()
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
45 1 42
clear_complete_session_data()
S
56 2 19
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_email_capture()
S
62 1 10
mxchat_increment_chat_count()
S
73 1 5
mxchat_dismiss_pre_chat_message()
S
68 1 7
mxchat_check_word_status()
S
82 1 3
mxchat_handle_word_remove()
S
82 1 3
mxchat_handle_word_upload()
S
82 1 3
cleanup_cron_events()
S
81 1 3
mxchat_handle_switch_to_chatbot_intent()
S
67 1 7
initialize_fresh_session()
S
79 1 3
clear_word_transients()
S
71 1 6
mxchat_get_user_identifier()
S
81 1 3