Code Analysis: AI Engine 0.5.1

Function Rating Maintainability Complexity Lines of code
Meow_MWAI_Modules_Chatbot::chat()
D
19
21 358
MeowCommon_Helpers::php_error_logs()
A
39 14 66
MeowCommon_Helpers::is_rest()
A
49 11 29
MeowCommon_Ratings::admin_notices_rating()
A
36 6 95
Meow_MWAI_Modules_Chatbot::rest_chat()
A
44 9 44
MeowCommon_Admin::__construct()
A
49 9 28
Meow_MWAI_Rest::setup_query_based_on_params()
A
52 9 27
Meow_MWAI_OpenAI::run()
A
45 8 40
Meow_MWAI_AI::runTextQuery()
A
42 7 50
Meow_MWAI_Rest::create_image()
A
42 6 49
Meow_MWAI_AI::runImageQuery()
S
45 6 42
Meow_MWAI_AI::record_image_usage()
S
52 7 26
Meow_MWAI_OpenAI::calculatePrice()
S
53 7 24
Meow_MWAI_Rest::rest_api_init()
S
38 2 97
Meow_MWAI_AI::record_usage()
S
50 6 32
Meow_MWAI_Modules_Chatbot::rest_imagesbot()
S
50 6 28
Meow_MWAI_AI::run()
S
52 6 25
Meow_MWAI_OpenAI::getPrice()
S
52 6 25
MeowCommon_Admin::custom_plugin_row_meta()
S
52 6 23
Meow_MWAI_Core::init()
S
56 6 20
MeowCommon_Rest::rest_update_option()
S
54 6 19
Meow_MWAI_Modules_Chatbot::__construct()
S
54 5 21
Meow_MWAI_OpenAI::getIncidents()
S
53 4 22
MeowCommon_Rest::rest_api_init()
S
47 2 47
Meow_MWAI_Answer::setChoices()
S
59 4 15
Meow_MWAI_Core::get_all_options()
S
60 4 13
Meow_MWAI_OpenAI::listFineTunes()
S
51 3 28
Meow_MWAI_OpenAI::create_body_for_file()
S
54 3 20
Meow_MWAI_Rest::update_post_title()
S
56 3 17
Meow_MWAI_Rest::update_post_excerpt()
S
56 3 17
MeowCommon_Ratings::__construct()
S
58 3 16
Meow_MWAI_Rest::openai_incidents()
S
58 3 15
MeowCommon_Admin::admin_menu_start()
S
57 3 15
Meow_MWAI_Admin::__construct()
S
57 3 15
Meow_MWAI_Core::get_session_id()
S
61 3 14
Meow_MWAI_Admin::admin_enqueue_scripts()
S
50 2 28
Meow_MWAI_Rest::rest_update_option()
S
59 3 13
MeowCommon_Ratings::nice_name_from_file()
S
62 3 11
MeowCommon_Admin::nice_name_from_file()
S
62 3 11
MeowCommon_Admin::get_phpinfo()
S
62 3 11
MeowCommon_Helpers::test_error()
S
63 3 11
Meow_MWAI_Rest::create_post()
S
54 2 20
MeowCommon_Admin::admin_notices_licensed_free()
S
55 2 20
Meow_MWAI_Modules_Chatbot::rest_api_init()
S
58 2 17
Meow_MWAI_Rest::make_titles()
S
57 2 16
Meow_MWAI_Rest::make_excerpts()
S
57 2 16
Meow_MWAI_QueryText::setTemperature()
S
65 3 10
Meow_MWAI_Rest::validate_updated_option()
S
65 3 9
MeowCommon_Helpers::is_asynchronous_request()
S
79 3 3
Meow_MWAI_Rest::openai_files_finetune()
S
58 2 14
Meow_MWAI_Rest::make_images()
S
59 2 13
Meow_MWAI_Rest::make_completions()
S
59 2 13
Meow_MWAI_Rest::openai_files_upload()
S
59 2 13
Meow_MWAI_Rest::openai_files_download()
S
60 2 12
Meow_MWAI_Rest::openai_finetunes_delete()
S
61 2 12
Meow_MWAI_Rest::openai_files_delete()
S
61 2 12
Meow_MWAI_Rest::curl_download()
S
62 2 11
Meow_MWAI_Core::get_text_from_postId()
S
63 2 11
Meow_MWAI_Rest::openai_files_get()
S
63 2 10
Meow_MWAI_Rest::openai_finetunes_get()
S
63 2 10
Meow_MWAI_OpenAI::getSuffixForModel()
S
67 2 7
Meow_MWAI_OpenAI::getBaseModel()
S
68 2 7
MeowCommon_Helpers::is_pagebuilder_request()
S
79 2 3
Meow_MWAI_Core::__construct()
S
67 2 7
Meow_MWAI_Core::update_options()
S
69 2 7
MeowCommon_Helpers::is_divi_builder()
S
78 2 3
MeowCommon_Helpers::is_cornerstone_builder()
S
78 2 3
MeowCommon_Issues::check_litespeed()
S
71 2 6
MeowCommon_Issues::check_plugins()
S
75 2 5
MeowCommon_Ratings::create_rating_date()
S
63 2 10
MeowCommon_Ratings::nice_short_url_from_file()
S
66 2 8
MeowCommon_Rest::init_once()
S
74 2 5
Meow_MWAI_Core::sanitize_options()
S
68 2 8
MeowCommon_Rest::get_all_options()
S
67 2 8
Meow_MWAI_QueryText::setStop()
S
74 2 5
Meow_MWAI_Rest::__construct()
S
68 2 7
Meow_MWAI_Rest::createValidationResult()
S
74 2 4
Meow_MWAI_Modules_Chatbot::apply_chat_styles()
S
64 2 9
Meow_MWAI_Admin::admin_menu()
S
62 1 11
Meow_MWAI_Admin::admin_bar_menu()
S
62 1 11
Meow_MWAI_OpenAI::listFiles()
S
79 1 3
Meow_MWAI_OpenAI::deleteFile()
S
78 1 3
Meow_MWAI_Query::setMaxResults()
S
81 1 3
MeowCommon_Admin::meowapps_hide_dashboard_callback()
S
69 1 6
Meow_MWAI_OpenAI::uploadFile()
S
73 1 4
Meow_MWAI_AI::__construct()
S
76 1 4
MeowCommon_Rest::file_rand()
S
70 1 6
MeowCommon_Issues::__construct()
S
82 1 3
Meow_MWAI_Core::get_option()
S
75 1 4
MeowCommon_Ratings::show_meowapps_create_rating_date()
S
78 1 4
Meow_MWAI_Query::setEnv()
S
81 1 3
Meow_MWAI_Core::can_access_settings()
S
79 1 3
Meow_MWAI_Query::setApiKey()
S
81 1 3
Meow_MWAI_Admin::app_menu()
S
75 1 4
Meow_MWAI_OpenAI::downloadFile()
S
77 1 3
Meow_MWAI_Admin::ai_image_generator()
S
82 1 3
Meow_MWAI_Admin::admin_footer()
S
83 1 3
MeowCommon_Helpers::is_woocommerce_ajax_request()
S
79 1 3
MeowCommon_Rest::list_options()
S
72 1 6
Meow_MWAI_Admin::post_row_actions()
S
71 1 6
Meow_MWAI_Answer::setQuery()
S
81 1 3
Meow_MWAI_Rest::rest_all_settings()
S
71 1 6
Meow_MWAI_Modules_Chatbot::inject_chat()
S
76 1 4
Meow_MWAI_Query::setModel()
S
81 1 3
MeowCommon_Rest::file_operation()
S
74 1 4
Meow_MWAI_OpenAI::fineTuneFile()
S
67 1 8
Meow_MWAI_Core::markdown_to_html()
S
74 1 5
Meow_MWAI_Query::setSession()
S
81 1 3
MeowCommon_Admin::request_verify_ssl()
S
80 1 3
MeowCommon_Rest::rest_error_logs()
S
77 1 3
Meow_MWAI_Answer::getTotalTokens()
S
80 1 3
Meow_MWAI_Admin::admin_settings()
S
83 1 3
Meow_MWAI_Modules_Chatbot::chatgpt_style()
S
71 1 5
Meow_MWAI_Core::update_option()
S
73 1 5
Meow_MWAI_Core::can_access_features()
S
79 1 3
MeowCommon_Helpers::timer_start()
S
75 1 4
Meow_MWAI_QueryImage::__construct()
S
74 1 5
Meow_MWAI_Query::__construct()
S
81 1 3
Meow_MWAI_QueryText::setMaxTokens()
S
81 1 3
MeowCommon_Helpers::timer_log_elapsed()
S
71 1 5
MeowCommon_Helpers::is_ajax_request()
S
81 1 3
Meow_MWAI_Answer::__construct()
S
81 1 3
Meow_MWAI_Admin::is_registered()
S
79 1 3
Meow_MWAI_Modules_Chatbot::imageschat()
S
76 1 4
Meow_MWAI_OpenAI::__construct()
S
76 1 4
Meow_MWAI_OpenAI::deleteFineTune()
S
78 1 3
MeowCommon_Admin::is_registered()
S
75 1 4
MeowCommon_Admin::admin_footer_text()
S
70 1 7
Meow_MWAI_Admin::ai_playground()
S
82 1 3
MeowCommon_Admin::admin_meow_apps()
S
67 1 8
MeowCommon_Helpers::timer_elapsed()
S
78 1 3
Meow_MWAI_Query::setPrompt()
S
81 1 3
Meow_MWAI_QueryText::__construct()
S
71 1 6
MeowCommon_Rest::sql_request()
S
71 1 5
Meow_MWAI_Answer::setUsage()
S
81 1 3
Meow_MWAI_Admin::ai_content_generator()
S
82 1 3
Meow_MWAI_UI::__construct()
S
77 1 4
MeowCommon_Rest::__construct()
S
79 1 3
Meow_MWAI_AI::throwException()
S
75 1 4
MeowCommon_Rest::rest_all_settings()
S
77 1 3
MeowCommon_Rest::empty_request()
S
78 1 3
mwai_thanks_admin_notices()
S
78 1 3