Code Analysis: WPAdCenter 2.2.0

Function Rating Maintainability Complexity Lines of code
Wpadcenter_Public::display_single_ad()
D
18
56 216
Wpadcenter_Admin::wpadcenter_save_ad_meta()
C
37 31 61
Wpadcenter::wpadcenter_sanitise_settings()
C
42 27 45
Wpadcenter_Adgroup_Widget::form()
B
29 16 162
Wpadcenter_Admin::wpadcenter_add_custom_filters()
B
35 19 91
Wpadcenter_Admin::wpadcenter_manage_ads_column_values()
B
37 19 67
Wpeka\Adcenter\Wpadcenter_Adsense::get_ad_units()
B
35 17 89
Wpadcenter_Public::wpadcenter_init()
B
40 17 59
Wpadcenter_Single_Ad_Widget::form()
B
33 12 129
Wpadcenter_Random_Ad_Widget::form()
B
33 12 128
Wpadcenter::fs_connect()
B
42 16 52
Wpadcenter_Public::wpadcenter_verify_device()
A
50 17 30
Wpadcenter_Admin::wpadcenter_link_options_metabox()
A
35 12 97
Wpadcenter_Public::wpadcenter_set_clicks()
A
46 16 34
Wpadcenter_Public::wpadcenter_template_redirect()
A
47 16 32
Wpeka\Adcenter\Wpadcenter_Adsense::get_ad_code()
A
40 14 62
Wpadcenter_Admin::wpadcenter_custom_filters_query()
A
44 15 45
Wpadcenter_Adgroup_Widget::widget()
A
44 15 43
Analytics::get_current_page()
A
45 14 37
Wpadcenter_Admin::wpadcenter_ad_selected()
A
45 14 36
Wpadcenter_Admin::wpadcenter_post_submitbox_start()
A
35 9 97
Wpadcenter_Admin::wpadcenter_manage_ad_groups_column_values()
A
41 11 60
Wpadcenter_Admin::wpadcenter_ads_txt_replace()
A
44 12 44
Wpadcenter_Random_Ad_Widget::widget()
A
47 12 35
Wpadcenter_Single_Ad_Widget::widget()
A
47 12 33
Wpadcenter_Public::display_adgroup_ads()
A
38 9 76
Wpadcenter_Admin::wpadcenter_get_root_domain_info()
A
44 11 43
Wpadcenter_Public::wpadcenter_get_root_domain_info()
A
44 11 43
Wpadcenter_Admin::wpadcenter_get_notices()
A
39 9 71
Wpadcenter_Admin::wpadcenter_adgroup_gutenberg_preview()
A
45 10 44
Wpadcenter_Admin::wpadcenter_register_gutenberg_blocks()
A
34 4 128
Wpadcenter_Admin::wpadcenter_add_meta_boxes()
A
35 4 112
Wpadcenter_Admin::gutenberg_display_adgroup_cb()
A
47 8 40
as_request_get_bool()
A
54 9 23
Wpadcenter_Admin::wpadcenter_settings()
A
47 8 34
Wpadcenter_Admin::wpadcenter_random_ad_gutenberg_preview()
A
48 8 34
Wpadcenter_Admin::wpadcenter_singlead_gutenberg_preview()
A
48 8 33
Wpadcenter_Public::display_random_ad()
A
40 6 63
Wpadcenter_Admin::wpadcenter_parse_file()
A
50 8 28
Wpeka\Adcenter\Wpadcenter_Adsense::confirm_code_and_generate_tokens()
A
46 7 43
as_sort_by_priority()
A
61 9 12
Wpadcenter_Admin::wpadcenter_ad_group_selected()
A
47 7 36
Wpadcenter_Admin::wpadcenter_save_scripts()
A
54 8 20
Analytics::_uninstall_plugin_event()
A
47 7 34
Wpadcenter_Admin::wpadcenter_fs_connect()
A
56 8 17
Wpadcenter_Admin::wpadcenter_get_file_info()
S
50 7 27
Wpadcenter::is_request()
S
61 8 12
Analytics_Exception::__construct()
S
55 7 20
Wpadcenter_Admin::wpadcenter_after_save_settings()
S
55 7 18
as_request_get()
S
57 7 17
Wpeka\Adcenter\Wpadcenter_Adsense::get_account_details()
S
45 5 46
Wpadcenter_Admin::gutenberg_display_single_ad_cb()
S
50 6 30
Wpadcenter_Admin::gutenberg_display_random_ad_cb()
S
50 6 30
Wpadcenter_Admin::wpadcenter_text_ad_metabox()
S
49 6 29
Wpadcenter_Admin::wpadcenter_remove_forms_style()
S
60 7 12
Wpeka\Adcenter\Wpadcenter_Adsense::get_access_token()
S
47 5 41
Wpadcenter_Admin::wpadcanter_dequeue_styles()
S
61 7 11
Wpadcenter_Elementor_Adgroup_Widget::_register_controls()
S
37 1 97
Wpadcenter_Admin::wpadcenter_page_posts_metabox_render()
S
49 5 34
Wpadcenter_Admin::wpadcenter_amp_preference_metabox()
S
48 5 31
Wpadcenter_Admin::wpadcenter_monthly_schedule_clean_stats()
S
58 6 14
Analytics::_register_account_hooks()
S
60 6 13
Wpadcenter_Admin::wpadcenter_reports()
S
51 5 25
Wpeka\Adcenter\Wpadcenter_Google_Api::get_account_list()
S
52 5 24
Wpadcenter_Admin::wpadcenter_amp_attributes_metabox()
S
46 4 38
Analytics::_modify_plugin_action_links_hook()
S
53 5 23
Wpadcenter_Admin::wpadcenter_ad_size_metabox()
S
53 5 22
Wpeka\Adcenter\Wpadcenter_Adsense::renew_access_token()
S
49 4 33
Wpadcenter_Elementor_RandomAd_Widget::_register_controls()
S
40 1 77
as_text_override()
S
58 5 17
Wpadcenter_Elementor_SingleAd_Widget::_register_controls()
S
40 1 76
Wpadcenter_Admin::wpadcenter_getting_started()
S
45 3 46
Wpadcenter_Admin::wpadcenter_mascot_on_pages()
S
50 4 30
Analytics_Tracking::analytics_tracking_should_send_data()
S
59 5 14
Wpadcenter_Admin::render_adsense_selection()
S
47 3 42
Wpadcenter::wpadcenter_generate_settings_tabhead()
S
60 5 12
Wpadcenter_Admin::wpadcenter_ad_ids_rest_field_cb()
S
48 3 39
Wpadcenter_Admin::wpadcenter_check_ads_txt_replace()
S
52 4 23
Wpadcenter_Admin::enqueue_scripts()
S
43 1 65
Analytics::_ask_for_review_notice()
S
55 4 18
Analytics::_ask_for_usage_notice()
S
55 4 18
Wpadcenter_Admin::wpadcenter_get_roles()
S
57 4 17
Wpadcenter_Public::wpadcenter_adgroup_shortcode()
S
49 3 32
Analytics::__construct()
S
57 4 16
Wpadcenter_Admin::wpadcenter_ad_type()
S
57 4 16
Analytics::is_user_admin()
S
74 5 4
Analytics_Tracking::analytics_tracking_schedule_data_sending()
S
65 5 8
Analytics_Tracking::analytics_tracking_get_curl_info()
S
60 4 14
Analytics_Tracking::analytics_tracking_enabled()
S
60 4 14
Wpadcenter_Public::__construct()
S
60 4 14
Wpadcenter_Admin::load_google_adsense_code()
S
59 4 13
Wpadcenter_Public::wpadcenter_random_ad_shortcode()
S
51 3 28
Analytics::should_stop_execution()
S
63 4 12
Wpadcenter_Elementor_Widgets::is_compatible()
S
62 4 12
as_get_raw_referer()
S
63 4 11
Wpadcenter_Public::wpadcenter_ad_shortcode()
S
52 3 26
Wpadcenter_Admin::wpadcenter_ad_statistics()
S
52 3 25
Wpadcenter_Elementor_SingleAd_Widget::get_select_ads_options()
S
53 3 24
Analytics::get_default_uninstall_reasons()
S
45 1 54
Wpadcenter::wpadcenter_get_default_settings()
S
47 2 38
Analytics::_get_uninstall_reasons()
S
53 3 22
Analytics::_submit_uninstall_reason_action()
S
53 3 22
Wpadcenter_Admin::wpadcenter_admin_menu()
S
50 2 36
Wpadcenter_Elementor_Adgroup_Widget::render()
S
54 3 21
as_asset_url()
S
55 3 20
Wpadcenter_Elementor_RandomAd_Widget::render()
S
56 3 19
Wpadcenter_Elementor_SingleAd_Widget::render()
S
55 3 19
Analytics_Tracking::analytics_tracking_send()
S
55 3 19
Wpadcenter_Admin::wpadcenter_get_cpt_args()
S
44 1 47
Wpadcenter_Admin::wpadcenter_is_subdir()
S
65 4 8
Wpadcenter::define_admin_hooks()
S
43 1 45
Wpadcenter_Admin::wpadcenter_pro_display_amp_warning()
S
66 4 9
ras_dynamic_init()
S
59 3 15
Wpadcenter_Activator::activate()
S
59 3 14
Analytics_Tracking::analytics_tracking_get_plugins_data()
S
59 3 14
Wpadcenter_Admin::get_ad_meta_relation()
S
48 1 44
Wpadcenter::wpadcenter_envelope_settings_tab()
S
61 3 13
Wpadcenter_Public::wpadcenter_check_exclude_roles()
S
60 3 13
Wpadcenter_Admin::wpadcenter_export_csv()
S
60 3 12
Wpadcenter::wpadcenter_get_settings()
S
62 3 11
Wpadcenter_Admin::wpadcenter_check_ads_txt_problems()
S
62 3 11
Wpadcenter_Admin::get_default_metafields()
S
45 1 39
Wpadcenter_Admin::wpadcenter_edit_form_after_title()
S
55 2 21
Wpadcenter_Admin::wpadcenter_register_rest_fields()
S
52 1 34
Wpadcenter_Admin::get_default_ad_sizes()
S
47 1 34
Wpadcenter_Admin::wpadcenter_manage_edit_ads_columns()
S
55 2 19
Analytics::_add_deactivation_feedback_dialog_box()
S
56 2 19
adc_fs()
S
56 2 18
Wpadcenter_Admin::enqueue_styles()
S
52 1 32
Wpadcenter::wpadcenter_set_impressions()
S
56 2 16
Wpadcenter_Public::wpadcenter_output_header_post()
S
63 3 10
Analytics::get_bool_option()
S
77 3 3
Analytics::_ask_for_usage_optin()
S
64 3 9
Wpadcenter_Public::wpadcenter_output_footer_post()
S
63 3 10
Analytics::_load_required_static()
S
65 3 9
Wpeka\Adcenter\Wpadcenter_Adsense::save_token_from_data()
S
59 2 15
Wpadcenter_Admin::print_combobox_options()
S
65 3 9
Analytics::_ask_for_review_dismiss()
S
65 3 8
Wpadcenter_Public::wpadcenter_output_body_post()
S
63 3 10
Analytics::_ask_for_usage_dismiss()
S
64 3 9
Wpadcenter_Single_Ad_Widget::print_combobox_options()
S
64 3 9
Wpadcenter_Admin::wpadcenter_register_cpt()
S
66 3 8
Wpadcenter_Loader::run()
S
66 3 8
Analytics::_hook_action_links_and_register_account_hooks()
S
71 3 6
Wpadcenter_Admin::wpadcenter_page_posts_scripts()
S
61 2 13
Analytics_Tracking::analytics_tracking_get_server_data()
S
60 2 13
Wpadcenter_Admin::wpadcenter_register_taxonomy()
S
51 1 27
Wpadcenter::define_public_hooks()
S
61 2 12
Wpadcenter_Elementor_RandomAd_Widget::get_adgroup_options()
S
62 2 12
Wpadcenter_Elementor_Adgroup_Widget::get_adgroup_options()
S
62 2 12
Wpadcenter::__construct()
S
62 2 12
Wpadcenter_Admin::wpadcenter_plugin_action_links()
S
63 2 11
Wpadcenter_Admin::wpadcenter_limit_impressions_clicks()
S
53 1 26
Analytics::hook_plugin_action_links()
S
58 1 20
Wpeka\Adcenter\Wpadcenter_Google_Api::generate_tokens()
S
56 1 19
as_text_and_domain()
S
64 2 10
as_normalize_path()
S
65 2 9
Wpeka\Adcenter\Wpadcenter_Adsense::get_saved_accounts()
S
68 2 7
Wpadcenter_Admin::wpadcenter_pro_admin_init()
S
66 2 8
Analytics_Tracking::analytics_tracking_get_parent_theme()
S
72 2 6
Wpadcenter_Public::wpadcenter_output_footer_global()
S
69 2 7
Analytics_Exception::__toString()
S
68 2 7
Analytics_Tracking::analytics_tracking_register_hooks()
S
66 2 8
Analytics::instance()
S
65 2 8
Analytics::dynamic_init()
S
75 2 5
Wpeka\Adcenter\Wpadcenter_Adsense::get_option()
S
68 2 7
Wpadcenter_Admin::wpadcenter_external_image_link_metabox()
S
70 2 5
Analytics::register_constructor_hooks()
S
66 2 8
Wpadcenter_Public::wpadcenter_output_header_global()
S
69 2 7
Analytics::get_option()
S
78 2 3
Analytics_Tracking::__construct()
S
68 2 8
Wpadcenter_Elementor_Widgets::on_plugins_loaded()
S
73 2 5
Wpadcenter_Admin::wpadcenter_get_adgroups()
S
66 2 8
Wpadcenter_Admin::wpadcenter_remove_post_row_actions()
S
67 2 8
Wpeka\Adcenter\Wpadcenter_Adsense::get_instance()
S
70 2 7
Wpadcenter_Admin::wpadcenter_remove_permalink()
S
72 2 6
Analytics::is_ajax()
S
79 2 3
Wpadcenter_Elementor_Widgets::get_instance()
S
71 2 6
Wpadcenter_Public::wpadcenter_output_body_global()
S
69 2 7
Wpadcenter_Admin::get_transition_effect_options()
S
60 1 14
Wpadcenter::load_dependencies()
S
60 1 14
Wpeka\Adcenter\Wpadcenter_Google_Api::renew_access_token()
S
60 1 14
Analytics_Tracking::analytics_tracking_get_themes_data()
S
60 1 14
Analytics_Tracking::analytics_tracking_get_default_data()
S
60 1 13
Wpadcenter_Activator::wpadcenter_install_table()
S
63 1 12
Wpadcenter_Admin::wpadcenter_gutenberg_block_categories()
S
65 1 11
Wpadcenter_Admin::get_default_ad_types()
S
62 1 11
Wpadcenter_Admin::wpadcenter_ad_detail_metabox()
S
63 1 11
Wpadcenter_Admin::wpadcenter_manage_edit_adgroups_columns()
S
62 1 11
Wpadcenter_Elementor_Adgroup_Widget::get_categories()
S
81 1 3
Wpadcenter_Single_Ad_Widget::__construct()
S
67 1 7
Wpadcenter_Public::enqueue_styles()
S
76 1 3
Analytics_Tracking::analytics_tracking_exceeds_treshhold()
S
80 1 3
Wpadcenter_Elementor_SingleAd_Widget::get_name()
S
82 1 3
Analytics::is_plugins_page()
S
80 1 3
Wpadcenter_Deactivator::deactivate()
S
80 1 3
Analytics_Tracking::analytics_tracking_format_plugin()
S
71 1 6
Wpadcenter_Elementor_Widgets::init()
S
70 1 6
as_esc_html_echo_x_inline()
S
78 1 3
Analytics_Exception::getResult()
S
82 1 3
Wpadcenter::get_loader()
S
82 1 3
Analytics_Tracking::analytics_tracking_get_wordpress_version()
S
78 1 4
Wpadcenter_Admin::wpadcenter_collect_locations()
S
81 1 3
Wpadcenter_Public::enqueue_scripts()
S
76 1 3
Wpadcenter_Elementor_RandomAd_Widget::get_categories()
S
81 1 3
Wpadcenter_Elementor_Adgroup_Widget::get_title()
S
82 1 3
as_esc_html_echo_inline()
S
79 1 3
Analytics_Exception::getStringCode()
S
82 1 3
Wpadcenter_Adgroup_Widget::update()
S
82 1 3
Wpadcenter_Loader::__construct()
S
77 1 4
Wpadcenter::get_plugin_name()
S
82 1 3
Wpadcenter_Loader::add()
S
64 1 10
as_enqueue_local_style()
S
77 1 3
Wpeka\Adcenter\Wpadcenter_Google_Api::get_auth_url()
S
67 1 8
Analytics::is_theme()
S
80 1 3
Analytics_Tracking::analytics_tracking_get_php_extensions()
S
65 1 10
Analytics::is_themes_page()
S
79 1 3
Wpadcenter_Elementor_SingleAd_Widget::get_categories()
S
81 1 3
Wpadcenter_Admin::init_admin_hooks()
S
78 1 3
wpadcenter_display_ad()
S
74 1 4
Wpadcenter_Loader::add_filter()
S
77 1 3
as_get_template()
S
71 1 6
activate_wpadcenter()
S
76 1 4
as_include_template()
S
76 1 4
run_wpadcenter()
S
77 1 4
Analytics::is_user_in_admin()
S
81 1 3
analytics()
S
78 1 3
Wpadcenter_Elementor_Adgroup_Widget::get_icon()
S
82 1 3
as_include_once_template()
S
76 1 4
Wpadcenter_Admin::wpadcenter_ad_type_rest_field_cb()
S
69 1 6
as_enqueue_local_script()
S
77 1 3
Analytics::get_slug()
S
82 1 3
Wpeka\Adcenter\Wpadcenter_Adsense::__construct()
S
74 1 4
Wpadcenter::run()
S
82 1 3
Wpadcenter_Elementor_Adgroup_Widget::get_name()
S
82 1 3
_as_text_x_inline()
S
72 1 5
as_text_x_inline()
S
79 1 3
Wpadcenter_Elementor_SingleAd_Widget::get_title()
S
82 1 3
Wpadcenter_Elementor_Widgets::__construct()
S
79 1 3
Wpadcenter_Admin::wpadcenter_ad_code_metabox()
S
74 1 4
Wpadcenter_Admin::wpadcenter_register_widgets()
S
74 1 5
Wpadcenter_Elementor_SingleAd_Widget::get_icon()
S
82 1 3
as_require_once_template()
S
76 1 4
Wpadcenter_Single_Ad_Widget::scripts()
S
77 1 3
Wpadcenter_Public::wpadcenter_register_gutenberg_scripts()
S
66 1 9
as_apply_filter()
S
64 1 10
Wpadcenter_Elementor_RandomAd_Widget::get_icon()
S
82 1 3
Wpadcenter_Random_Ad_Widget::update()
S
82 1 3
Analytics_Exception::getType()
S
82 1 3
Wpadcenter_Elementor_RandomAd_Widget::get_name()
S
82 1 3
as_echo_inline()
S
79 1 3
deactivate_wpadcenter()
S
76 1 4
Wpadcenter_Random_Ad_Widget::__construct()
S
69 1 6
Wpadcenter_Elementor_RandomAd_Widget::get_title()
S
82 1 3
Wpadcenter_Admin::__construct()
S
70 1 6
wpadcenter_display_adgroup()
S
73 1 4
Wpeka\Adcenter\Wpadcenter_Google_Api::get_ad_units()
S
67 1 7
Analytics::is_plugin()
S
80 1 3
Wpadcenter::get_version()
S
82 1 3
Wpadcenter::set_locale()
S
75 1 4
Wpadcenter_Elementor_Widgets::register_widgets()
S
73 1 5
Wpadcenter_Adgroup_Widget::__construct()
S
69 1 6
as_get_template_path()
S
79 1 3
Wpadcenter_Admin::wpadcenter_ad_html_rest_field_cb()
S
75 1 4
_as_text_inline()
S
72 1 5
Wpadcenter_I18n::load_plugin_textdomain()
S
69 1 7
Wpadcenter_Single_Ad_Widget::update()
S
82 1 3
Wpeka\Adcenter\Wpadcenter_Google_Api::get_ad_code()
S
66 1 8
Wpadcenter_Admin::wpadcenter_ad_google_adsense()
S
71 1 5
Wpadcenter_Admin::wpadcenter_ad_size_rest_field_cb()
S
72 1 5
Analytics::is_activation_mode()
S
82 1 3
as_require_template()
S
76 1 4
as_text_inline()
S
79 1 3
Wpadcenter_Loader::add_action()
S
77 1 3