Code Analysis: Sophi 1.1.2

Function Rating Maintainability Complexity Lines of code
Command::sync()
D
28
29 142
track_event()
B
41 23 52
get_post_breadcrumb()
B
42 16 54
get_post_categories()
A
39 13 65
sanitize_settings()
A
43 11 52
render_input()
A
47 9 37
get_tracking_data()
A
43 8 51
SophiWP\SiteAutomation\Integration::get_curated_posts()
A
48 8 32
get_default_settings()
A
49 7 33
render_block_callback()
S
47 6 38
script_loader_tag()
S
56 7 18
SophiWP\SiteAutomation\Request::get()
S
49 6 32
fields_setup()
S
37 1 105
render_select()
S
51 6 26
get_post_data()
S
41 4 53
get_custom_contexts()
S
43 3 62
SophiWP\SiteAutomation\Request::process()
S
57 6 16
get_breadcrumb()
S
60 6 14
SophiWP\SiteAutomation\Request::request()
S
51 5 27
send_track_event()
S
49 4 33
get_post_categories_paths()
S
55 5 18
page_need_tracking()
S
70 6 6
build_category_tree()
S
60 5 12
SophiWP\SiteAutomation\Auth::request_access_token()
S
50 4 27
get_categories_hierarchical()
S
62 4 12
get_amp_tracking_data()
S
44 1 55
init_tracker()
S
54 3 21
SophiWP\SiteAutomation\Request::set_status()
S
56 3 19
sophi_upgrade_1_1_0()
S
64 4 9
Base_CLI_Command::stop_the_insanity()
S
61 3 13
get_section_names()
S
62 3 12
render_settings_page()
S
51 1 34
enqueue_scripts()
S
59 2 17
is_configured()
S
59 2 16
SophiWP\SiteAutomation\Request::retry()
S
66 3 7
get_sophi_settings()
S
65 3 9
SophiWP\SiteAutomation\Integration::found_posts()
S
71 3 6
blocks_categories()
S
61 2 14
add_action_links()
S
61 2 13
get_post_tags()
S
63 2 12
sophi_setup_notice()
S
63 2 11
SophiWP\SiteAutomation\Integration::format_hits_as_posts()
S
64 2 11
SophiWP\SiteAutomation\Auth::refresh_access_token()
S
63 2 11
sophi_https_notice()
S
64 2 11
SophiWP\SiteAutomation\Services::__get()
S
78 2 3
SophiWP\SiteAutomation\Auth::get_audience()
S
79 2 3
script_url()
S
69 2 6
amp_tracking()
S
66 2 9
get_post_content_type()
S
67 2 7
style_url()
S
69 2 6
SophiWP\SiteAutomation\Auth::get_auth_url()
S
79 2 3
get_section_name()
S
69 2 7
SophiWP\SiteAutomation\Auth::get_access_token()
S
70 2 7
get_number_of_embedded_images()
S
66 2 8
get_term_breadcrumb()
S
60 1 14
register()
S
63 1 11
SophiWP\SiteAutomation\Integration::format_hits_as_id_parents()
S
64 1 11
settings_page()
S
66 1 9
Emitter::deleteFile()
S
82 1 3
SophiWP\SiteAutomation\Request::get_status()
S
78 1 3
setup()
S
68 1 7
deactivate()
S
100 1 2
SophiWP\SiteAutomation\Request::set_api_url()
S
69 1 6
Emitter::copyFile()
S
82 1 3
get_domain()
S
76 1 4
Emitter::closeFile()
S
82 1 3
SophiWP\SiteAutomation\Services::register()
S
73 1 5
SophiWP\SiteAutomation\Request::do_cron()
S
79 1 3
SophiWP\SiteAutomation\Request::__construct()
S
66 1 9
SophiWP\SiteAutomation\Integration::__construct()
S
71 1 5
SophiWP\SiteAutomation\Request::get_cache_duration()
S
78 1 3
Emitter::makeDir()
S
82 1 3
Emitter::writeToFile()
S
82 1 3
setup()
S
70 1 6
i18n()
S
71 1 5
register_blocks()
S
76 1 4
setup()
S
64 1 9
SophiWP\SiteAutomation\Auth::set_environment()
S
81 1 3
SophiWP\SiteAutomation\Services::__set()
S
80 1 3
activate()
S
100 1 2
admin_styles()
S
69 1 8
SophiWP\SiteAutomation\Integration::format_hits_as_ids()
S
69 1 8
setup()
S
68 1 7
setup()
S
65 1 8
get_supported_post_types()
S
79 1 3
get_enqueue_contexts()
S
80 1 3
SophiWP\SiteAutomation\Auth::__construct()
S
80 1 3
Emitter::openFile()
S
82 1 3