Code Analysis: Sophi 1.3.2

Function Rating Maintainability Complexity Lines of code
Command::sync()
D
28
29 142
track_event()
B
41 23 52
SophiWP\SiteAutomation\Request::get()
B
39 16 63
get_post_breadcrumb()
B
42 16 54
SophiWP\SiteAutomation\EndPoints::site_automation_override()
A
38 14 63
get_post_categories()
A
39 13 65
render_block_callback()
A
40 12 61
sanitize_settings()
A
44 11 51
is_configured()
A
45 10 47
render_input()
A
47 9 37
get_tracking_data()
A
43 8 52
SophiWP\SiteAutomation\Integration::get_curated_posts()
A
48 8 32
get_default_settings()
A
47 7 37
fields_setup()
A
36 1 122
get_post_data()
S
41 5 53
script_loader_tag()
S
56 7 18
render_select()
S
51 6 26
SophiWP\SiteAutomation\EndPoints::get_post_details()
S
52 6 24
send_track_event()
S
48 5 37
get_custom_contexts()
S
42 3 64
get_breadcrumb()
S
60 6 14
get_post_categories_paths()
S
55 5 18
maybe_skip_track_event()
S
56 5 16
page_need_tracking()
S
70 6 6
SophiWP\SiteAutomation\Auth::request_access_token()
S
49 4 29
SophiWP\SiteAutomation\EndPoints::site_automation()
S
50 4 29
build_category_tree()
S
60 5 12
get_primary_category()
S
62 5 11
SophiWP\SiteAutomation\Request::request()
S
53 4 23
SophiWP\SiteAutomation\Request::process()
S
56 4 19
SophiWP\SiteAutomation\Auth::decrypt()
S
58 4 15
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
57 3 17
blocks_categories()
S
60 3 14
Base_CLI_Command::stop_the_insanity()
S
61 3 13
SophiWP\SiteAutomation\Auth::encrypt()
S
60 3 13
add_action_links()
S
60 3 13
get_section_names()
S
62 3 12
SophiWP\SiteAutomation\Request::set_api_url()
S
56 2 21
render_settings_page()
S
51 1 34
enqueue_scripts()
S
59 2 17
SophiWP\SiteAutomation\EndPoints::site_automation_override_params()
S
51 1 31
SophiWP\SiteAutomation\Request::retry()
S
66 3 7
SophiWP\SiteAutomation\Integration::found_posts()
S
71 3 6
get_number_of_embedded_images()
S
65 3 8
get_sophi_settings()
S
65 3 9
get_post_tags()
S
63 2 12
sophi_https_notice()
S
64 2 11
sophi_setup_notice()
S
63 2 11
SophiWP\SiteAutomation\Integration::format_hits_as_posts()
S
64 2 11
SophiWP\SiteAutomation\EndPoints::register_routes()
S
54 1 26
SophiWP\SiteAutomation\EndPoints::site_automation_params()
S
57 1 17
style_url()
S
69 2 6
SophiWP\SiteAutomation\EndPoints::site_automation_permission()
S
68 2 7
SophiWP\SiteAutomation\Services::__get()
S
78 2 3
get_section_name()
S
69 2 7
SophiWP\SiteAutomation\Auth::get_access_token()
S
69 2 7
amp_tracking()
S
66 2 9
SophiWP\SiteAutomation\Auth::get_default_salt()
S
72 2 6
SophiWP\SiteAutomation\Auth::get_audience()
S
79 2 3
SophiWP\SiteAutomation\Auth::get_default_key()
S
71 2 6
get_post_content_type()
S
67 2 7
script_url()
S
69 2 6
setup()
S
59 1 15
SophiWP\SiteAutomation\Auth::get_auth_url()
S
79 2 3
SophiWP\SiteAutomation\Auth::refresh_access_token()
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
SophiWP\SiteAutomation\Request::__construct()
S
68 1 8
SophiWP\SiteAutomation\Request::get_status()
S
78 1 3
i18n()
S
71 1 5
setup()
S
65 1 8
setup()
S
68 1 7
get_wp_sophi_versions()
S
79 1 3
Emitter::copyFile()
S
82 1 3
Emitter::deleteFile()
S
82 1 3
Emitter::openFile()
S
82 1 3
SophiWP\SiteAutomation\Request::do_cron()
S
79 1 3
SophiWP\SiteAutomation\Auth::__construct()
S
73 1 5
SophiWP\SiteAutomation\Integration::format_hits_as_ids()
S
69 1 8
admin_styles()
S
69 1 8
SophiWP\SiteAutomation\EndPoints::__construct()
S
72 1 5
SophiWP\SiteAutomation\Integration::__construct()
S
71 1 5
SophiWP\SiteAutomation\Services::__set()
S
80 1 3
Emitter::closeFile()
S
82 1 3
SophiWP\SiteAutomation\Services::register()
S
70 1 6
activate()
S
100 1 2
settings_page()
S
66 1 9
register()
S
67 1 8
Emitter::writeToFile()
S
82 1 3
Emitter::makeDir()
S
82 1 3
get_enqueue_contexts()
S
80 1 3
setup()
S
64 1 9
get_domain()
S
76 1 4
get_supported_post_types()
S
79 1 3
deactivate()
S
100 1 2
SophiWP\SiteAutomation\Auth::set_environment()
S
81 1 3
register_blocks()
S
71 1 6
SophiWP\SiteAutomation\Request::get_cache_duration()
S
78 1 3
setup()
S
70 1 6
setup()
S
68 1 7