Code Analysis: Chatbot ChatGPT 1.8.2

Function Rating Maintainability Complexity Lines of code
chatbot_chatgpt_settings_page_html()
D
27
30 185
chatbot_chatgpt_upgrade()
C
31 28 116
chatbot_chatgpt_kn_acquire()
C
29
18 166
chatbot_chatgpt_settings_init()
B
22
1 362
chatbot_chatgpt_enhance_with_tfidf()
B
36 18 81
chatbot_chatgpt_send_message()
B
38 19 66
chatbot_chatgpt_shortcode()
B
31 13 152
chatbot_chatgpt_back_trace()
B
43 17 44
chatbot_chatgpt_call_api()
A
35 13 86
kn_acquire_word_pairs()
A
37 12 66
chatbot_chatgpt_upload_file_to_assistant()
A
38 10 77
kn_acquire_just_the_words()
A
39 11 60
chatbot_chatgpt_export_data()
A
39 10 66
chatbot_chatgpt_simple_chart_shortcode_function()
A
42 11 47
get_chatbot_chatgpt_transients()
A
49 12 30
chatbot_chatgpt_support_section_callback()
A
100 1 182
chatbot_chatgpt_knowledge_navigator_section_callback()
A
41 8 64
addEntry()
A
50 9 29
delete_chatbot_chatgpt_transients()
A
50 9 29
set_chatbot_chatgpt_transients()
A
52 9 25
chatbot_chatgpt_knowledge_navigator_section_callback()
A
44 7 53
chatbot_chatgpt_avatar_icon_callback()
A
44 7 45
crawl_scheduled_event()
A
45 7 43
chatbot_chatgpt_interactions_table()
A
45 7 42
WebCrawler::crawl()
A
46 7 37
getTheStepsStatus()
A
47 7 35
getTheStepsStatus()
A
48 7 34
chatbot_chatgpt_enqueue_scripts()
S
37 3 88
output_results()
S
51 7 26
chatbot_chatgpt_custom_gpt_call_api()
S
45 6 40
localize_global_errorResponses()
S
43 5 48
localize_global_learningMessages()
S
43 5 48
localize_global_stopwords()
S
43 5 47
WebCrawler::computeFrequency()
S
39 5 47
test_chatgpt_api()
S
43 5 46
chatbot_chatgpt_upgrade_completed()
S
59 7 14
WebCrawler::getLinks()
S
54 6 20
chatbot_chatgpt_localize()
S
41 2 70
chatbot_chatgpt_appearance_settings()
S
41 1 81
get_chatbot_chatgpt_threads()
S
55 5 20
fetchDataUsingCurl()
S
56 5 19
WebCrawler::__construct()
S
58 5 15
chatgpt_option_updated()
S
60 5 13
getTheRunsStatus()
S
51 4 28
getTheRunsStatus()
S
51 4 27
display_option_value_admin_notice()
S
53 4 25
generate_gd_bar_chart()
S
42 2 51
chatbot_chatgpt_custom_gpt_call_api()
S
54 4 21
chatbot_chatgpt_reporting_section_callback()
S
51 3 33
chatbot_chatgpt_appearance_width_narrow_callback()
S
57 4 18
chatbot_chatgpt_appearance_width_wide_callback()
S
57 4 18
chatbot_chatgpt_conversation_log_cleanup()
S
56 4 17
addAMessage()
S
51 3 28
runTheAssistant()
S
51 3 27
runTheAssistant()
S
51 3 27
append_message_to_conversation_log()
S
52 3 26
store_top_words()
S
55 3 22
chatbot_chatgpt_kn_analysis_download_csv()
S
55 3 19
deleteUploadedFile()
S
56 3 17
chatbot_chatgpt_kn_analysis_download_csv()
S
57 3 17
chatbot_chatgpt_assistant_id_callback()
S
63 4 10
chatbot_chatgpt_assistant_id_alternate_callback()
S
63 4 10
chatbot_chatgpt_avatar_icon_set_callback()
S
59 3 14
chatbot_chatgpt_retrieve_file_id()
S
62 3 11
create_conversation_logging_table()
S
55 2 24
dbKNStore()
S
57 2 19
update_interaction_tracking()
S
56 2 19
knowledge_navigator_scan()
S
56 2 18
dbKNStoreTFIDF()
S
58 2 17
chatbot_chatgpt_appearance_text_color_custom_css_settings()
S
55 1 31
chatbot_chatgpt_appearance_text_color_callback()
S
60 2 16
chatbot_chatgpt_appearance_user_text_background_color_callback()
S
60 2 16
chatbot_chatgpt_appearance_bot_text_background_color_callback()
S
60 2 16
chatbot_chatgpt_appearance_header_background_color_callback()
S
60 2 16
chatbot_chatgpt_appearance_background_color_callback()
S
60 2 16
is_mobile_device()
S
63 3 10
set_chatbot_chatgpt_threads()
S
62 3 10
chatbot_chatgpt_kn_status_activation()
S
67 3 9
create_chatbot_chatgpt_interactions_table()
S
59 2 15
clean_specific_expired_transients()
S
58 2 15
computePairedInverseDocumentFrequency()
S
63 3 10
computeInverseDocumentFrequency()
S
63 3 10
WebCrawler::computeInverseDocumentFrequency()
S
64 3 9
chatbot_chatgpt_model_choice_callback()
S
60 2 14
chatbot_chatgpt_use_gpt_assistant_id_callback()
S
61 2 13
chatbot_chatgpt_kn_maximum_top_words_callback()
S
61 2 12
chatgpt_max_tokens_setting_callback()
S
61 2 12
chatbot_chatgpt_kn_maximum_depth_callback()
S
61 2 12
chatbot_chatgpt_kn_maximum_top_words_callback()
S
61 2 12
chatbot_chatgpt_conversation_context_callback()
S
64 2 11
display_option_value_admin_notice()
S
63 2 11
chatbot_chatgpt_gpt_assistants_section_callback()
S
100 1 25
chatbot_chatgpt_appearance_background_custom_css_settings()
S
59 1 22
addAMessage()
S
55 1 20
chatbot_chatgpt_api_model_section_callback()
S
100 1 19
createAnAssistant()
S
58 1 17
chatbot_chatgpt_settings_appearance()
S
61 1 16
chatbot_chatgpt_shortcode_enqueue_script()
S
61 1 16
getTheRunsSteps()
S
58 1 15
chatbot_chatgpt_custom_button_link_2_callback()
S
69 2 7
get_localized_stopwords()
S
66 2 8
getTheMessage()
S
59 1 15
get_plugin_version()
S
64 2 9
chatbot_chatgpt_avatar_greeting_callback()
S
66 2 9
output_results()
S
63 2 10
dismiss_chatgpt_notice()
S
74 2 5
chatbot_chatgpt_custom_button_name_1_callback()
S
69 2 7
chatbot_chatgpt_admin_notice()
S
68 2 7
chatbot_chatgpt_kn_analysis_section_callback()
S
65 2 10
chatbot_chatgpt_plugin_row_meta()
S
66 2 7
get_localized_learningMessages()
S
66 2 8
get_localized_errorResponses()
S
66 2 8
chatbot_chatgpt_general_admin_notice()
S
71 2 6
concatenateHistory()
S
69 2 7
chatbot_chatgpt_delete_chart()
S
68 2 7
createAnAssistant()
S
59 1 15
getTheRunsSteps()
S
59 1 15
getTheMessage()
S
59 1 15
chatbot_chatgpt_custom_button_link_1_callback()
S
69 2 7
chatbot_chatgpt_custom_button_name_2_callback()
S
69 2 7
dismiss_chatgpt_notice()
S
74 2 5
chatbot_chatgpt_diagnostics_section_callback()
S
60 1 15
chatbot_chatgpt_kn_analysis_section_callback()
S
65 2 10
chatbot_chatgpt_diagnostics_setting_callback()
S
60 1 14
chatbot_chatgpt_conversation_log_days_to_keep_callback()
S
60 1 14
chatbot_chatgpt_knowledge_navigator_callback()
S
60 1 14
chatbot_chatgpt_knowledge_navigator_callback()
S
60 1 14
chatbot_chatgpt_appearance_width_narrow_custom_css_settings()
S
64 1 13
chatbot_chatgpt_appearance_bot_text_background_custom_css_settings()
S
64 1 13
chatbot_chatgpt_appearance_width_wide_custom_css_settings()
S
64 1 13
chatbot_chatgpt_appearance_restore_default_settings()
S
62 1 12
chatbot_chatgpt_reporting_period_callback()
S
63 1 11
chatbot_chatgpt_suppress_learnings_callback()
S
64 1 11
chatbot_chatgpt_enable_conversation_logging_callback()
S
66 1 9
WebCrawler::getFrequencyData()
S
82 1 3
chatbot_chatgpt_appearance_reset_callback()
S
66 1 9
chatbot_chatgpt_appearance_custom_css_settings()
S
68 1 9
chatbot_chatgpt_custom_button_section_callback()
S
100 1 7
chatbot_chatbot_chatgpt_start_status_new_visitor_callback()
S
66 1 9
chatbot_chatgpt_kn_analysis_output_callback()
S
65 1 10
chatbot_chatgpt_size_conversations()
S
67 1 7
chatbot_chatgpt_allow_file_uploads_callback()
S
66 1 9
enqueue_color_picker()
S
74 1 4
chatbot_chatgpt_download_conversation_data()
S
80 1 3
chatbot_chatgpt_subsequent_greeting_callback()
S
71 1 6
chatbot_chatgpt_activate()
S
79 1 4
chatbot_chatgpt_bot_prompt_callback()
S
71 1 6
get_chat_completions_api_url()
S
80 1 3
computePairedTermFrequency()
S
75 1 4
chatbot_chatgptStartStatus_callback()
S
66 1 9
chatbot_chatgpt_count_conversations()
S
70 1 6
chatgpt_disclaimer_setting_callback()
S
66 1 9
enqueue_jquery_ui()
S
77 1 4
chatbot_chatgpt_settings_section_callback()
S
100 1 5
chatbot_chatgpt_deactivate()
S
85 1 3
enqueue_greetings_script()
S
65 1 8
chatbot_chatgpt_custom_learnings_message_callback()
S
69 1 7
chatbot_chatgpt_plugin_action_links()
S
68 1 6
my_custom_buffer_start()
S
83 1 3
chatbot_chatgpt_premium_key_callback()
S
72 1 6
get_threads_api_url()
S
80 1 3
WebCrawler::removeWordFromFrequencyData()
S
80 1 3
WebCrawler::computeTermFrequency()
S
79 1 3
chatbot_chatgpt_appearance_user_text_background_custom_css_settings()
S
67 1 10
chatbot_chatgpt_avatar_section_callback()
S
75 1 7
get_openai_api_base_url()
S
79 1 3
WebCrawler::computeTFIDF()
S
72 1 5
chatbot_chatgpt_base_url_callback()
S
71 1 6
chatbot_chatgpt_enqueue_admin_scripts()
S
78 1 3
chatbot_chatgpt_premium_section_callback()
S
100 1 5
chatbot_chatgpt_uninstall()
S
85 1 3
chatbot_chatgpt_suppress_notices_callback()
S
65 1 10
chatbot_chatgpt_suppress_attribution_callback()
S
65 1 10
chatbot_chatgpt_kn_analysis_output_callback()
S
68 1 8
chatbot_chatgpt_enable_custom_buttons_callback()
S
65 1 10
computePairedTFIDF()
S
68 1 7
chatbot_chatgpt_bot_name_callback()
S
71 1 6
chatbot_chatgpt_initial_greeting_callback()
S
71 1 6
chatbot_chatgpt_appearance_section_callback()
S
100 1 8
chatbot_chatgpt_kn_status_deactivation()
S
77 1 4
chatbot_chatgpt_custom_avatar_callback()
S
71 1 6
chatbot_chatgpt_settings_page()
S
78 1 3
chatbot_chatgpt_download_interactions_data()
S
80 1 3
computeTFIDF()
S
68 1 7
chatbot_chatgpt_api_key_callback()
S
72 1 6
get_files_api_url()
S
80 1 3
chatbot_chatgpt_appearance_header_background_custom_css_settings()
S
67 1 10
chatbot_chatgpt_width_setting_callback()
S
66 1 9
chatbot_chatgpt_api_test_callback()
S
67 1 8
computeTermFrequency()
S
76 1 4