Code Analysis: AI Content Writer 1.6.0

Function Rating Maintainability Complexity Lines of code
AIContentWriter\Admin\Actions::handle_generate_content()
D
23
42 178
aicw_generate_content()
C
33 23 99
AIContentWriter\Admin\Dashboard::get_statistics()
A
36 13 81
AIContentWriter\Admin\Actions::handle_edit_campaign()
A
41 14 52
AIContentWriter\Admin\Dashboard::get_data()
A
38 12 74
aicw_generate_titles()
A
36 10 89
AIContentWriter\Admin\Actions::handle_add_campaign()
A
43 12 47
Cron::generate_titles()
A
42 11 53
Plugin::generate_openai_content()
A
41 10 52
Cron::generate_thumbnails()
A
44 9 45
AIContentWriter\Admin\Actions::handle_set_featured_image()
A
46 9 36
AIContentWriter\Admin\Admin::handle_list_table_actions()
A
48 9 30
AIContentWriter\Admin\Actions::handle_settings()
A
50 9 26
Cron::publish_posts()
A
47 7 38
aicw_temp_post_needs_update()
S
57 7 17
aicw_campaign_needs_update()
S
45 4 52
Cron::generate_content()
S
48 5 34
AIContentWriter\Admin\Actions::handle_delete_temp_post()
S
51 5 30
Plugin::generate_content()
S
46 4 41
Plugin::generate_images()
S
52 5 23
AIContentWriter\Admin\Admin::campaigns_page()
S
56 5 18
AIContentWriter\Admin\ListTables\CampaignsListTable::prepare_items()
S
49 4 30
Cron::schedule_cron()
S
60 5 14
AIContentWriter\Admin\Admin::enqueue_scripts()
S
51 3 27
aicw_render_external_image()
S
53 3 26
aicw_get_campaign()
S
65 4 9
Plugin::display_flash_notices()
S
60 3 14
AIContentWriter\Admin\Admin::generate_content_page()
S
62 3 11
PostTypes::register_cpt()
S
47 1 36
PostTypes::register_temp_cpt()
S
47 1 36
aicw_get_campaigns()
S
59 2 14
Plugin::action_links()
S
59 2 14
AIContentWriter\Admin\Admin::load_campaigns_page()
S
61 2 13
Plugin::flash_notice()
S
61 2 13
aicw_get_post_by_title()
S
61 2 12
AIContentWriter\Admin\Admin::screen_option()
S
63 2 12
AIContentWriter\Admin\Admin::admin_menu()
S
58 1 19
AIContentWriter\Admin\ListTables\CampaignsListTable::column_name()
S
57 1 15
Plugin::init()
S
67 2 9
aicw_convert_openai_markdown_to_html()
S
58 1 15
AIContentWriter\Admin\ListTables\CampaignsListTable::column_date()
S
65 2 8
Plugin::activate()
S
71 2 6
Plugin::create()
S
70 2 6
AIContentWriter\Admin\ListTables\CampaignsListTable::column_status()
S
65 2 9
AIContentWriter\Admin\Admin::campaigns_menu()
S
63 1 11
AIContentWriter\Admin\ListTables\CampaignsListTable::get_sortable_columns()
S
71 1 6
Cron::__construct()
S
68 1 7
Plugin::includes()
S
77 1 4
Plugin::init_hooks()
S
69 1 6
AIContentWriter\Admin\ListTables\CampaignsListTable::column_cb()
S
79 1 3
PostTypes::__construct()
S
75 1 4
AIContentWriter\Admin\Admin::get_screen_ids()
S
68 1 9
AIContentWriter\Admin\Admin::settings_page()
S
80 1 3
AIContentWriter\Admin\ListTables\CampaignsListTable::no_items()
S
80 1 3
AIContentWriter\Admin\Admin::__construct()
S
63 1 10
AIContentWriter\Admin\Actions::__construct()
S
66 1 8
AIContentWriter\Admin\Admin::help_menu()
S
65 1 10
Plugin::__construct()
S
69 1 7
AIContentWriter\Admin\ListTables\CampaignsListTable::get_primary_column_name()
S
82 1 3
AIContentWriter\Admin\ListTables\CampaignsListTable::get_hidden_columns()
S
80 1 3
AIContentWriter\Admin\Admin::is_add_screen()
S
78 1 3
ai_content_writer()
S
80 1 3
AIContentWriter\Admin\ListTables\CampaignsListTable::column_description()
S
74 1 4
AIContentWriter\Admin\Admin::help_page()
S
80 1 3
AIContentWriter\Admin\Admin::generate_content_menu()
S
65 1 10
AIContentWriter\Admin\Admin::settings_menu()
S
65 1 10
AIContentWriter\Admin\ListTables\CampaignsListTable::__construct()
S
65 1 10
AIContentWriter\Admin\Dashboard::__construct()
S
79 1 3
aicw_get_campaign_target_max_limit()
S
75 1 4
AIContentWriter\Admin\ListTables\CampaignsListTable::get_bulk_actions()
S
73 1 5
AIContentWriter\Admin\Admin::dashboard_page()
S
80 1 3
aicw_ai_content_writer()
S
76 1 4
aicw_update_last_run_time()
S
67 1 9
Plugin::define_constants()
S
75 1 7
AIContentWriter\Admin\Admin::is_edit_screen()
S
78 1 3
AIContentWriter\Admin\ListTables\CampaignsListTable::get_columns()
S
64 1 10