Code Analysis: Sophi 1.0.2

Function Rating Maintainability Complexity Lines of code
SophiWP\Command::sync()
C
30 27 121
get_breadcrumb()
A
41 15 59
track_event()
A
45 11 45
render_input()
A
47 9 37
sanitize_settings()
A
45 8 47
get_tracking_data()
A
43 7 50
SophiWP\SiteAutomation\Integration::get_curated_posts()
S
50 7 28
script_loader_tag()
S
56 7 18
fields_setup()
S
37 1 105
render_select()
S
51 6 26
get_custom_contexts()
S
43 3 62
SophiWP\SiteAutomation\Request::get()
S
51 5 27
SophiWP\SiteAutomation\Request::request()
S
52 5 24
page_need_tracking()
S
70 6 6
SophiWP\SiteAutomation\Auth::request_access_token()
S
51 4 27
render_block_callback()
S
53 4 25
get_amp_tracking_data()
S
44 1 55
get_default_settings()
S
57 3 18
SophiWP\Base_CLI_Command::stop_the_insanity()
S
61 3 13
get_section_name()
S
62 3 12
render_settings_page()
S
51 1 34
enqueue_scripts()
S
59 2 17
SophiWP\SiteAutomation\Request::set_status()
S
57 2 17
get_sophi_settings()
S
65 3 9
SophiWP\SiteAutomation\Request::retry()
S
66 3 7
blocks_categories()
S
61 2 14
init_tracker()
S
60 2 13
get_post_tags()
S
63 2 12
SophiWP\SiteAutomation\Integration::format_hits_as_posts()
S
64 2 11
SophiWP\SiteAutomation\Auth::refresh_access_token()
S
63 2 11
get_post_data()
S
54 1 19
script_url()
S
69 2 6
style_url()
S
69 2 6
amp_tracking()
S
66 2 9
SophiWP\SiteAutomation\Request::process()
S
68 2 7
SophiWP\SiteAutomation\Services::__get()
S
78 2 3
SophiWP\SiteAutomation\Auth::get_access_token()
S
70 2 7
get_term_breadcrumb()
S
60 1 14
register()
S
63 1 11
SophiWP\SiteAutomation\Integration::format_hits_as_id_parents()
S
64 1 11
i18n()
S
71 1 5
get_enqueue_contexts()
S
80 1 3
add_action_links()
S
67 1 8
SophiWP\SiteAutomation\Request::get_cache_duration()
S
78 1 3
settings_page()
S
66 1 9
SophiWP\SiteAutomation\Request::do_cron()
S
80 1 3
SophiWP\SiteAutomation\Request::get_status()
S
78 1 3
activate()
S
100 1 2
register_blocks()
S
76 1 4
SophiWP\SiteAutomation\Integration::__construct()
S
74 1 4
SophiWP\SiteAutomation\Services::__set()
S
80 1 3
admin_styles()
S
69 1 8
SophiWP\SiteAutomation\Services::register()
S
73 1 5
SophiWP\SiteAutomation\Request::set_api_url()
S
72 1 5
setup()
S
64 1 9
setup()
S
65 1 8
deactivate()
S
100 1 2
setup()
S
68 1 7
setup()
S
70 1 6
get_supported_post_types()
S
79 1 3
setup()
S
68 1 7
SophiWP\SiteAutomation\Integration::format_hits_as_ids()
S
69 1 8
get_domain()
S
76 1 4
SophiWP\SiteAutomation\Request::__construct()
S
66 1 9