Code Analysis: Show Google Analytics widget 1.5.4

Function Rating Maintainability Complexity Lines of code
SigGaWidget::show_ga_views_widget()
B
41 23 46
gapi::requestReportData()
B
37 20 69
SigGaWidget::show_ga_hot_widget()
B
42 21 42
SigGaWidget::call_ga_api()
A
46 12 38
gapi::reportObjectMapper()
A
42 10 49
gapiOAuth2::fetchToken()
A
43 9 45
Sig_Ga_Hot_Widget::widget()
A
52 10 20
Sig_Ga_Views_Widget::widget()
A
52 10 20
SigGaWidget::show_post_pv_the_content()
A
56 9 16
SigGaWidget::get_post_pv()
A
52 8 22
SigGaWidget::check_ga_config()
A
56 8 18
gapiRequest::fopenRequest()
S
49 7 29
Sig_Ga_Views_Widget::form()
S
48 6 34
Sig_Ga_Hot_Widget::form()
S
48 6 34
Sig_Ga_Data::get_hot_data()
S
49 5 32
SigGaWidget::wpajax_get_data()
S
62 7 10
gapi::ArrayKeyExists()
S
59 6 15
Sig_Ga_Data::get_total_data()
S
49 4 33
gapiRequest::request()
S
59 5 13
gapiRequest::curlRequest()
S
53 4 24
Sig_Ga_Data::get_month_data()
S
49 3 32
gapiReportEntry::__call()
S
58 4 15
gapi::__call()
S
58 4 15
gapi::accountObjectMapper()
S
59 4 14
Sig_Ga_Views_Widget::update()
S
59 4 13
Sig_Ga_Hot_Widget::update()
S
60 4 12
SigGaWidget::__construct()
S
55 3 17
SigGaWidget::handle_file_upload()
S
64 4 9
gapiAccountEntry::__call()
S
62 3 11
gapi::cleanErrorResponse()
S
62 3 11
Sig_Ga_Data::get_all_view_data()
S
53 2 25
SigGaWidget::add_ga_view_page()
S
54 2 24
Sig_Ga_Data::get_today_data()
S
54 2 23
Sig_Ga_Data::get_post_view_data()
S
55 2 20
gapi::processFilter()
S
58 2 14
gapi::requestAccountData()
S
59 2 13
gapiReportEntry::__toString()
S
75 2 4
gapiOAuth2::generateAuthHeader()
S
72 2 5
gapiRequest::getUrl()
S
66 2 8
gapi::getResults()
S
79 2 3
gapi::getAccounts()
S
79 2 3
SigGaWidget::add_ga_view_scripts()
S
66 2 7
gapiAccountEntry::__toString()
S
75 2 4
gapi::__construct()
S
67 2 7
SigGaWidget::shortcode_post_pv()
S
62 1 13
gapi::getMetrics()
S
82 1 3
gapiReportEntry::__construct()
S
77 1 4
gapiAccountEntry::__construct()
S
81 1 3
gapiOAuth2::base64URLEncode()
S
77 1 3
SigGaWidget::register_ga_opt_var()
S
78 1 3
Sig_Ga_Hot_Widget::__construct()
S
67 1 9
SigGaWidget::custom_upload_mimes()
S
76 1 4
gapi::revokeToken()
S
81 1 3
gapiRequest::post()
S
79 1 3
SigGaWidget::register_ga_widget()
S
77 1 4
gapiRequest::get()
S
79 1 3
gapi::getTokenInfo()
S
81 1 3
gapiRequest::__construct()
S
81 1 3
SigGaWidget::setting_ga_option_menu()
S
65 1 10
gapiReportEntry::getMetrics()
S
82 1 3
Sig_Ga_Views_Widget::__construct()
S
67 1 9
SigGaWidget::ga_settings_page()
S
80 1 3
gapiOAuth2::getToken()
S
82 1 3
gapi::getToken()
S
81 1 3
gapiReportEntry::getDimensions()
S
82 1 3
gapiAccountEntry::getProperties()
S
82 1 3
gapiOAuth2::base64URLDecode()
S
76 1 3
SigGaWidget::plugin_settings_link()
S
72 1 5
SigGaWidget::add_ga_view_menu()
S
66 1 9