Code Analysis: ImgSEO - AI Image Alt Text & SEO File Renamer 1.0.5

Function Rating Maintainability Complexity Lines of code
ImgSEO_Generator::process_single_generate()
D
23
41 167
Renamer_UI_Manager::render_rename_tab()
D
21
14 359
Renamer_File_Processor::update_image_references()
C
27
25 159
ImgSEO_Generator::handle_start_bulk()
C
29 26 120
Renamer_File_Processor::restore_image()
C
30 24 112
Renamer_File_Processor::rename_image()
C
30 24 111
ImgSEO_Generator::handle_generate_alt_text()
C
32 24 101
ImgSEO_Generator::process_cron_batch()
B
30 19 127
ImgSEO_Generator::handle_bulk_actions()
B
40 19 56
Renamer_UI_Manager::render_logs_tab()
A
29 1 267
ImgSEO_Settings::render_settings_page()
A
39 13 76
ImgSEO_Generator::auto_generate_alt_text()
A
41 13 54
ImgSEO_Generator::handle_stop_job()
A
40 12 60
ImgSEO_API::generate_alt_text()
A
39 11 63
IMGSEO_Init::check_image_alt_on_meta_update()
A
45 12 41
ImgSEO_Generator::handle_check_job_status()
A
40 10 57
ImgSEO_Settings::render_credits_field()
A
43 9 54
ImgSEO_Generator::generate_alt_text()
A
43 9 45
ImgSEO_Settings::register_settings()
A
32 1 163
Renamer_UI_Manager::render_renamer_page()
A
47 9 38
ImgSEO_API::get_account_details()
A
44 8 44
IMGSEO_Init::handle_attachment_update()
A
46 8 39
ImgSEO_Settings::render_api_key_field()
A
42 6 67
Renamer_Controller::ajax_restore_image()
A
52 9 22
ImgSEO_Generator::handle_delete_job()
A
46 7 42
ImgSEO_Settings::ajax_update_settings()
S
58 8 13
Media_Modal_Button::add_button_to_attachment_form()
S
47 6 38
Renamer_Controller::ajax_rename_image()
S
54 7 20
ImgSEO_Generator::check_stuck_jobs()
S
47 5 37
Media_Modal_Button::render_alt_generation_metabox()
S
49 5 36
Media_Modal_Button::get_localized_script_data()
S
50 5 26
ImgSEO_API::ajax_verify_api_key()
S
52 5 24
ImgSEO_Settings::redirect_to_active_tab()
S
55 5 20
ImgSEO_Generator::handle_delete_all_jobs()
S
54 4 21
ImgSEO_API::is_site_offline()
S
49 3 34
IMGSEO_Init::log_new_attachment()
S
56 4 18
Renamer_File_Processor::force_refresh_content_caches()
S
56 4 18
Renamer_Logs_Manager::ajax_get_logs()
S
51 3 26
ImgSEO_Settings::enqueue_admin_assets()
S
48 2 38
ImgSEO_Generator::force_cron_execution()
S
55 3 19
ImgSEO_API::ajax_refresh_credits()
S
56 3 17
ImgSEO_API::get_available_credits()
S
63 4 10
Media_Modal_Button::enqueue_admin_scripts()
S
66 4 8
Media_Modal_Button::add_body_class()
S
67 4 7
ImgSEO_Settings::render_language_field()
S
52 2 26
ImgSEO_Generator::create_logs_table_if_not_exists()
S
54 2 24
ImgSEO_Settings::render_cron_interval_field()
S
56 2 19
IMGSEO_Init::handle_rest_attachment()
S
68 3 7
Media_Modal_Button::add_alt_generation_metabox()
S
60 2 14
ImgSEO_Settings::add_admin_menu()
S
54 1 27
ImgSEO_API::ajax_disconnect_api()
S
61 2 12
ImgSEO_Settings::render_custom_prompt_field()
S
55 1 26
ImgSEO_Settings::render_update_fields()
S
54 1 25
IMGSEO_Init::register_hooks()
S
51 1 25
ImgSEO_Activator::create_jobs_table()
S
57 1 20
ImgSEO_Activator::create_logs_table()
S
57 1 19
ImgSEO_Activator::add_cron_schedules()
S
56 1 19
Renamer_Settings_Manager::register_settings()
S
57 1 19
ImgSEO_Activator::create_rename_logs_table()
S
58 1 18
Renamer_Logs_Manager::create_logs_table()
S
59 1 17
Media_Modal_Button::enqueue_common_resources()
S
60 1 16
Media_Modal_Button::instance()
S
71 2 6
Renamer_Settings_Manager::get_instance()
S
71 2 6
Renamer_File_Processor::get_instance()
S
71 2 6
ImgSEO_Activator::set_default_options()
S
59 1 15
ImgSEO_API::__construct()
S
69 2 7
Renamer_Logs_Manager::__construct()
S
63 2 10
Renamer_Logs_Manager::ajax_delete_logs()
S
64 2 9
Image_Renamer::get_instance()
S
71 2 6
Renamer_UI_Manager::get_instance()
S
71 2 6
Renamer_Controller::get_instance()
S
71 2 6
Renamer_Logs_Manager::get_instance()
S
71 2 6
ImgSEO_API::verify_api_key()
S
75 2 4
ImgSEO_Settings::render_bulk_page()
S
71 2 6
ImgSEO_Generator::render_alt_text_column()
S
70 2 6
IMGSEO_Init::init()
S
71 2 6
Renamer_Logs_Manager::log_rename_operation()
S
60 1 14
Renamer_Controller::__construct()
S
59 1 14
ImgSEO_Generator::try_trigger_cron()
S
62 1 12
Renamer_Logs_Manager::cleanup_old_logs()
S
64 1 11
Image_Renamer::__construct()
S
67 1 7
ImgSEO_Settings::render_general_section()
S
78 1 3
Renamer_File_Processor::__construct()
S
79 1 3
Media_Modal_Button::init_hooks()
S
67 1 7
ImgSEO_Settings::render_prompt_section()
S
64 1 9
ImgSEO_Settings::render_max_characters_field()
S
69 1 7
ImgSEO_Settings::render_batch_size_field()
S
69 1 7
IMGSEO_Init::on_activation()
S
76 1 4
Renamer_UI_Manager::add_admin_menu()
S
65 1 10
ImgSEO_Generator::__construct()
S
64 1 9
ImgSEO_Settings::__construct()
S
69 1 6
Image_Renamer::ajax_rename_image()
S
82 1 3
Renamer_Settings_Manager::get_log_retention_days()
S
79 1 3
Renamer_Settings_Manager::render_log_retention_field()
S
69 1 7
ImgSEO_Generator::add_alt_text_column()
S
75 1 4
ImgSEO_Generator::make_alt_text_column_sortable()
S
77 1 4
IMGSEO_Init::load_files()
S
69 1 7
ImgSEO_Generator::register_bulk_actions()
S
72 1 5
ImgSEO_Settings::render_auto_section()
S
78 1 3
IMGSEO_Init::initialize_components()
S
68 1 7
Media_Modal_Button::__construct()
S
82 1 3
Media_Modal_Button::enqueue_media_scripts()
S
66 1 10
Renamer_Controller::ajax_delete_rename_logs()
S
82 1 3
ImgSEO_Settings::render_api_section()
S
78 1 3
IMGSEO_Init::on_deactivation()
S
74 1 5
ImgSEO_Activator::setup_cron_jobs()
S
70 1 6
IMGSEO_Init::__construct()
S
75 1 5
Renamer_Controller::ajax_get_rename_logs()
S
82 1 3
ImgSEO_Activator::activate()
S
73 1 6
ImgSEO_Settings::render_include_image_name_field()
S
67 1 8
ImgSEO_Settings::render_overwrite_field()
S
67 1 8
Renamer_UI_Manager::__construct()
S
78 1 3
ImgSEO_Settings::render_update_section()
S
78 1 3
Renamer_Settings_Manager::__construct()
S
79 1 3
Image_Renamer::ajax_get_rename_logs()
S
82 1 3
Image_Renamer::ajax_delete_rename_logs()
S
82 1 3
ImgSEO_Settings::render_include_page_title_field()
S
67 1 8
ImgSEO_Settings::render_auto_generate_field()
S
67 1 8
Renamer_Settings_Manager::render_renamer_section()
S
78 1 3
IMGSEO_Init::load_textdomain()
S
69 1 7