Code Analysis: Auto Fixture Generator for SportsPress 1.0

Function Rating Maintainability Complexity Lines of code
AFGSP\AFGSP_Admin::ajax_process_generation()
D
23
45 167
AFGSP\AFGSP_Generator::run()
D
25
43 139
AFGSP\AFGSP_Admin::maybe_handle_submission()
D
29
40 106
AFGSP\AFGSP_Admin::ajax_start_generation()
D
27
38 120
AFGSP\AFGSP_Admin::render_page()
C
21
13 359
AFGSP\AFGSP_Admin::afgsp_maybe_create_entities_and_messages()
C
32 21 106
afgsp_create_event()
B
35 18 84
afgsp_sanitize_options_against_schema()
A
46 14 39
AFGSP\AFGSP_Admin::get_options_schema_map_for_js()
A
40 10 65
generate_fixtures()
A
46 7 40
AFGSP\AFGSP_Admin::ajax_get_teams()
S
51 6 25
afgsp_discover_algorithms()
S
58 6 15
AFGSP\AFGSP_Admin::get_gameweek_end_date()
S
53 5 23
AFGSP\AFGSP_Registry::get_algorithm_callable()
S
58 5 15
afgsp_event_exists_between_teams_on_date()
S
45 3 43
AFGSP\AFGSP_Admin::get_algorithm_events_description()
S
57 4 16
afgsp_get_sportspress_terms_map()
S
58 4 16
afgsp_load_dependencies()
S
59 4 15
AFGSP\AFGSP_Admin::enqueue_assets()
S
52 3 25
afgsp_sanitize_nested_array()
S
62 3 12
afgsp_get_teams_for_league_and_season()
S
53 2 24
afgsp_fs()
S
54 2 22
afgsp_event_exists_between_teams()
S
50 1 31
AFGSP\AFGSP_Admin::calculate_round_robin_matches()
S
64 3 9
AFGSP\AFGSP_Registry::get_algorithm_info()
S
74 2 4
AFGSP\AFGSP_Admin::get_instance()
S
71 2 6
afgsp_activate()
S
100 1 2
afgsp_deactivate()
S
100 1 2
AFGSP\AFGSP_Registry::get_algorithms()
S
79 1 3
AFGSP\AFGSP_Admin::get_premium_algorithm_labels_for_message()
S
79 1 3
afgsp_init_plugin()
S
81 1 3
AFGSP\AFGSP_Admin::register_menu()
S
65 1 10
AFGSP\AFGSP_Admin::__construct()
S
66 1 8