Code Analysis: WPAdCenter 2.5.9

Function Rating Maintainability Complexity Lines of code
Wpadcenter_Public::display_single_ad()
D
10
90 293
Wpadcenter::wpadcenter_sanitise_settings()
D
38 40 58
Wpadcenter_Admin::gutenberg_display_ads()
D
28
28 144
Wpadcenter_Admin::wpadcenter_adtypes_gutenberg_preview()
D
28
28 142
Wpadcenter_Public::wpadcenter_check_cookie_consent()
C
36 32 72
Wpadcenter_Admin::wpadcenter_save_ad_meta()
C
37 31 61
Wpadcenter_Admin::wpadcenter_add_custom_filters()
C
32 27 115
Wpadcenter_Adgroup_Widget::form()
B
29 16 162
Wpadcenter_Public::wpadcenter_set_clicks()
B
39 22 58
Wpadcenter_Admin::wpadcenter_manage_ads_column_values()
B
37 19 68
Wpeka\Adcenter\Wpadcenter_Adsense::get_ad_units()
B
35 17 89
Wpadcenter_Admin::wpadcenter_ad_selected()
B
41 18 46
Wpadcenter_Public::wpadcenter_init()
B
40 17 58
Wpadcenter_Single_Ad_Widget::form()
B
33 12 129
Wpadcenter_Random_Ad_Widget::form()
B
33 12 128
Wpadcenter_Public::wpadcenter_verify_device()
B
48 18 33
Wpadcenter_Admin::wpadcenter_upload_html5_file()
B
40 16 53
Wpadcenter::fs_connect()
B
42 16 52
Wpadcenter_Admin::wpadcenter_link_options_metabox()
A
35 12 97
Wpadcenter_Admin::wpadcenter_pro_admin_init()
A
39 14 62
Wpeka\Adcenter\Wpadcenter_Adsense::get_ad_code()
A
40 14 62
Wpadcenter_Elementor_AdTypes_Widget::render()
A
36 12 91
Wpadcenter_Admin::wpadcenter_custom_filters_query()
A
44 15 45
Wpadcenter_Adgroup_Widget::widget()
A
44 15 43
Wpadcenter_Public::display_adgroup_ads()
A
37 11 82
Wpadcenter_Admin::wpadcenter_post_submitbox_start()
A
35 9 99
Wpadcenter_Admin::wpadcenter_adgroup_gutenberg_preview()
A
42 12 54
Wpadcenter_Admin::wpadcenter_manage_ad_groups_column_values()
A
41 11 62
Wpadcenter_Admin::wpadcenter_upgrade_to_pro()
A
45 12 45
Wpadcenter_Admin::wpadcenter_ads_txt_replace()
A
44 12 44
Wpadcenter_Elementor_AdTypes_Widget::register_controls()
A
28
1 205
Wpadcenter_Random_Ad_Widget::widget()
A
47 12 35
Wpadcenter_Single_Ad_Widget::widget()
A
47 12 33
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_add_meta_boxes()
A
33 4 136
Wpadcenter_Admin::wpadcenter_random_ad_gutenberg_preview()
A
44 10 44
Wpadcenter_Admin::wpadcenter_ad_created_admin_notice()
A
42 9 55
Wpadcenter_Public::display_random_ad()
A
39 8 67
Wpadcenter_Admin::wpadcenter_singlead_gutenberg_preview()
A
45 9 42
Wpeka\Adcenter\Wpadcenter_Adsense::confirm_code_and_generate_tokens()
A
44 8 46
Wpadcenter_Admin::wpadcenter_getting_started()
A
34 4 103
Wpadcenter_Admin::gutenberg_display_adgroup_cb()
A
47 8 40
Wpadcenter_Admin::wpadcenter_ad_group_selected()
A
45 8 40
Wpadcenter_Admin::wpadcenter_settings()
A
47 8 34
Wpadcenter_Admin::wpadcenter_get_tests()
A
47 8 34
Wpadcenter_Admin::wpadcenter_parse_file()
A
50 8 28
Wpadcenter_Admin::wpadcenter_test_selected()
A
50 8 27
Wpadcenter_Admin::enqueue_scripts()
A
35 1 128
Wpeka\Adcenter\Wpadcenter_Adsense::get_account_details()
A
45 6 47
Wpadcenter_Admin::wpadcenter_fs_connect()
A
56 8 17
Wpadcenter_Admin::wpadcenter_admin_review_notice()
A
45 6 46
Wpadcenter::is_request()
S
61 8 12
Wpadcenter_Admin::wpadcenter_get_file_info()
S
50 7 27
Wpadcenter_Admin::wpadcenter_get_ads()
S
47 6 36
Wpadcenter_Admin::wpadcenter_register_gutenberg_blocks()
S
38 2 95
Wpadcenter::wpadcenter_set_impressions()
S
47 6 34
Wpadcenter_Admin::wpadcenter_after_save_settings()
S
55 7 18
Wpadcenter_Admin::gutenberg_display_single_ad_cb()
S
49 6 32
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
Wpadcenter_Admin::wpadcanter_dequeue_styles()
S
61 7 11
Wpeka\Adcenter\Wpadcenter_Adsense::get_access_token()
S
47 5 41
Wpadcenter_Admin::wpadcenter_get_placements()
S
56 6 18
Wpadcenter_Admin::wpadcenter_reports()
S
48 5 31
Wpadcenter_Admin::wpadcenter_amp_preference_metabox()
S
48 5 31
wpadcenter_display_ad()
S
49 5 31
Wpadcenter_Admin::wpadcenter_monthly_schedule_clean_stats()
S
57 6 15
Wpadcenter_Admin::wpadcenter_review_already_done()
S
61 6 11
Wpeka\Adcenter\Wpadcenter_Google_Api::get_account_list()
S
52 5 24
Wpadcenter_Admin::wpadcenter_amp_attributes_metabox()
S
46 4 38
Wpadcenter_Admin::wpadcenter_ad_size_metabox()
S
53 5 22
Wpadcenter_Admin::wpadcenter_get_roles()
S
54 5 20
Wpeka\Adcenter\Wpadcenter_Adsense::renew_access_token()
S
49 4 33
Wpadcenter_Admin::wpadcenter_mascot_on_pages()
S
48 4 33
Wpadcenter_Admin::load_google_adsense_code()
S
56 5 16
Wpadcenter_Admin::render_adsense_selection()
S
46 3 45
Wpadcenter_Admin::wpadcenter_ad_created_admin_notice_close()
S
65 6 8
Wpadcenter::wpadcenter_generate_settings_tabhead()
S
60 5 12
Wpadcenter_Admin::wpadcenter_pro_display_amp_warning()
S
61 5 12
Wpadcenter_Admin::wpadcenter_ad_ids_rest_field_cb()
S
47 3 40
Wpadcenter::wpadcenter_get_default_settings()
S
42 2 54
Wpadcenter_Admin::wpadcenter_video_details_metabox()
S
54 4 24
Wpadcenter_Admin::wpadcenter_check_ads_txt_replace()
S
52 4 23
Wpadcenter_Activator::activate()
S
54 4 21
Wpadcenter_Public::wpadcenter_adgroup_shortcode()
S
49 3 34
Wpadcenter_Admin::wpadcenter_ad_type()
S
57 4 16
Wpadcenter_Admin::wpadcenter_on_delete_ad()
S
57 4 16
Wpadcenter_Admin::enqueue_styles()
S
45 1 60
Wpadcenter_Public::wpadcenter_ad_shortcode()
S
50 3 30
Wpadcenter_Admin::get_alignment_position()
S
62 4 14
Wpadcenter_Public::__construct()
S
60 4 14
Wpadcenter::define_admin_hooks()
S
40 1 58
Wpadcenter_Admin::get_ad_meta_relation()
S
45 1 58
Wpadcenter_Public::wpadcenter_random_ad_shortcode()
S
51 3 28
Wpadcenter_Elementor_Widgets::is_compatible()
S
62 4 12
Wpadcenter_Admin::wpadcenter_ad_statistics()
S
52 3 24
Wpadcenter_Elementor_AdTypes_Widget::get_select_ads_options()
S
53 3 24
Wpadcenter_Admin::wpadcenter_admin_menu()
S
50 2 36
Wpadcenter_Admin::wpadcenter_get_cpt_args()
S
44 1 47
Wpadcenter_Admin::get_default_metafields()
S
43 1 46
Wpadcenter_Admin::wpadcenter_is_subdir()
S
65 4 8
Wpeka\Adcenter\Wpadcenter_Adsense::wpadcenter_remove_authentication()
S
59 3 14
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_Admin::wpadcenter_check_ads_txt_problems()
S
62 3 11
Wpadcenter::wpadcenter_get_settings()
S
62 3 11
Wpadcenter_Admin::wpadcenter_get_adgroups()
S
62 3 11
Wpadcenter_Admin::wpadcenter_edit_form_after_title()
S
54 2 22
Wpadcenter_Admin::wpadcenter_manage_edit_ads_columns()
S
54 2 20
Wpadcenter_Admin::wpadcenter_register_rest_fields()
S
52 1 34
Wpadcenter_Admin::get_default_ad_sizes()
S
47 1 34
Wpadcenter_Elementor_AdTypes_Widget::get_script_depends()
S
71 3 6
Wpadcenter_Admin::print_combobox_options()
S
65 3 9
Wpadcenter_Loader::run()
S
66 3 8
Wpeka\Adcenter\Wpadcenter_Adsense::save_token_from_data()
S
59 2 15
Wpadcenter_Admin::wpadcenter_register_cpt()
S
66 3 8
Wpadcenter_Single_Ad_Widget::print_combobox_options()
S
64 3 9
Wpadcenter::__construct()
S
61 2 13
Wpadcenter_Admin::wpadcenter_register_taxonomy()
S
50 1 28
Wpadcenter_Elementor_AdTypes_Widget::get_adgroup_options()
S
62 2 12
Wpadcenter_Admin::wpadcenter_plugin_action_links()
S
63 2 11
Wpadcenter::define_public_hooks()
S
62 2 11
Wpadcenter_Admin::wpadcenter_limit_impressions_clicks()
S
53 1 26
Wpadcenter_Admin::wpadcenter_html5_ad_upload()
S
56 1 21
Wpeka\Adcenter\Wpadcenter_Google_Api::generate_tokens()
S
56 1 19
Wpeka\Adcenter\Wpadcenter_Adsense::get_saved_accounts()
S
68 2 7
Wpadcenter_Admin::wpadcenter_rest_endpoints_args()
S
68 2 7
Wpadcenter_Admin::wpadcenter_remove_post_row_actions()
S
67 2 8
Wpadcenter_Admin::wpadcenter_external_image_link_metabox()
S
70 2 5
Wpadcenter_Admin::wpadcenter_redirect_after_activate()
S
69 2 7
Wpeka\Adcenter\Wpadcenter_Adsense::get_instance()
S
70 2 7
Wpadcenter_Elementor_Widgets::on_plugins_loaded()
S
73 2 5
Wpadcenter_Admin::wpadcenter_register_widgets()
S
66 2 9
Wpeka\Adcenter\Wpadcenter_Adsense::get_option()
S
68 2 7
Wpadcenter_Elementor_Widgets::get_instance()
S
71 2 6
Wpadcenter_Admin::wpadcenter_remove_permalink()
S
72 2 6
Wpadcenter_Admin::get_transition_effect_options()
S
60 1 14
Wpeka\Adcenter\Wpadcenter_Google_Api::renew_access_token()
S
60 1 14
Wpadcenter_Activator::wpadcenter_install_placement_table()
S
60 1 14
Wpadcenter::load_dependencies()
S
60 1 13
Wpadcenter_Admin::get_default_ad_types()
S
60 1 13
Wpadcenter_Activator::wpadcenter_install_table()
S
63 1 12
Wpadcenter_Admin::wpadcenter_ad_detail_metabox()
S
63 1 11
Wpadcenter_Admin::wpadcenter_gutenberg_block_categories()
S
65 1 11
Wpadcenter_Admin::wpadcenter_manage_edit_adgroups_columns()
S
62 1 11
Wpadcenter::enqueue_admin_styles()
S
65 1 10
Wpadcenter_Elementor_Widgets::register_widgets()
S
79 1 3
Wpeka\Adcenter\Wpadcenter_Adsense::__construct()
S
71 1 5
Wpadcenter_Admin::wpadcenter_ad_html_rest_field_cb()
S
75 1 4
Wpadcenter_Admin::wpadcenter_ad_type_rest_field_cb()
S
69 1 6
Wpadcenter_Adgroup_Widget::__construct()
S
69 1 6
Wpadcenter_Single_Ad_Widget::update()
S
82 1 3
Wpadcenter_Loader::__construct()
S
77 1 4
Wpadcenter::run()
S
82 1 3
run_wpadcenter()
S
77 1 4
Wpadcenter_Elementor_Widgets::__construct()
S
79 1 3
Wpadcenter_Admin::wpadcenter_ad_code_metabox()
S
74 1 4
Wpadcenter_Elementor_AdTypes_Widget::get_categories()
S
81 1 3
Wpadcenter::get_plugin_name()
S
82 1 3
Wpadcenter_Admin::init_admin_hooks()
S
78 1 3
Wpadcenter_Elementor_AdTypes_Widget::get_name()
S
82 1 3
Wpadcenter_Random_Ad_Widget::__construct()
S
69 1 6
Wpadcenter_I18n::load_plugin_textdomain()
S
69 1 7
activate_wpadcenter()
S
73 1 5
Wpadcenter_Elementor_AdTypes_Widget::get_title()
S
82 1 3
Wpadcenter_Loader::add_action()
S
77 1 3
Wpadcenter_Admin::wpadcenter_ad_size_rest_field_cb()
S
72 1 5
Wpadcenter_Elementor_AdTypes_Widget::get_icon()
S
82 1 3
Wpadcenter_Elementor_Widgets::init()
S
74 1 4
Wpadcenter_Single_Ad_Widget::scripts()
S
77 1 3
Wpadcenter_Adgroup_Widget::update()
S
82 1 3
Wpadcenter_Elementor_AdTypes_Widget::get_custom_help_url()
S
82 1 3
Wpadcenter_Elementor_AdTypes_Widget::get_ad_type_options()
S
65 1 9
Wpadcenter_Admin::__construct()
S
70 1 6
Wpeka\Adcenter\Wpadcenter_Google_Api::get_ad_code()
S
66 1 8
wpadcenter_display_adgroup()
S
73 1 4
Wpadcenter_Public::enqueue_scripts()
S
76 1 3
Wpadcenter_Admin::wpadcenter_ad_google_adsense()
S
71 1 5
Wpadcenter_Random_Ad_Widget::update()
S
82 1 3
Wpadcenter_Public::enqueue_styles()
S
76 1 3
Wpadcenter_Admin::wpadcenter_collect_locations()
S
81 1 3
Wpadcenter_Public::wpadcenter_register_gutenberg_scripts()
S
66 1 9
Wpadcenter::get_version()
S
82 1 3
Wpadcenter_Deactivator::deactivate()
S
69 1 7
Wpadcenter::set_locale()
S
75 1 4
Wpadcenter::get_loader()
S
82 1 3
Wpeka\Adcenter\Wpadcenter_Google_Api::get_ad_units()
S
67 1 7
Wpadcenter_Loader::add_filter()
S
77 1 3
Wpadcenter_Elementor_AdTypes_Widget::__construct()
S
73 1 4
deactivate_wpadcenter()
S
76 1 4
Wpeka\Adcenter\Wpadcenter_Google_Api::get_auth_url()
S
67 1 8
Wpadcenter_Admin::wpadcenter_ad_caption_metabox()
S
65 1 9
Wpadcenter_Single_Ad_Widget::__construct()
S
67 1 7
Wpadcenter_Admin::wpadcenter_rest_posts_per_page()
S
70 1 6
Wpadcenter_Loader::add()
S
64 1 10