Code Analysis: WC-GSheetConnector 1.0

Function Rating Maintainability Complexity Lines of code
GSCWOO_googlesheet::add_row()
C
33 24 94
Google\Service\Resource::call()
C
32 21 116
Google\Utils\UriTemplate::combine()
B
38 21 66
GSCWOO_googlesheet::add_header()
B
39 18 58
wc_gsheetconnector_Service::create_save_array()
B
40 17 56
wc_gsheetconnector_Service::woocommerce_order_status_changed()
A
42 14 50
Google\Service\Resource::createRequestUri()
A
45 14 39
wc_gsheetconnector_Service::create_remove_sheet_and_headers()
A
41 12 58
GSCWOO_googlesheet::set_alternate_colors()
A
41 12 56
Google\Task\Runner::__construct()
A
45 12 49
GSCWOO_googlesheet::add_multiple_row()
A
43 12 48
Google\Model::__get()
A
49 13 31
Google\Utils\UriTemplate::replace()
A
44 12 46
Google\AccessToken\Verify::verifyIdToken()
A
45 12 39
Google\Http\MediaFileUpload::process()
A
45 10 38
Google\Client::setAuthConfig()
A
48 10 31
GSCWOO_googlesheet::remove_alternate_colors()
A
44 9 45
Google\Model::mapTypes()
A
50 10 28
Google\Http\Batch::parseResponse()
A
44 8 43
GSCWOO_googlesheet::get_header_row()
A
49 8 30
GSCWOO_googlesheet::add_row_to_sheet()
A
44 7 45
wc_gsheetconnector_utility::gs_woocommerce_checkbox_roles_multi()
A
50 8 29
GSCWOO_googlesheet::add_bulk_rows_to_sheet()
A
45 7 41
Google\Client::createApplicationDefaultCredentials()
A
47 7 40
wc_gsheetconnector_Init::run_for_site()
A
55 8 23
Google\Client::createAuthUrl()
A
48 7 34
Google\Http\MediaFileUpload::fetchResumeUri()
A
47 7 33
Google\Client::authorize()
A
49 7 33
wc_gsheetconnector_Service::execute_post_data()
S
49 7 30
Google\Client::__construct()
S
42 5 59
GSCWOO_googlesheet::update_row_by_order_id()
S
44 6 43
GSCWOO_googlesheet::hex_color_to_google_rgb()
S
58 8 12
Google\Client::createDefaultHttpClient()
S
51 7 26
wc_gsheetconnector_utility::admin_notice()
S
52 7 25
wc_gsheetconnector_Service::transition_post_status()
S
54 7 19
Google\Client::isAccessTokenExpired()
S
54 7 19
Google\Task\Composer::cleanup()
S
51 6 28
GS_Processes::sync_woo_google_account()
S
50 6 27
Google\Client::fetchAccessTokenWithRefreshToken()
S
53 6 23
Google\Http\Batch::execute()
S
44 4 51
Google\Task\Runner::run()
S
55 6 21
GSCWOO_googlesheet::sort_sheet_by_column()
S
48 5 35
Google\AuthHandler\AuthHandlerFactory::build()
S
55 6 18
GSCWOO_googlesheet::get_spreadsheets()
S
53 5 23
Google\AccessToken\Verify::getFederatedSignOnCerts()
S
54 5 23
Google\Http\REST::doExecute()
S
54 5 21
GSCWOO_googlesheet::remove_row_by_order_id()
S
48 4 35
Google\Model::toSimpleObject()
S
55 5 20
Google\Http\Batch::parseHttpResponse()
S
55 5 19
wc_gsheetconnector_utility::gs_debug_log()
S
54 5 19
Google\Client::setAccessToken()
S
57 5 18
GS_Processes::get_woo_tab_list_by_sheetname()
S
56 5 17
Google\Model::getSimpleValue()
S
58 5 16
GSCWOO_googlesheet::get_sheet_name()
S
58 5 16
Google\Http\Batch::parseRawHeaders()
S
57 5 16
wc_gsheetconnector_Init::wc_gsheetconnector_activate()
S
59 5 15
GSCWOO_googlesheet::gsheet_create_google_sheet()
S
51 4 28
Google\Service::__construct()
S
60 5 13
wc_gsheetconnector_Service::error_message()
S
61 5 11
Google\Service\Resource::convertToArrayAndStripNulls()
S
62 5 11
Google\Task\Composer::verifyServicesToKeep()
S
53 4 25
Google\Client::fetchAccessTokenWithAssertion()
S
53 4 23
Google\AccessToken\Verify::retrieveCertsFromLocation()
S
54 4 22
wc_gsheetconnector_Service::extract_product_qty_sku()
S
53 4 22
GSCWOO_googlesheet::auth()
S
53 4 21
GSCWOO_googlesheet::gsheet_print_google_account_email()
S
58 4 17
Google\Http\MediaFileUpload::makePutRequest()
S
57 4 17
GSCWOO_googlesheet::freeze_row()
S
50 3 30
Google\Client::addScope()
S
64 5 9
wc_gsheetconnector_Init::add_js_files()
S
65 5 8
Google\Client::fetchAccessTokenWithAuthCode()
S
58 4 15
Google\Http\REST::isAltMedia()
S
64 5 9
wc_gsheetconnector_Init::gs_connector_free_uninstall()
S
59 4 14
Google\Model::isAssociativeArray()
S
62 4 12
Google\Task\Runner::allowedRetries()
S
62 4 12
wc_gsheetconnector_Init::validate_parent_plugin_exists()
S
61 4 11
Google\AccessToken\Verify::__construct()
S
63 4 11
Google\AccessToken\Revoke::revokeToken()
S
54 3 22
wc_gsheetconnector_Service::__construct()
S
42 1 50
Google\Client::verifyIdToken()
S
56 3 20
Google\Utils\UriTemplate::combineList()
S
57 3 19
Google\Client::execute()
S
50 2 34
GSCWOO_googlesheet::get_worktabs()
S
56 3 19
GS_Processes::verify_gs_woo_integation()
S
56 3 18
wc_gsheetconnector_Service::wp_trash_post()
S
57 3 16
wc_gsheetconnector_Init::add_css_files()
S
70 4 5
wc_gsheetconnector_Service::get_googlesheet_object()
S
59 3 15
Google\AccessToken\Verify::getJwtService()
S
64 4 10
Google\AccessToken\Verify::setPhpsecConstants()
S
65 4 10
wc_gsheetconnector_utility::logger()
S
65 4 9
Google\Http\Batch::__construct()
S
68 4 6
Google\Http\MediaFileUpload::getUploadType()
S
67 4 9
Google\Http\REST::determineExpectedClass()
S
66 4 9
GSCWOO_googlesheet::gsheet_get_google_account()
S
61 3 14
wc_gsheetconnector_Service::status_is_enabled()
S
60 3 13
Google\Http\REST::decodeHttpResponse()
S
60 3 13
wc_gsheetconnector_Service::change_status_to_uppercase()
S
61 3 12
wc_gsheetconnector_Service::add_status_header_in_all_orders()
S
61 3 12
Google\Utils\UriTemplate::resolveNextSection()
S
62 3 12
GSCWOO_googlesheet::get_spreadsheet_name()
S
62 3 11
Google\Utils\UriTemplate::replaceVars()
S
55 2 24
Google\Http\MediaFileUpload::nextChunk()
S
55 2 19
Google\Utils\UriTemplate::getDataType()
S
65 3 10
wc_gsheetconnector_Init::run_on_uninstall()
S
72 3 5
Google\Collection::rewind()
S
71 3 6
Google\Collection::key()
S
71 3 6
Google\Collection::coerceType()
S
68 3 7
Google\AccessToken\Verify::getOpenSslConstant()
S
66 3 9
GSCWOO_googlesheet::getTabId()
S
66 3 8
Google\Model::assertIsArray()
S
69 3 7
Google\Model::keyType()
S
69 3 6
wc_gsheetconnector_utility::get_current_user_role()
S
68 3 7
Google\Model::__construct()
S
68 3 7
Google\Service\Resource::__construct()
S
63 3 10
Google\Task\Runner::attempt()
S
65 3 10
wc_gsheetconnector_Service::init()
S
58 2 14
GS_Processes::deactivate_gs_woo_integation()
S
61 2 13
Google\Http\REST::execute()
S
61 2 12
Google\AuthHandler\Guzzle6AuthHandler::attachToken()
S
58 1 17
wc_gsheetconnector_Service::woocommerce_process_shop_order_meta()
S
63 2 10
Google\AccessToken\Verify::getRsaClass()
S
72 2 6
Google\Collection::count()
S
71 2 6
Google\Client::createDefaultLogger()
S
64 2 10
Google\AccessToken\Verify::getBigIntClass()
S
72 2 6
Google\Collection::offsetUnset()
S
70 2 6
Google\AuthHandler\Guzzle5AuthHandler::attachCredentials()
S
65 2 10
Google\Model::offsetExists()
S
78 2 3
Google\Client::getOAuth2Service()
S
71 2 6
Google\Model::dataType()
S
70 2 6
Google\AuthHandler\Guzzle6AuthHandler::attachCredentials()
S
65 2 10
Google\AuthHandler\Guzzle6AuthHandler::attachCredentialsCache()
S
59 1 15
wc_gsheetconnector_utility::get_system_roles()
S
67 2 8
Google\Collection::offsetSet()
S
70 2 6
Google\Http\REST::getResponseErrors()
S
68 2 7
Google\Collection::current()
S
71 2 6
Google\Http\MediaFileUpload::transformToUploadUrl()
S
64 2 9
Google\Task\Runner::getDelay()
S
70 2 5
GSCWOO_googlesheet::gsheet_get_google_account_email()
S
67 2 9
Google\Utils\UriTemplate::getValue()
S
69 2 7
Google\Service\Exception::__construct()
S
66 2 8
Google\Http\MediaFileUpload::getResumeUri()
S
71 2 6
Google\Model::offsetSet()
S
67 2 8
Google\Http\Batch::add()
S
71 2 6
Google\Client::setRequestVisibleActions()
S
70 2 6
GSCWOO_googlesheet::updateToken()
S
64 2 9
Google\Client::revokeToken()
S
75 2 4
Google\Model::getMappedName()
S
71 2 6
Google\Collection::valid()
S
75 2 4
Google\Http\REST::decodeBody()
S
71 2 6
Google\Client::prepareScopes()
S
71 2 6
Google\Client::isAppEngine()
S
74 2 4
Google\Collection::offsetExists()
S
70 2 6
Google\Collection::offsetGet()
S
68 2 7
Google\Client::getConfig()
S
78 2 3
Google\Client::getRefreshToken()
S
71 2 6
Google\Model::nullPlaceholderCheck()
S
72 2 6
Google\Model::offsetGet()
S
74 2 5
GSCWOO_googlesheet::getInstance()
S
71 2 6
wc_gsheetconnector_Init::load_all_classes()
S
73 2 5
Google\Client::createOAuth2Service()
S
59 1 15
Google\Client::getCache()
S
72 2 6
Google\Client::getLogger()
S
71 2 6
wc_gsheetconnector_utility::instance()
S
69 2 7
Google\Client::getHttpClient()
S
71 2 6
Google\AuthHandler\Guzzle5AuthHandler::attachToken()
S
61 1 14
Google\Http\MediaFileUpload::resume()
S
61 1 13
GSCWOO_googlesheet::preauth()
S
61 1 12
Google\AuthHandler\Guzzle5AuthHandler::attachCredentialsCache()
S
62 1 12
Google\AuthHandler\Guzzle5AuthHandler::createAuthHttp()
S
63 1 12
Google\Client::getScopes()
S
82 1 3
Google\AuthHandler\Guzzle6AuthHandler::createAuthHttp()
S
65 1 10
Google\Task\Runner::backOff()
S
76 1 4
Google\Client::setDefer()
S
81 1 3
Google\Client::setState()
S
80 1 3
Google\Service::createBatch()
S
69 1 8
Google\Http\MediaFileUpload::__construct()
S
64 1 10
GSCWOO_googlesheet::setSpreadsheetId()
S
81 1 3
Google\Collection::next()
S
80 1 3
Google\Client::createUserRefreshCredentials()
S
64 1 10
Google\Task\Runner::setRetryMap()
S
81 1 3
GSCWOO_googlesheet::setInstance()
S
80 1 3
Google\Client::setClientSecret()
S
80 1 3
Google\Client::authenticate()
S
80 1 3
Google\Http\MediaFileUpload::setChunkSize()
S
81 1 3
Google\Http\MediaFileUpload::getHttpResultCode()
S
82 1 3
Google\Client::setLoginHint()
S
80 1 3
GS_Processes::__construct()
S
68 1 7
Google\Client::setLogger()
S
81 1 3
Google\Client::setAuthConfigFile()
S
81 1 3
Google\Model::gapiInit()
S
83 1 3
GS_Processes::gs_woo_clear_logs()
S
70 1 6
Google\Task\Runner::getJitter()
S
78 1 3
Google\Client::setHostedDomain()
S
80 1 3
Google\AuthHandler\Guzzle5AuthHandler::attachKey()
S
69 1 6
Google\Client::getClientId()
S
80 1 3
wc_gsheetconnector_Init::__construct()
S
64 1 9
Google\Client::setCache()
S
81 1 3
GSCWOO_googlesheet::setWorkTabId()
S
81 1 3
wc_gsheetconnector_Init::delete_for_site()
S
68 1 8
Google\Client::getAccessToken()
S
82 1 3
Google\Service\Exception::getErrors()
S
82 1 3
GSCWOO_googlesheet::getWorkTabId()
S
82 1 3
Google\AccessToken\Revoke::__construct()
S
81 1 3
Google\Task\Composer::getServicesToRemove()
S
70 1 7
wc_gsheetconnector_Init::load_css_and_js_files()
S
75 1 4
Google\Client::setApprovalPrompt()
S
80 1 3
Google\Client::setSubject()
S
80 1 3
Google\Client::setCacheConfig()
S
80 1 3
GSCWOO_googlesheet::get_sheet_tabs()
S
72 1 5
GSCWOO_googlesheet::insert_data_into_sheet()
S
65 1 9
Google\Client::refreshToken()
S
80 1 3
wc_gsheetconnector_Init::google_sheet_configuration()
S
80 1 3
Google\AuthHandler\Guzzle6AuthHandler::__construct()
S
77 1 4
Google\Http\MediaFileUpload::setFileSize()
S
81 1 3
Google\Client::setAccessType()
S
80 1 3
Google\Task\Runner::canAttempt()
S
80 1 3
wc_gsheetconnector_Init::wc_gsheet_setting_link()
S
69 1 6
Google\Model::offsetUnset()
S
80 1 3
Google\Model::__isset()
S
79 1 3
Google\Utils\UriTemplate::parse()
S
79 1 3
Google\Client::getClientSecret()
S
80 1 3
Google\AuthHandler\Guzzle6AuthHandler::attachKey()
S
64 1 9
GSCWOO_googlesheet::ciu_tabs_and_headers()
S
68 1 7
wc_gsheetconnector_utility::__construct()
S
91 1 2
Google\Client::setUseBatch()
S
81 1 3
Google\Http\MediaFileUpload::getRequest()
S
82 1 3
Google\Client::getLibraryVersion()
S
81 1 3
Google\Client::shouldDefer()
S
82 1 3
wc_gsheetconnector_Init::register_gs_menu_pages()
S
78 1 3
Google\Client::setPrompt()
S
80 1 3
Google\Client::createDefaultCache()
S
82 1 3
Google\Client::setDeveloperKey()
S
80 1 3
Google\Client::setAuth()
S
76 1 5
Google\Client::setApplicationName()
S
80 1 3
GSCWOO_googlesheet::getSpreadsheetId()
S
82 1 3
wc_gsheetconnector_Init::wc_gsheet_missing_notice()
S
68 1 7
Google\Client::setClientId()
S
80 1 3
Google\Model::__unset()
S
80 1 3
Google\AccessToken\Verify::getCache()
S
82 1 3
Google\Client::setHttpClient()
S
81 1 3
Google\Client::setTokenCallback()
S
80 1 3
wc_gsheetconnector_Init::wc_gsheetconnector_deactivate()
S
91 1 2
GSCWOO_googlesheet::perform_sheet_tab_updates()
S
69 1 6
Google\Client::useApplicationDefaultCredentials()
S
80 1 3
Google\Client::setConfig()
S
80 1 3
Google\Client::setIncludeGrantedScopes()
S
80 1 3
Google\Client::refreshTokenWithAssertion()
S
81 1 3
Google\Client::getAuthHandler()
S
72 1 6
Google\AuthHandler\Guzzle5AuthHandler::__construct()
S
77 1 4
Google\Client::getAuth()
S
76 1 5
Google\Client::setApiFormatV2()
S
79 1 3
Google\Client::getRedirectUri()
S
80 1 3
Google\Client::setScopes()
S
77 1 4
Google\Service::getClient()
S
82 1 3
GSCWOO_googlesheet::__construct()
S
91 1 2
Google\Client::isUsingApplicationDefaultCredentials()
S
80 1 3
Google\Client::setOpenidRealm()
S
80 1 3
Google\Model::camelCase()
S
69 1 6
Google\Client::setRedirectUri()
S
80 1 3
Google\Http\MediaFileUpload::getProgress()
S
82 1 3