Code Analysis: CyberPress 2.5.5

Function Rating Maintainability Complexity Lines of code
CyberPress_Matches_List_Block::block_render()
D
26
43 151
CyberPress_Players_List_Block::block_render()
D
32 32 101
CyberPress_Posts_Settings::cyberpress_carbon_fields_register_fields()
D
16
5 489
CyberPress_Settings::get_settings_fields()
D
19
12 384
CyberPress_Admin::add_custom_post_type()
C
22
16 258
CyberPress_Teams_List_Block::block_render()
C
36 25 77
CyberPress_Posts_Settings::add_post_tabs()
B
33 21 102
CyberPress_Template_Loader::unsupported_theme_init()
B
41 24 50
CyberPress_Settings_API::admin_init()
B
41 23 46
CyberPress::is_cyberpress()
B
44 23 43
CyberPress_Tournaments_List_Block::block_render()
B
37 21 71
CyberPress_Template_Loader::get_template_loader_default_file()
B
44 22 45
CyberPress_Games_List_Block::block_render()
B
39 19 67
CyberPress_Vendors::assets_loader_src()
B
47 18 33
CyberPress_Posts_Settings::create_child_team()
A
49 14 27
CyberPress_Template_Parts::archive_query()
A
56 11 17
CyberPress_Settings_API::callback_repeatable()
A
40 7 60
CyberPress_Admin::add_display_post_states()
A
50 9 29
CyberPress_Settings::get_group_options()
A
38 6 72
CyberPress_Admin::create_archive_posts()
A
46 8 38
CyberPress_Settings::get_option()
A
56 9 17
CyberPress_Admin::ajax_find_posts()
S
50 7 30
CyberPress_Posts_Settings::get_posts_or_taxonomy()
S
45 6 43
CyberPress_Settings_API::callback_number()
S
58 8 12
CyberPress_Settings_API::script()
S
48 1 112
CyberPress_Team_API::get_child_teams()
S
53 7 22
CyberPress_Supported_Themes::get_theme_compatibility_style()
S
49 6 36
CyberPress_Settings::admin_menu_highlight_items()
S
57 7 16
CyberPress_Settings_API::callback_select2()
S
56 7 15
CyberPress_Settings_API::get_sanitize_callback()
S
59 7 14
CyberPress_Admin::updated_archive_pages()
S
59 7 14
CyberPress_Template_Parts::init()
S
33 1 102
CyberPress_Admin::add_admin_body_class()
S
61 7 11
CyberPress_Team_API::get_players()
S
53 6 22
CyberPress_Posts_Settings::get_tournament_stages()
S
54 6 22
CyberPress_Player_API::get_teams()
S
54 6 19
CyberPress_Admin::add_role_caps()
S
40 2 75
CyberPress_Admin::exclude_import_demo_archive_if_page_already_exist()
S
60 6 14
CyberPress_Admin::get_unset_archive_page()
S
55 5 20
CyberPress_Admin::get_tournament_stages()
S
56 5 18
CyberPress_Settings_API::callback_wysiwyg()
S
56 5 16
CyberPress_Admin::admin_title_placeholder_to_custom_redefine()
S
58 5 16
CyberPress_Settings::get_pages()
S
50 4 30
CyberPress_Match_API::get_tournament_stage()
S
64 6 8
CyberPress_Settings_API::callback_image()
S
56 5 15
CyberPress_Admin::get_team_players()
S
60 5 13
CyberPress_Team_API::get_parent_team()
S
62 5 11
CyberPress_Template_Parts::locate_template()
S
57 4 18
CyberPress_Player_API::get_games_stats()
S
56 4 17
CyberPress_Settings_API::callback_text()
S
62 5 9
CyberPress_Template_Loader::unsupported_theme_single_featured_image_filter()
S
65 5 9
CyberPress_Template_Loader::template_loader()
S
60 4 14
CyberPress_Settings_API::sanitize_options()
S
61 4 13
CyberPress_Settings_API::callback_select()
S
60 4 11
CyberPress_Settings::admin_menu()
S
46 1 54
CyberPress_Settings_API::show_forms()
S
54 3 24
CyberPress_Matches_List_Block::get_tournament_stage_options()
S
53 3 24
CyberPress_Template_Loader::unsupported_theme_player_content_filter()
S
54 3 22
CyberPress_Template_Loader::unsupported_theme_team_content_filter()
S
54 3 21
CyberPress_Tournaments_List_Block::get_meta_query_for_multiple_selector()
S
56 3 20
CyberPress_Matches_List_Block::get_meta_query_for_multiple_selector()
S
56 3 20
CyberPress_Players_List_Block::get_meta_query_for_multiple_selector()
S
56 3 20
CyberPress_Teams_List_Block::get_meta_query_for_multiple_selector()
S
56 3 20
CyberPress_Match_API::get_participants()
S
56 3 18
CyberPress_Template_Loader::unsupported_theme_tournament_content_filter()
S
56 3 18
CyberPress_Template_Loader::unsupported_theme_match_content_filter()
S
57 3 17
CyberPress_Player_API::get_country()
S
57 3 16
CyberPress_Team_API::get_country_of_foundation()
S
57 3 16
CyberPress_Template_Parts::modify_query_get_parent_team_posts()
S
69 4 6
CyberPress_Settings_API::callback_textarea()
S
63 4 8
CyberPress_Settings_API::callback_file()
S
61 4 10
CyberPress_Tournament_API::get_tournament_stages()
S
63 4 10
CyberPress_Settings_API::callback_multicheck()
S
58 3 14
CyberPress_Template_Loader::unsupported_theme_game_content_filter()
S
59 3 14
CyberPress_Template_Loader::unsupported_theme_games_archive_content_filter()
S
59 3 13
CyberPress_Template_Loader::unsupported_theme_matches_archive_content_filter()
S
59 3 13
CyberPress_Template_Loader::unsupported_theme_players_archive_content_filter()
S
59 3 13
CyberPress_Template_Loader::unsupported_theme_teams_archive_content_filter()
S
59 3 13
CyberPress_Template_Loader::unsupported_theme_tournaments_archive_content_filter()
S
59 3 13
CyberPress_Settings_API::show_navigation()
S
61 3 12
CyberPress_Player_API::get_gender()
S
62 3 11
CyberPress_Admin::add_rewrite_rules()
S
63 3 11
CyberPress::get_kses_allowed_img()
S
50 1 35
CyberPress::enqueue_block_editor_assets()
S
55 2 20
CyberPress::init()
S
55 2 18
CyberPress_Posts_Settings::get_social_icons()
S
48 1 33
CyberPress_Player_API::__construct()
S
65 3 9
CyberPress_Template_Parts::get_template()
S
62 3 10
CyberPress_Game_API::__construct()
S
65 3 9
CyberPress_Match_API::__construct()
S
65 3 9
CyberPress_Settings_API::callback_color()
S
66 3 7
CyberPress_Settings_API::callback_password()
S
66 3 7
CyberPress_Team_API::__construct()
S
65 3 9
CyberPress_Template_Parts::archive_pagination()
S
67 3 7
CyberPress_Custom_Post_API::__construct()
S
64 3 10
CyberPress_Team_API::get_game()
S
64 3 10
CyberPress_Tournament_API::__construct()
S
65 3 9
CyberPress_Tournament_API::get_game()
S
64 3 10
CyberPress_Tournament_API::get_organizer()
S
67 3 7
CyberPress_Tournament_API::get_type()
S
67 3 7
CyberPress_Match_API::get_game()
S
64 3 10
CyberPress_Tournament_API::get_total_prize_pool()
S
67 3 7
CyberPress_Admin::manage_post_img_column()
S
65 3 9
CyberPress_Settings::get_settings_sections()
S
52 1 29
CyberPress::wp_enqueue_scripts()
S
60 2 12
CyberPress_Settings_API::callback_radio()
S
60 2 12
CyberPress_Settings_API::_style_fix()
S
64 2 12
CyberPress_Matches_List_Block::init()
S
64 2 11
CyberPress_Players_List_Block::init()
S
64 2 11
CyberPress_Teams_List_Block::init()
S
64 2 11
CyberPress_Tournaments_List_Block::init()
S
64 2 11
CyberPress_Games_List_Block::init()
S
64 2 11
CyberPress_Admin::__construct()
S
53 1 21
CyberPress::include_dependencies()
S
57 1 19
CyberPress::get_kses_allowed_iframe()
S
59 1 17
CyberPress_Settings_API::get_field_description()
S
66 2 8
CyberPress_Players_List_Block::get_default_attributes()
S
68 2 7
CyberPress_Custom_Post_API::get_filter_prefix()
S
65 2 9
CyberPress_Twitch::enqueue_scripts()
S
66 2 8
CyberPress::add_carbon_compatibility()
S
71 2 6
CyberPress_Twitch::embed()
S
74 2 4
CyberPress_Supported_Themes::__construct()
S
70 2 6
CyberPress_Supported_Themes::wp_enqueue_scripts()
S
66 2 8
CyberPress_Supported_Themes::enqueue_block_editor_styles()
S
71 2 6
CyberPress_Template_Loader::init()
S
66 2 8
CyberPress_Player_API::get_age()
S
64 2 9
CyberPress_Template_Loader::get_template_loader_files()
S
66 2 8
CyberPress::instance()
S
70 2 7
CyberPress::add_carbon_field_react_select_root_uri()
S
72 2 6
CyberPress_Player_API::get_date_of_birth_formatted()
S
68 2 7
CyberPress_Settings_API::get_option()
S
69 2 7
CyberPress_Country::get_flag()
S
65 2 8
CyberPress_Player_API::get_twitch_channel_url()
S
73 2 4
CyberPress_Template_Parts::remove_unsupported_wrappers()
S
68 2 7
CyberPress_Player_API::get_youtube_channel_url()
S
73 2 4
CyberPress_Team_API::get_date_of_foundation_formatted()
S
66 2 8
CyberPress_Team_API::get_twitch_channel_url()
S
73 2 4
CyberPress_Custom_Post_API::get_thumbnail()
S
69 2 6
CyberPress_Team_API::get_youtube_channel_url()
S
73 2 4
CyberPress_Match_API::get_videos()
S
66 2 8
CyberPress::enqueue_block_editor_styles()
S
69 2 7
CyberPress_Tournaments_List_Block::get_default_attributes()
S
68 2 7
CyberPress_Tournament_API::get_videos()
S
66 2 8
CyberPress_Posts_Settings::gutenberg_cant_edit_cyberpress_page_type()
S
68 2 7
CyberPress_Games_List_Block::get_default_attributes()
S
68 2 7
CyberPress_Admin::maybe_flush_rewrite_rules()
S
71 2 6
CyberPress_Teams_List_Block::get_default_attributes()
S
68 2 7
CyberPress_Matches_List_Block::get_default_attributes()
S
68 2 7
CyberPress_Admin::admin_enqueue_scripts()
S
60 1 12
CyberPress_Settings_API::add_field()
S
63 1 11
CyberPress::block_categories_all()
S
65 1 11
CyberPress_Template_Parts::single_tournament()
S
80 1 3
CyberPress::deactivation_hook()
S
77 1 4
CyberPress_Custom_Post_API::get_the_content()
S
77 1 3
CyberPress::get_the_team()
S
80 1 3
CyberPress_Settings_API::callback_html()
S
80 1 3
CyberPress_Admin::enqueue_carbon_fields_assets()
S
67 1 7
CyberPress_Custom_Post_API::get_global_prefix()
S
82 1 3
CyberPress_Player_API::get_date_of_birth()
S
77 1 3
CyberPress::get_the_player()
S
80 1 3
CyberPress_Template_Parts::single_tournament_matches()
S
80 1 3
CyberPress_Template_Parts::single_team_title()
S
80 1 3
CyberPress_Template_Parts::players_wrapper_block_end()
S
80 1 3
CyberPress_Template_Parts::single_game_content()
S
80 1 3
CyberPress_Settings_API::callback_pages()
S
63 1 10
CyberPress::__construct()
S
91 1 2
CyberPress_Custom_Post_API::set_id()
S
81 1 3
CyberPress_Template_Parts::archive_team_wrapper_start()
S
80 1 3
CyberPress_Custom_Post_API::get_the_time()
S
77 1 3
CyberPress_Template_Parts::tournaments_loop_block_end()
S
80 1 3
CyberPress_Template_Parts::matches_wrapper_block_end()
S
80 1 3
CyberPress_Template_Parts::games_wrapper_block_start()
S
78 1 3
CyberPress_Player_API::get_site_url()
S
77 1 3
CyberPress_Template_Parts::single_player_teams()
S
80 1 3
CyberPress_Template_Parts::single_match_screenshots()
S
80 1 3
CyberPress_Admin::add_post_img_column()
S
67 1 7
CyberPress_Template_Parts::players_loop_block_start()
S
78 1 3
CyberPress_Settings_API::set_fields()
S
77 1 4
CyberPress_Template_Parts::teams_loop_block_start()
S
78 1 3
CyberPress_Tournament_API::get_time_start_formatted()
S
74 1 4
CyberPress_Template_Parts::archive_game_loop_start()
S
65 1 10
CyberPress_Tournament_API::get_time_start()
S
77 1 3
CyberPress_Template_Parts::wrapper_start()
S
80 1 3
CyberPress_Template_Parts::single_player_thumbnail()
S
80 1 3
CyberPress_Template_Parts::content_none()
S
80 1 3
CyberPress_Template_Parts::single_player_content()
S
80 1 3
CyberPress_Template_Parts::archive_player_wrapper_end()
S
80 1 3
CyberPress_Template_Parts::single_game()
S
80 1 3
CyberPress_Template_Parts::archive_tournament_loop()
S
67 1 9
CyberPress_Tournament_API::tournament_classes()
S
80 1 3
CyberPress_Template_Parts::games_wrapper_block_end()
S
80 1 3
CyberPress_Template_Parts::archive_player_wrapper_start()
S
80 1 3
CyberPress_Template_Parts::archive_player_loop()
S
67 1 9
CyberPress_Template_Parts::single_match_participants()
S
80 1 3
CyberPress_Template_Parts::teams_loop_block()
S
69 1 8
CyberPress_Custom_Post_API::set_post_type()
S
81 1 3
CyberPress_Match_API::get_tournament()
S
71 1 5
CyberPress_Match_API::get_time_end()
S
77 1 3
CyberPress_Template_Parts::players_archive_title()
S
80 1 3
CyberPress_Template_Parts::teams_loop_block_end()
S
80 1 3
CyberPress_Match_API::get_screenshots()
S
77 1 3
CyberPress_Match_API::get_time_start()
S
77 1 3
CyberPress_Settings_API::callback_checkbox()
S
62 1 10
CyberPress_Template_Parts::wrapper_end()
S
80 1 3
CyberPress_Template_Parts::single_player()
S
80 1 3
CyberPress_Posts_Settings::init_actions()
S
69 1 6
CyberPress_Template_Parts::archive_tournament_wrapper_end()
S
80 1 3
CyberPress_Template_Parts::matches_loop_block_start()
S
78 1 3
CyberPress_Template_Parts::archive_match_loop_end()
S
80 1 3
CyberPress::admin_init()
S
67 1 7
CyberPress_Posts_Settings::__construct()
S
82 1 3
CyberPress_Template_Parts::archive_tournament_loop_end()
S
80 1 3
CyberPress_Custom_Post_API::the_content()
S
80 1 3
CyberPress_Player_API::get_social_links()
S
77 1 3
CyberPress_Custom_Post_API::the_excerpt()
S
81 1 3
CyberPress_Template_Parts::single_player_title()
S
80 1 3
CyberPress_Player_API::get_twitch_player_oembed()
S
74 1 4
CyberPress_Template_Parts::single_team_thumbnail()
S
80 1 3
CyberPress_Custom_Post_API::get_the_excerpt()
S
78 1 3
CyberPress_Template_Parts::players_loop_block()
S
69 1 8
CyberPress_Template_Parts::games_loop_block_start()
S
78 1 3
CyberPress_Template_Parts::matches_loop_block_end()
S
80 1 3
CyberPress_Template_Parts::single_tournament_title()
S
80 1 3
CyberPress_Template_Parts::single_team_content()
S
80 1 3
CyberPress_Template_Parts::matches_archive_title()
S
80 1 3
CyberPress::get_the_game()
S
80 1 3
CyberPress_Template_Parts::archive_match_loop_start()
S
65 1 10
CyberPress_Team_API::get_site_url()
S
77 1 3
CyberPress_Template_Parts::teams_wrapper_block_start()
S
78 1 3
CyberPress_Template_Parts::single_team()
S
80 1 3
CyberPress_Template_Parts::archive_team_loop_start()
S
65 1 10
CyberPress_Template_Parts::players_wrapper_block_start()
S
78 1 3
CyberPress_Template_Parts::blocks_pagination()
S
67 1 9
CyberPress_Template_Parts::single_match_title()
S
80 1 3
CyberPress_Template_Parts::single_player_social()
S
80 1 3
CyberPress_Game_API::game_classes()
S
80 1 3
CyberPress_Template_Parts::players_loop_block_end()
S
80 1 3
CyberPress_Settings_API::callback_url()
S
81 1 3
CyberPress_Players_List_Block::__construct()
S
79 1 3
CyberPress_Template_Parts::archive_player_loop_start()
S
65 1 10
CyberPress_Template_Parts::archive_game_loop_end()
S
80 1 3
CyberPress_Template_Parts::archive_team_loop()
S
67 1 9
CyberPress_Template_Parts::single_match()
S
80 1 3
CyberPress_Template_Parts::single_tournament_content()
S
80 1 3
CyberPress_Template_Parts::tournaments_archive_title()
S
80 1 3
CyberPress_Template_Parts::progress()
S
79 1 3
CyberPress_Settings::print_settings_page()
S
67 1 8
CyberPress_Template_Parts::single_game_title()
S
80 1 3
CyberPress_Template_Parts::games_archive_title()
S
80 1 3
CyberPress_Template_Parts::single_team_players()
S
80 1 3
CyberPress_Template_Parts::matches_wrapper_block_start()
S
78 1 3
CyberPress_Match_API::get_time_end_formatted()
S
73 1 4
CyberPress_Matches_List_Block::__construct()
S
75 1 4
CyberPress_Tournament_API::get_screenshots()
S
77 1 3
CyberPress_Custom_Post_API::get_post_type()
S
82 1 3
CyberPress_Custom_Post_API::check_thumbnail()
S
74 1 4
CyberPress_Tournament_API::get_time_end_formatted()
S
74 1 4
CyberPress::get_the_tournament()
S
80 1 3
CyberPress_Player_API::player_classes()
S
80 1 3
CyberPress_Settings_API::set_sections()
S
77 1 4
CyberPress_Custom_Post_API::get_title()
S
78 1 3
CyberPress::activation_hook()
S
79 1 3
CyberPress::get_the_match()
S
80 1 3
CyberPress_Template_Parts::archive_game_loop()
S
67 1 9
CyberPress_Team_API::get_date_of_foundation()
S
77 1 3
CyberPress_Tournaments_List_Block::__construct()
S
79 1 3
CyberPress_Teams_List_Block::__construct()
S
79 1 3
CyberPress_Custom_Post_API::get_url()
S
78 1 3
CyberPress_Template_Parts::archive_tournament_loop_start()
S
65 1 10
CyberPress_Template_Parts::tournaments_wrapper_block_end()
S
80 1 3
CyberPress_Template_Parts::single_match_content()
S
80 1 3
CyberPress_Template_Parts::teams_archive_title()
S
80 1 3
CyberPress_Template_Parts::single_player_twitch()
S
80 1 3
CyberPress_Team_API::get_social_links()
S
77 1 3
CyberPress_Team_API::get_twitch_player_oembed()
S
74 1 4
CyberPress_Template_Parts::sidebar()
S
73 1 5
CyberPress_Template_Parts::single_tournament_info()
S
80 1 3
CyberPress_Template_Parts::archive_team_wrapper_end()
S
80 1 3
CyberPress_Country::countries()
S
79 1 3
CyberPress_Template_Parts::archive_game_wrapper_end()
S
80 1 3
CyberPress_Template_Parts::archive_match_loop()
S
67 1 9
CyberPress_Template_Parts::single_tournament_screenshots()
S
80 1 3
CyberPress_Template_Parts::games_loop_block_end()
S
80 1 3
CyberPress_Custom_Post_API::get_id()
S
82 1 3
CyberPress_Template_Parts::archive_match_wrapper_end()
S
80 1 3
CyberPress_Template_Parts::archive_team_loop_end()
S
80 1 3
CyberPress_Template_Parts::single_post_navigation()
S
80 1 3
CyberPress_Template_Parts::tournaments_loop_block()
S
69 1 8
CyberPress_Template_Parts::single_team_twitch()
S
80 1 3
CyberPress_Match_API::get_time_start_formatted()
S
73 1 4
CyberPress_Settings_API::admin_enqueue_scripts()
S
72 1 6
CyberPress_Template_Parts::single_match_videos()
S
80 1 3
CyberPress_Template_Parts::single_tournament_videos()
S
80 1 3
CyberPress_Template_Parts::single_team_social()
S
80 1 3
CyberPress_Tournament_API::get_time_end()
S
77 1 3
CyberPress_Template_Parts::single_game_thumbnail()
S
80 1 3
CyberPress_Template_Parts::tournaments_wrapper_block_start()
S
78 1 3
CyberPress_Team_API::team_classes()
S
80 1 3
CyberPress_Template_Parts::single_player_info()
S
80 1 3
CyberPress_Player_API::get_twitch_chat_oembed()
S
82 1 3
CyberPress_Settings::admin_init()
S
74 1 5
CyberPress_Template_Parts::single_team_info()
S
80 1 3
CyberPress_Template_Parts::matches_loop_block()
S
69 1 8
CyberPress_Player_API::get_full_name()
S
77 1 3
CyberPress_Settings::init_actions()
S
69 1 6
CyberPress_Template_Parts::single_player_games_stats()
S
80 1 3
CyberPress_Settings::__construct()
S
81 1 3
cyberpress()
S
82 1 3
CyberPress_Team_API::get_twitch_chat_oembed()
S
82 1 3
CyberPress_Vendors::__construct()
S
67 1 7
CyberPress_Template_Parts::teams_wrapper_block_end()
S
80 1 3
CyberPress_Match_API::match_classes()
S
80 1 3
CyberPress_Template_Parts::tournaments_loop_block_start()
S
78 1 3
CyberPress_Template_Parts::archive_player_loop_end()
S
80 1 3
CyberPress_Template_Parts::games_loop_block()
S
69 1 8
CyberPress_Settings_API::add_section()
S
76 1 4
CyberPress_Custom_Post_API::get_the_date()
S
77 1 3
CyberPress_Template_Parts::archive_match_wrapper_start()
S
80 1 3
CyberPress_Country::country()
S
79 1 3
CyberPress_Template_Parts::archive_tournament_wrapper_start()
S
80 1 3
CyberPress_Games_List_Block::__construct()
S
79 1 3
CyberPress_Vendors::carbon_fields_boot()
S
80 1 3
CyberPress_Template_Parts::archive_game_wrapper_start()
S
80 1 3