Code Analysis: EventCalendar 1.1.46

Function Rating Maintainability Complexity Lines of code
ECWD_Display::get_events_for_long_days()
D
0
169 382
Calendar::calendar_cell()
D
0
140 398
ECWD_Display::get_event_days()
D
4
135 308
Calendar::showcal()
D
12
79 278
Calendar::__construct()
D
25
50 134
ECWD_Display::get_events()
D
21
44 212
ecwd_print_calendar()
D
27
41 114
ECWD_Display::get_repeat_rate()
D
33 34 82
ECWD_Cpt::save_meta()
D
24
26 196
ecwd_ajax()
D
36 33 65
ecwd_get_settings()
D
32 31 94
ecwd_get_settings_params()
C
18
5 415
TenWebLibConfig::set_options()
C
35 26 84
ecwd_single_event::set_metas()
C
39 27 62
ECWD::enqueue_scripts()
C
38 27 54
ECWD_Cpt::setup_cpt()
C
26
18 184
ECWD_Notices::admin_notice()
C
36 24 72
ECWD_Admin::topbar()
C
32 20 122
ECWD_Admin::activate()
B
36 23 73
ECWD_Display::__construct()
B
37 23 66
TenWebLibNotices::admin_notice()
B
37 22 64
ECWD_Event::get_event_markup()
B
35 20 76
Calendar::calendar_head()
B
34 19 90
ecwd_events_controller::yearly_recurring()
B
38 20 62
ECWD_Display::get_view()
B
42 20 45
Ecwd_pointers::set_pointers()
B
24
1 313
ecwd_events_controller::weekly_recurring()
B
40 18 54
ecwd_add_meta_tags()
B
42 18 45
ecwd_events_controller::monthly_recurring()
B
40 17 53
ECWD_Widget::widget()
B
41 17 52
ecwd_shortcode()
A
41 15 53
ecwd_print_countdown()
A
37 14 67
ECWDElementor::_register_controls()
A
30 8 155
Tax_CTP_Filter::event_restrict_manage_posts()
A
40 14 59
ecwd_custom_date_radio_callback()
A
40 14 57
ECWD_Display::get_countdown()
A
40 14 57
ECWD_Admin::enqueue_admin_scripts()
A
31 10 114
Calendar::cal_viewmode()
A
41 14 53
TenWebLibDeactivate::submit_and_deactivate()
A
43 13 41
ecwd_get_settings_field_args()
A
50 14 24
ECWD_Cpt::filterRewriteRules()
A
45 13 36
Calendar::set_json_ld()
A
43 12 44
ecwd_register_settings()
A
39 10 72
ecwd_uninstall::ecwd_display_uninstall_page()
A
36 6 130
ECWD::get_ecwd_event_date_view()
A
45 12 39
ECWD_Admin::wp_ajax_add_post()
A
45 12 38
ECWD_Admin::update_to_95()
A
37 9 81
ECWD_Admin::ecwd_freemius()
A
30 4 155
TenWebLibSubscribe::after_subscribe()
A
42 11 48
ECWD_Cpt::duplicate_post()
A
43 11 45
ECWD_Display::get_search_events_for_long_days()
A
46 11 38
ECWD_Widget::form()
A
39 9 67
migrate_data()
A
40 10 51
ECWD_Display::set_long_event()
A
47 11 35
Tax_CTP_Filter::event_table_filter()
A
44 10 45
ECWD::show_related_events()
A
50 11 27
activation_html_view()
A
38 1 177
ECWD_Admin::ecwd_page()
A
60 12 11
ECWD_Cpt::save_events()
A
51 11 25
TenWebLibNotices::admin_notice_pages()
A
53 11 22
ECWD_Notices::admin_notice_pages()
A
54 11 20
ecwd_textarea_callback()
A
52 11 20
ECWD_Cpt::add_new_venue()
A
48 10 32
ECWD_Cpt::is_events_list_page_title()
A
56 11 15
ECWD_Cpt::events_cpt_meta()
A
48 10 30
Ecwd_pointers::get_page_pointers()
A
56 11 15
ecwd_events_controller::get_recurring_events()
A
46 9 43
ECWD_Cpt::display_calendars_meta()
A
40 7 70
ecwd_events_controller::no_repeat()
A
52 10 21
ecwd_agenda_select_callback()
A
52 10 20
ecwd_events_controller::daily_recurring()
A
48 8 31
ECWD_Admin::admin_head()
A
42 6 60
ECWD_Cpt::events_archive_page_query()
A
57 9 15
ECWD::generate_timezone_string_from_utc_offset()
A
50 8 27
ecwd_events_controller::update_meta_values()
A
42 6 52
ECWD_Cpt::theme_messages()
A
46 7 36
ecwd_single_event::get_location_info()
A
49 7 36
ECWD_Cpt::calendar_messages()
A
46 7 36
ecwd_event_content()
A
54 8 21
ECWD_Event::ecwd_human_time_diff()
A
46 7 35
ECWD_Cpt::change_events_locations()
A
53 8 20
ecwd_update_select_callback()
A
54 8 18
ecwd_events_query::filter_by_date()
A
50 7 33
TenWebLibOverview::remote_get()
A
54 8 18
ECWD_Admin::ecwd_edit_template()
A
55 8 16
EcwdRestApi::update_item()
A
49 7 31
Ecwd_pointers::pointer_buttons()
A
56 8 16
ecwd_custom_radio_callback()
S
49 7 29
ECWD_Cpt::ecwd_templates()
S
59 8 13
ecwd_events_controller::get_recurring_events_from_cache()
S
51 7 27
TenWebLib::wd_overview_menu_page()
S
49 7 26
ECWD_Admin::__construct()
S
45 6 38
ECWD_Event::get_days()
S
53 7 23
EcwdRestApi::add_events()
S
53 7 22
ecwd_cats_checkbox_callback()
S
53 7 19
ECWD_Admin::display_addons_page()
S
36 1 109
ecwd_text_callback()
S
54 7 18
ecwd_radio_callback()
S
55 7 15
ECWD_Cpt::display_theme_meta()
S
38 3 74
ECWD_Cpt::ecwd_archive_order()
S
58 7 14
ECWD::get_time_zone()
S
58 7 14
Calendar::cal_next()
S
49 6 29
Calendar::getDayDate()
S
59 7 13
ECWD_Admin::display_config_page()
S
58 7 13
Calendar::getAndReplaceFirstImage()
S
51 6 27
ECWD_Cpt::__construct()
S
39 3 71
ECWD_Cpt::add_custom_post_type_to_query()
S
62 7 11
ECWD_Cpt::delete_transient()
S
53 6 22
ecwd_events_controller::calculate_recurring_events()
S
54 6 22
EcwdRestApi::register_routes()
S
49 5 35
ecwd_ajax_list()
S
47 5 35
Calendar::getWeekFirstDayDate()
S
54 6 19
ECWD_Cpt::get_image_url()
S
56 6 18
sample_data_creator()
S
39 2 77
ECWD::sanitize_array()
S
58 6 17
ECWD::setup_constants()
S
60 6 17
ECWD_Admin::wd_bp_install_notice()
S
45 4 46
ecwd_time_type_select_callback()
S
55 6 16
ecwd_order_select_callback()
S
55 6 16
ecwd_status_select_callback()
S
55 6 16
ECWDElementor::render()
S
49 5 30
ECWD_Cpt::ecwd_events_archive_page()
S
57 6 15
TenWebLibNotices::required_fields()
S
64 7 9
ECWD_Notices::required_fields()
S
64 7 9
ECWD_Config::set_show_config_submenu()
S
58 6 15
ecwd_link_callback()
S
56 6 15
Calendar::cal_previous()
S
50 5 27
Calendar::getMonthDate()
S
61 6 11
Calendar::arraySearch()
S
61 6 11
ECWD_Admin::fix_events_locations()
S
52 5 25
ecwd_events_controller::cache_recurring_events()
S
53 5 22
ECWD_Cpt::save_event_metas()
S
53 5 20
ECWD_Admin::add_calendar_shortcode()
S
56 5 18
ECWD_Admin::global_activate()
S
58 5 15
Tax_CTP_Filter::generate_taxonomy_options()
S
56 5 15
ecwd_week_select_callback()
S
56 5 15
ecwd_event_post()
S
63 6 10
ECWD_Cpt::calendar_column_content()
S
59 5 14
ECWD_Admin::add_plugin_admin_menu()
S
46 3 44
ECWD_Display::events_unique()
S
59 5 14
ECWD_Config::update_conf_file()
S
58 5 14
ecwd_checkbox_callback()
S
57 5 14
ecwd_uninstall::deactivate_plugin()
S
46 3 43
ecwd_events_controller::clear_recurring_events_cache()
S
62 5 11
EcwdRestApi::get_item()
S
53 4 24
ecwd_events_controller::clone_event()
S
53 4 22
ecwd_events_query::filter_by_calendars()
S
54 4 22
ecwd_events_query::filter_by_organizers()
S
54 4 22
ECWD_Cpt::create_taxonomies()
S
47 3 36
ECWDElementor::get_calendars()
S
54 4 20
Ecwd_pointers::print_pointer_script()
S
53 3 34
ECWD::includes()
S
56 4 19
ecwd_uninstall::get_options()
S
42 1 62
ECWD_Cpt::taxonomy_column()
S
56 4 17
Calendar::hex2RGB()
S
55 4 17
ECWD::theme_body_class()
S
57 4 17
TenWebLibNotices::wd_admin_notice()
S
62 5 10
ECWD_Notices::ecwd_admin_notice()
S
64 5 9
ECWD_Admin::ecwd_update()
S
60 4 14
ECWD_Cpt::save_categories_metas()
S
60 4 13
ECWD::wp_timezone_string()
S
60 4 13
ECWD_Admin::admin_notice_ignore()
S
61 4 11
TenWebLibApi::get_hash()
S
61 4 11
ECWD_Config::import_from_settings()
S
62 4 11
ECWD_Cpt::add_event()
S
52 3 24
ecwd_events_query::filter_by_venues()
S
55 3 21
ecwd_single_event::set_venue()
S
54 3 21
ECWD_Display::the_excerpt_max_charlength()
S
55 3 19
ECWD_Admin::enqueue_block_editor_assets()
S
55 3 18
getAndReplaceFirstImage()
S
57 3 18
ecwd_events_query::filter_by_taxonomies()
S
58 3 17
TenWebLibNotices::admin_notice_temp_ignore()
S
55 3 17
ecwd_uninstall::delete_taxonomies()
S
57 3 17
ECWD_Notices::admin_notice_temp_ignore()
S
56 3 16
ecwd_settings_init()
S
57 3 16
ecwd_event_popup_ajax()
S
64 4 9
ECWD::add_http()
S
67 4 7
ECWD_Admin::ecwd_shortcode_button()
S
64 4 9
ECWD::reset_settings()
S
68 4 7
ECWD_Cpt::add_categories_metas()
S
58 3 15
ecwd_uninstall::__construct()
S
65 4 9
ECWD::add_localization()
S
64 4 8
ECWD_Config::get_file_data()
S
59 3 15
ECWD::get_default_timezone()
S
59 3 15
ECWD_Cpt::event_column_content()
S
59 3 14
ecwd_events_query::filter_recurring()
S
48 1 43
TenWebLib::wd_init()
S
61 3 13
ECWD_Admin::set_default_metas_to_restored_events()
S
60 3 13
TenWebLibOverview::display_overview_page()
S
61 3 12
ECWD_Admin::register_block_editor_assets()
S
61 3 11
Ecwd_pointers::__construct()
S
62 3 11
ECWD_Admin::uninstall_menu()
S
54 2 23
ECWD_Admin::ecwd_add_plugin_meta_links()
S
55 2 21
ECWD_Cpt::add_thumbnails_for_themes()
S
68 3 6
ECWD_Admin::register_buttons()
S
68 3 7
ECWD::register_elementor_widget()
S
72 3 5
ECWD_Config::save_new_config()
S
66 3 8
EcwdRestApi::parse_endpoint()
S
63 3 10
ECWD_Admin::add_tinymce_plugin()
S
67 3 7
ECWD_Cpt::ecwd_pre_get_posts()
S
65 3 9
ECWD_Admin::enqueue_admin_styles()
S
57 2 15
ecwd_events_query::filter_by_author()
S
64 3 10
TenWebLib::init_classes()
S
63 3 10
ecwd_events_query::sanitize_text()
S
64 3 10
ECWD_Cpt::category_archive_page_query()
S
71 3 5
ecwd_single_event::set_repeat()
S
68 3 7
ECWD_Cpt::ecwd_clear_cache_option()
S
65 3 9
ECWD_Admin::default_hidden_meta_boxes()
S
67 3 8
TenWebLibApi::get_remote_data()
S
64 3 8
ECWD_Display::literalDate()
S
62 3 10
ecwd_events_controller::sanitize_text()
S
64 3 10
ECWD_Display::arraySort()
S
63 3 10
Calendar::arraySort()
S
64 3 10
Calendar::getKey()
S
67 3 8
ecwd_uninstall::delete_options()
S
66 3 9
ECWD::register_elementor_assets()
S
65 3 8
TenWebLibApi::get_userhash()
S
63 3 10
ECWD_Cpt::duplicate_event_link()
S
65 3 8
ECWD_Admin::ecwd_submenu_parent_file()
S
68 3 7
ECWD::scripts_key()
S
66 3 8
ecwd_events_controller::convert_wp_post_to_ecwd_event()
S
60 2 14
Ecwd_pointers::set_pointer_options()
S
59 2 13
ecwd_privacy_policy()
S
59 2 13
Calendar::calcDate()
S
60 2 13
EcwdRestApi::convert_data()
S
60 2 13
ECWD_Display::dateDiff()
S
60 2 12
ecwd_events_controller::get_date_diff()
S
60 2 12
Ecwd_pointers::set_pointer_text()
S
50 1 27
Calendar::dateDiff()
S
60 2 12
Ecwd_pointers::next_pointer_button()
S
61 2 12
Calendar::calendar_foot()
S
64 2 11
ECWD_Display::set_event()
S
62 2 11
EcwdRestApi::free_events_count()
S
62 2 11
TenWebLibNotices::admin_notice_ignore()
S
62 2 11
ecwd_uninstall::delete_posts()
S
63 2 11
EcwdRestApi::excluded_events()
S
62 2 11
ECWD_Config::set_file_path()
S
62 2 11
TenWebLibDeactivate::__construct()
S
53 1 25
TenWebLibDeactivate::add_deactivation_feedback_dialog_box()
S
56 1 21
ecwd_events_query::filter_excluded_events()
S
57 1 19
ecwd_events_query::filter_past_events()
S
57 1 19
ECWD::__construct()
S
55 1 18
TenWebLibNotices::wd_admin_notices()
S
55 1 17
ECWD_Cpt::event_messages()
S
56 1 16
ECWD_Event::__construct()
S
57 1 16
ECWD_Admin::check_silent_update()
S
65 2 9
ECWD::ecwd_date()
S
74 2 4
ecwd_single_event::set_permalink()
S
69 2 7
ECWD_Cpt::is()
S
69 2 7
Calendar::add_terms()
S
74 2 5
TenWebLib::register_hooks()
S
69 2 6
ECWD_Admin::get_instance()
S
72 2 6
ECWD_Cpt::get_attachment_id_by_url()
S
69 2 6
ECWD_Admin::ecwd_set_default_calendar()
S
63 2 10
EcwdRestApi::get_instance()
S
70 2 7
ECWD_Notices::admin_notice_ignore()
S
63 2 10
ecwd_single_event::get_end_date()
S
72 2 6
EcwdRestApi::wp_unslash_conditional()
S
69 2 7
ECWD_Admin::add_action_links()
S
62 2 10
ECWD_Notices::anti_notice_spam()
S
72 2 6
ECWD_Config::get_instance()
S
71 2 6
Ecwd_pointers::set_urls()
S
65 2 9
ecwd_single_event::set_categories()
S
68 2 7
EcwdRestApi::get_endpoint()
S
71 2 6
ECWD_Cpt::get_instance()
S
72 2 6
ECWD::enqueue_styles()
S
63 2 9
ECWD_Notices::instance()
S
71 2 6
ecwd_events_query::meta_query_relation()
S
70 2 6
ecwd_single_event::get_start_date()
S
72 2 6
ecwd_single_event::get_featured_image_url()
S
72 2 6
ecwd_events_query::filter_by_post_status()
S
71 2 6
TenWebLibNotices::anti_notice_spam()
S
72 2 6
ecwd_uninstall::uninstall()
S
63 2 10
ecwd_single_event::get_permalink()
S
72 2 6
ECWD_Admin::define_admin_constants()
S
75 2 5
ecwd_single_event::set_featured_image_url()
S
69 2 7
Tax_CTP_Filter::hide_month_filter()
S
68 2 7
ECWD::get_instance()
S
72 2 6
ecwd_single_event::set_tags()
S
68 2 7
ECWD_Admin::ecwd_shortcode_data()
S
66 2 9
ecwd_events_query::filter_by_events_id()
S
69 2 7
ecwd_events_controller::delete_events()
S
73 2 5
ecwd_events_query::add_query_arg()
S
71 2 6
ecwd_single_event::set_all_day()
S
69 2 7
ECWD_Cpt::event_restrict_manage()
S
61 1 14
TenWebLib::change_deactivation_link()
S
59 1 14
ECWD_Admin::register_plugin_block()
S
58 1 13
TenWebLibDeactivate::scripts()
S
60 1 12
ecwd_uninstall::get_deactivate_url()
S
62 1 12
ecwd_events_query::set_default_query_args()
S
63 1 11
ECWD_Cpt::display_organizer_meta()
S
80 1 3
ECWD::user_info()
S
91 1 2
Calendar::rangeWeek()
S
71 1 5
EcwdRestApi::get_items_permissions_check()
S
82 1 3
ecwd_events_query::set_query_arg()
S
80 1 3
ecwd_events_query::reset_query()
S
82 1 3
EcwdRestApi::update_item_permissions_check()
S
80 1 3
ECWDElementor::get_title()
S
79 1 3
ECWD_Cpt::display_events_organizers_meta()
S
80 1 3
ecwd_events_controller::get_past_events()
S
64 1 10
TenWebLibSubscribe::subscribe_scripts()
S
72 1 5
ecwd_missing_callback()
S
78 1 3
ECWD_Config::set_data_to_global()
S
73 1 5
Calendar::cal_days_in_month()
S
71 1 5
ECWD_Cpt::calendars_cpt_meta()
S
70 1 6
ECWD_Admin::wd_bp_install_notice_status()
S
79 1 3
ECWD::init_rest_api()
S
76 1 4
ECWD::get_prefix()
S
82 1 3
ecwd_single_event::set_end_date()
S
77 1 4
TenWebLibApi::__construct()
S
76 1 4
ECWD_Cpt::venues_cpt_meta()
S
65 1 10
Calendar::addEvents()
S
81 1 3
TenWebLib::__construct()
S
78 1 3
Calendar::replaceFirstImage()
S
75 1 4
ECWD_Widget::update()
S
65 1 9
ECWD_Cpt::error_messages()
S
77 1 4
replaceFirstImages()
S
75 1 4
ecwd_single_event::__clone()
S
91 1 2
ECWD_Admin::get_plugin_title()
S
79 1 3
ECWD_Cpt::taxonomy_columns()
S
66 1 8
ecwd_events_query::get_metas()
S
65 1 8
ECWD_Cpt::organizers_cpt_meta()
S
65 1 10
ECWD_Cpt::display_events_calendars_meta()
S
80 1 3
Calendar::month_selector()
S
77 1 4
TenWebLibOverview::overview_scripts()
S
71 1 5
ECWD_Config::get_response()
S
82 1 3
ECWD_Cpt::display_venue_meta()
S
70 1 6
ecwd_single_event::__construct()
S
71 1 6
ECWDElementor::get_categories()
S
81 1 3
ecwd_uninstall::get_post_types()
S
74 1 4
TenWebLib::wd_includes()
S
67 1 8
ECWD_Cpt::display_events_venue_meta()
S
80 1 3
TenWebLib::display_overview_page()
S
82 1 3
Ecwd_pointers::show_pointer()
S
73 1 5
ECWD::register_hooks()
S
79 1 3
ECWD_Event::getLink()
S
79 1 3
ecwd_events_controller::get_events()
S
64 1 10
ecwd_single_event::set_default_dates()
S
69 1 6
ecwd_events_query::get_all_events()
S
81 1 3
Calendar::stripWhitespace()
S
65 1 10
ecwd_single_event::set_start_date()
S
77 1 4
Ecwd_pointers::dismiss_pointer()
S
79 1 3
Tax_CTP_Filter::__construct()
S
70 1 6
ECWD::isValidTimezone()
S
79 1 3
Calendar::range4Days()
S
71 1 5
ECWD_Notices::special_parameters()
S
91 1 2
ECWD::get_name()
S
82 1 3
ECWDElementor::get_name()
S
82 1 3
ECWD_Config::__construct()
S
75 1 5
ecwd_events_query::search()
S
80 1 3
ECWD_Admin::display_themes_page()
S
80 1 3
Ecwd_pointers::next_page_button()
S
72 1 5
ECWD_Cpt::get_ecwd_calendars()
S
67 1 8
Ecwd_pointers::add_button_script()
S
69 1 6
TenWebLibNotices::__construct()
S
70 1 6
ECWD_Cpt::add_column_headers()
S
68 1 7
ECWD_Admin::display_admin_page()
S
81 1 3
EcwdRestApi::prepare_item_for_response()
S
82 1 3
ecwd_uninstall::get_taxonomies()
S
80 1 3
ecwd_settings_sanitize()
S
83 1 3
Calendar::getMonth()
S
68 1 6
ecwd_events_query::get_query_args()
S
82 1 3
EcwdRestApi::delete_item_permissions_check()
S
82 1 3
ECWD_Event::uglyLink()
S
71 1 5
ECWD_Admin::ecwd_admin_notices()
S
76 1 4
ecwd_events_query::order()
S
91 1 2
ECWD::register_elementor_widget_category()
S
71 1 6
ecwd_events_controller::update_post()
S
91 1 2
ecwd_single_event::get_is_default_dates()
S
82 1 3
ECWD_Cpt::ecwdEventQueryVars()
S
73 1 5
ecwd_events_controller::create_event()
S
91 1 2
ECWD_Cpt::calendar_add_column_headers()
S
65 1 9
TenWebLibNotices::special_parameters()
S
91 1 2
ECWD_Config::set_default_configs()
S
72 1 5
TenWebLib::display_subscribew_page()
S
82 1 3
TenWebLibOverview::overview_styles()
S
71 1 5
ECWD::enqueue_elementor_widget_styles()
S
70 1 6
EcwdRestApi::get_item_permissions_check()
S
80 1 3
ECWD_Notices::__construct()
S
75 1 4
ECWD_Admin::ecwd_helper_bar()
S
82 1 3
ECWD_Cpt::display_events_meta()
S
75 1 4
Ecwd_pointers::get_conteiner_id()
S
80 1 3
ecwd_events_query::__construct()
S
82 1 3
TenWebLibSubscribe::__construct()
S
75 1 4
EcwdRestApi::all_past_events()
S
70 1 6
ecwd_events_query::get_posts()
S
71 1 6
ECWDElementor::get_icon()
S
82 1 3
EcwdRestApi::delete_events()
S
71 1 6
EcwdRestApi::create_item_permissions_check()
S
82 1 3
TenWebLibSubscribe::subscribe_styles()
S
74 1 4
ECWD_Admin::display_uninstall_page()
S
76 1 4
EcwdRestApi::prepare_item_for_database()
S
82 1 3
ECWD_Admin::include_ecwd_pointer_class()
S
76 1 4
ECWD_Admin::uninstall()
S
89 1 2
ecwd_single_event::get_all_day()
S
82 1 3
ECWD::enqueue_elementor_widget_scripts()
S
78 1 3
ECWD_Admin::ecwd_config()
S
76 1 4
TenWebLibOverview::__construct()
S
77 1 4
ECWD_Cpt::themes_cpt_meta()
S
70 1 6
ECWD_Admin::get_page()
S
81 1 3
ecwd_button_callback()
S
78 1 3
ecwd_events_controller::get_excluded_events()
S
64 1 10
Calendar::addEvent()
S
80 1 3
ecwd_events_controller::__construct()
S
91 1 2
ECWD::order_events()
S
72 1 5
Calendar::getDay()
S
68 1 6
ECWD_Admin::wd_bp_script_style()
S
74 1 4
ECWD_Config::get_config()
S
82 1 3
ECWD_Widget::__construct()
S
72 1 5
ECWD_Display::compare()
S
100 1 2
ECWD_Config::add_response()
S
80 1 3
ten_web_lib_init()
S
73 1 5
ecwd_register_widget()
S
82 1 3
TenWebLibSubscribe::subscribe_display_page()
S
76 1 4