Code Analysis: WordAI 1.0.4

Function Rating Maintainability Complexity Lines of code
SFTCY_Wordai::sc_wordai_get_current_content_settings()
B
52 22 18
SFTCY_Wordai_OpenAI::generate_prompt()
B
42 16 46
SFTCY_Wordai::sc_wordai_get_current_image_settings()
A
55 17 15
SFTCY_Wordai::sc_wordai_get_current_api_settings()
A
54 14 17
SFTCY_Wordai_Ajaxhandler::sc_wordai_content_settings_data()
A
48 13 28
SFTCY_Wordai_OpenAI::wordai_allowed_html_tags()
A
31 1 185
SFTCY_Wordai_Ajaxhandler::wordai_api_key_data_save()
A
47 10 35
SFTCY_Wordai_Ajaxhandler::sc_wordai_upload_image_to_wp_media()
A
46 10 33
SFTCY_Wordai_Ajaxhandler::sc_wordai_image_settings_data()
A
50 10 25
SFTCY_Wordai_OpenAI::language_list()
A
28
1 147
SFTCY_Wordai_Ajaxhandler::sc_wordai_write_suggest_titles()
S
49 7 28
SFTCY_Wordai_OpenAI::create_content()
S
45 6 41
SFTCY_Wordai_OpenAI::generate_image()
S
45 6 40
SFTCY_Wordai_Ajaxhandler::sc_wordai_apisettings_data()
S
50 7 25
SFTCY_Wordai_OpenAI::set_openai_params()
S
55 7 17
SFTCY_Wordai_Ajaxhandler::wordai_api_key_show()
S
51 6 24
SFTCY_Wordai_Ajaxhandler::admin_required_scripts()
S
38 3 64
SFTCY_Wordai_OpenAI::set_openai_image_params()
S
54 5 22
SFTCY_Wordai_Ajaxhandler::sc_wordai_upload_image_to_media_gallery()
S
49 4 31
SFTCY_Wordai_Ajaxhandler::sc_wordai_apisettings_reset_data()
S
53 4 22
SFTCY_Wordai_Ajaxhandler::sc_wordai_content_settings_reset_data()
S
53 4 22
SFTCY_Wordai_Ajaxhandler::sc_wordai_update_suggest_title()
S
54 4 20
SFTCY_Wordai_Ajaxhandler::sc_wordai_save_tags()
S
55 4 19
SFTCY_Wordai_Ajaxhandler::sc_wordai_suggested_title_number_save()
S
54 4 19
SFTCY_Wordai_Ajaxhandler::sc_wordai_generate_image()
S
55 4 18
SFTCY_Wordai::scwordai_admin_notices()
S
57 4 15
SFTCY_Wordai_OpenAI::__construct()
S
65 5 9
SFTCY_Wordai_Ajaxhandler::sc_wordai_write_titles()
S
58 4 13
SFTCY_Wordai_Ajaxhandler::sc_wordai_write_content()
S
58 4 13
SFTCY_Wordai_Ajaxhandler::sc_wordai_write_excerpt()
S
58 4 13
SFTCY_Wordai_Ajaxhandler::sc_wordai_write_tags()
S
58 4 13
SFTCY_Wordai::sc_wordai_check_post_type_excerpt_support()
S
63 4 11
SFTCY_Wordai_Ajaxhandler::sc_wordai_image_settings_reset_data()
S
55 3 20
SFTCY_Wordai_OpenAI::get_list_models()
S
55 2 19
SFTCY_Wordai_OpenAI::sc_wordai_streaming_status()
S
73 3 4
SFTCY_Wordai::wordai_openai_api_key_mask_format()
S
63 3 9
SFTCY_Wordai_Ajaxhandler::sc_wordai_image_upload_mime_type_issue()
S
70 3 6
SFTCY_Wordai::check_preactivation_requirements()
S
65 3 9
SFTCY_Wordai::add_scwordai_submenus()
S
51 1 29
SFTCY_Wordai_OpenAI::sc_wordai_stream_response()
S
60 2 13
SFTCY_Wordai_Ajaxhandler::initiate_hooks()
S
51 1 24
SFTCY_Wordai_OpenAI::openai_dalle2_image_styles()
S
54 1 21
SFTCY_Wordai::sc_wordai_api_content_settings_default_parameters()
S
58 1 16
SFTCY_Wordai_OpenAI::writing_tones()
S
58 1 16
SFTCY_Wordai_Ajaxhandler::__construct()
S
75 2 5
SFTCY_Wordai::sc_wordai_add_html_contents_at_admin_footer()
S
71 2 6
sftcy_wordai_autoloader()
S
67 2 7
SFTCY_Wordai::__construct()
S
75 2 5
SFTCY_Wordai::add_scwordai_submenus_content_settings_callback()
S
71 2 6
SFTCY_Wordai::add_scwordai_submenus_image_settings_callback()
S
71 2 6
SFTCY_Wordai::sc_wordai_add_post_row_actions()
S
65 2 8
SFTCY_Wordai_Metabox::__construct()
S
75 2 5
SFTCY_Wordai::add_scwordai_submenus_apisettings_callback()
S
71 2 6
SFTCY_Wordai::add_scwordai_submenus_settings_callback()
S
71 2 6
SFTCY_Wordai::wordai_check_output_buffering_status()
S
78 2 3
SFTCY_Wordai::scwordai_row_link()
S
68 2 7
SFTCY_Wordai::sc_wordai_api_settings_default_parameters()
S
61 1 13
SFTCY_Wordai::sc_wordai_api_image_settings_default_parameters()
S
61 1 13
SFTCY_Wordai_OpenAI::initiate_hooks()
S
80 1 3
SFTCY_Wordai_OpenAI::content_paragraphs()
S
64 1 10
SFTCY_Wordai_OpenAI::writing_styles()
S
66 1 9
SFTCY_Wordai_OpenAI::wordai_raw_contents()
S
78 1 3
SFTCY_Wordai_OpenAI::sc_curl_add_streaming_hook()
S
78 1 3
SFTCY_Wordai_OpenAI::openai_models()
S
66 1 9
SFTCY_Wordai_OpenAI::title_lengths()
S
67 1 8
SFTCY_Wordai_Metabox::initiate_hooks()
S
75 1 4
SFTCY_Wordai_OpenAI::openai_image_models()
S
69 1 7
SFTCY_Wordai_Metabox::scwordai_metabox_html_callback()
S
80 1 3
SFTCY_Wordai_OpenAI::tags_number()
S
66 1 9
SFTCY_Wordai::scwordai_load_textdomain()
S
78 1 3
SFTCY_Wordai_Metabox::wordai_add_metaboxes()
S
64 1 10
SFTCY_Wordai_OpenAI::openai_dalle3_image_styles()
S
69 1 7
SFTCY_Wordai_Ajaxhandler::sc_wordai_api_test()
S
68 1 7
SFTCY_Wordai_Autoloader::__construct()
S
73 1 6
SFTCY_Wordai_OpenAI::excerpt_words()
S
67 1 8
SFTCY_Wordai::activate()
S
76 1 4
SFTCY_Wordai::initiate_hooks()
S
62 1 10