Code Analysis: WPForms GSheetConnector 3.4.18

Function Rating Maintainability Complexity Lines of code
WPforms_Gsheet_Connector_Init::get_wpforms_system_info()
D
18
46 215
WPforms_Googlesheet_Services::add_integration()
D
24
20 265
WPGS_FormBuilder::get_fields_for_block()
C
22
17 269
Google\Service\Resource::call()
C
32 21 114
WPforms_Googlesheet_Services::wpforms_googlesheet_settings_content()
B
31 15 156
Google\Utils\UriTemplate::combine()
B
38 21 66
wpfgsc_googlesheet::add_header()
B
39 18 58
WPGS_FormBuilder::save_form_args()
A
43 15 43
Google\Service\Resource::createRequestUri()
A
45 14 39
wpfgsc_googlesheet::add_row()
A
43 13 47
wpfgsc_googlesheet::set_alternate_colors()
A
40 12 58
Google\AccessToken\Verify::verifyIdToken()
A
46 13 37
Google\Task\Runner::__construct()
A
45 12 49
Google\Utils\UriTemplate::replace()
A
44 12 46
Google\Model::__get()
A
49 13 31
WPGS_FormBuilder::entry_save()
A
44 12 41
Wpform_gs_Connector_Utility::gs_debug_log()
A
44 10 44
WPforms_Googlesheet_Services::entry_save()
A
46 10 35
wpfgsc_googlesheet::remove_alternate_colors()
A
44 9 47
Google\Client::setAuthConfig()
A
48 10 31
Google\Model::mapTypes()
A
50 10 28
WPGS_FormBuilder::get_data_to_submit()
A
51 10 26
wpfgsc_googlesheet::add_row_to_sheet()
A
43 8 50
WPforms_Googlesheet_Services::execute_post_data()
A
56 10 16
wpfgsc_googlesheet::sync_with_google_account()
A
44 8 46
Google\Http\Batch::parseResponse()
A
44 8 43
WPGS_FormBuilder::panel_content()
A
42 7 53
Google\Client::authorize()
A
48 8 38
Google\Http\MediaFileUpload::process()
A
46 8 37
wpfgsc_googlesheet::get_header_row()
A
49 8 30
wpfgsc_googlesheet::getClient_auth()
A
44 7 45
Google\Client::__construct()
A
41 6 60
wpfgsc_googlesheet::add_bulk_rows_to_sheet()
A
44 7 43
Google\Client::createDefaultHttpClient()
A
50 8 28
Google\Client::createApplicationDefaultCredentials()
A
47 7 40
Google\Client::isAccessTokenExpired()
A
53 8 22
Google\Task\Composer::cleanup()
A
48 7 33
wpfgsc_googlesheet::list_rows()
A
48 7 33
Google\Client::createAuthUrl()
A
48 7 32
wpfgsc_googlesheet::hex_color_to_google_rgb()
S
58 8 12
Wpform_gs_Connector_Utility::admin_notice()
S
52 7 25
WPGS_FormBuilder::get_available_tabs()
S
55 7 19
Google\Http\MediaFileUpload::fetchResumeUri()
S
48 6 31
WPGS_FormBuilder::is_conditionals_passed()
S
52 6 27
Google\Http\REST::doExecute()
S
52 6 24
wpfgsc_googlesheet::auth()
S
51 6 24
Google\Client::fetchAccessTokenWithRefreshToken()
S
53 6 23
Google\Task\Runner::run()
S
55 6 21
wpfgsc_googlesheet::sort_sheet_by_column()
S
48 5 36
Google\Http\Batch::execute()
S
44 4 51
wpfgsc_googlesheet::updateToken()
S
55 6 18
Google\AuthHandler\AuthHandlerFactory::build()
S
55 6 18
WPGS_FormBuilder::get_spreadsheet_tab_id()
S
57 6 17
WPforms_Googlesheet_Services::display_upgrade_notice()
S
49 5 31
wpfgsc_googlesheet::check_if_sheet_exist()
S
51 5 28
wpfgsc_googlesheet::get_spreadsheets()
S
53 5 23
Google\AccessToken\Verify::getFederatedSignOnCerts()
S
54 5 23
Google\Model::toSimpleObject()
S
55 5 20
Google\Client::setAccessToken()
S
57 5 18
Google\Http\Batch::parseHttpResponse()
S
55 5 18
WPGS_FormBuilder::get_fields_block()
S
46 3 47
Google\Model::getSimpleValue()
S
58 5 16
Google\Http\Batch::parseRawHeaders()
S
57 5 16
WPforms_Gsheet_Connector_Init::wpform_gs_connector_activate()
S
58 5 16
wpfgsc_googlesheet::get_sheet_name()
S
59 5 15
wpfgsc_googlesheet::gsheet_create_google_sheet()
S
50 4 29
WPforms_Gsheet_Connector_Init::run_for_site()
S
61 5 14
Google\Service::__construct()
S
60 5 13
Google\Service\Resource::convertToArrayAndStripNulls()
S
62 5 11
Google\Task\Composer::verifyServicesToKeep()
S
53 4 25
WPforms_Googlesheet_Services::add_settings_page()
S
46 2 55
Google\Client::fetchAccessTokenWithAssertion()
S
53 4 23
Google\AccessToken\Verify::retrieveCertsFromLocation()
S
54 4 22
wpfgsc_googlesheet::gsheet_print_google_account_email_manual()
S
58 4 17
Google\Http\MediaFileUpload::makePutRequest()
S
57 4 17
wpfgsc_googlesheet::freeze_row()
S
50 3 31
Google\Http\REST::isAltMedia()
S
64 5 9
WPforms_Gsheet_Connector_Init::add_js_files()
S
65 5 8
Google\Client::fetchAccessTokenWithAuthCode()
S
58 4 15
Google\Client::addScope()
S
64 5 9
WPforms_Gsheet_Connector_Init::wpform_gs_connector_uninstall()
S
59 4 14
WPforms_Gsheet_Connector_Init::upgrade_database_20()
S
60 4 13
Google\Task\Runner::allowedRetries()
S
62 4 12
WPGS_FormBuilder::get_html_class()
S
61 4 12
WPforms_Googlesheet_Services::display_wpforms_data()
S
51 3 27
Google\Model::isAssociativeArray()
S
62 4 12
Google\AccessToken\Verify::getOpenSslConstant()
S
63 4 12
WPGS_FormBuilder::get_spreadsheet_id()
S
62 4 12
Google\AccessToken\Verify::__construct()
S
63 4 11
WPGS_FormBuilder::get_available_spreadsheets()
S
62 4 11
Google\AccessToken\Revoke::revokeToken()
S
54 3 22
wpfgsc_googlesheet::update_google_spreadsheets_option()
S
56 3 21
Google\Client::verifyIdToken()
S
56 3 20
Google\Utils\UriTemplate::combineList()
S
57 3 19
WPforms_Gsheet_Connector_Init::run_on_upgrade()
S
56 3 19
Google\Client::execute()
S
50 2 34
wpfgsc_googlesheet::get_worktabs()
S
56 3 19
WPforms_Gsheet_Connector_Init::verify_wpform_gs_integation()
S
57 3 17
WPGS_FormBuilder::get_spreadsheet_options()
S
58 3 16
Wpform_gs_Connector_Utility::logger()
S
65 4 9
Google\Http\REST::determineExpectedClass()
S
66 4 9
WPforms_Gsheet_Connector_Init::add_css_files()
S
68 4 6
wpfgsc_googlesheet::preauth()
S
58 3 15
WPforms_Googlesheet_Services::save_old_settings_to_new_settings()
S
58 3 15
Google\Http\Batch::__construct()
S
68 4 6
Google\AccessToken\Verify::setPhpsecConstants()
S
65 4 10
wpfgsc_googlesheet::gsheet_get_google_account()
S
59 3 15
Google\AccessToken\Verify::getJwtService()
S
64 4 10
Google\Http\MediaFileUpload::getUploadType()
S
67 4 9
WPforms_Gsheet_Connector_Init::wp_clear_logs()
S
59 3 14
WPforms_Gsheet_Connector_Init::verify_wpform_gs_integation_new()
S
60 3 14
Google\Http\REST::decodeHttpResponse()
S
60 3 13
Google\Utils\UriTemplate::resolveNextSection()
S
62 3 12
WPforms_Gsheet_Connector_Init::run_on_activation()
S
61 3 12
WPforms_Gsheet_Connector_Init::validate_parent_plugin_exists()
S
62 3 11
wpfgsc_googlesheet::revokeToken_auto()
S
61 3 11
Google\Utils\UriTemplate::replaceVars()
S
55 2 24
Google\Http\MediaFileUpload::nextChunk()
S
55 2 19
Google\Model::__construct()
S
68 3 7
Google\Model::keyType()
S
69 3 6
Google\Model::assertIsArray()
S
69 3 7
Wpform_gs_Connector_Utility::get_current_user_role()
S
68 3 7
Google\AccessToken\Verify::getRsaClass()
S
67 3 9
Google\AccessToken\Verify::getBigIntClass()
S
67 3 9
WPGS_FormBuilder::templates()
S
66 3 9
Google\Service\Resource::__construct()
S
63 3 10
Google\Task\Runner::attempt()
S
65 3 10
Google\Utils\UriTemplate::getDataType()
S
65 3 10
WPforms_Gsheet_Connector_Init::redirect_after_upgrade()
S
64 3 10
wpfgsc_googlesheet::get_spreadsheet_name()
S
64 3 10
Google\Collection::rewind()
S
68 3 8
Google\Collection::key()
S
68 3 8
WPforms_Gsheet_Connector_Init::run_on_uninstall()
S
72 3 5
Google\Collection::coerceType()
S
68 3 7
WPforms_Googlesheet_Services::deactivate_wpformgsc_integation()
S
60 2 14
WPforms_Gsheet_Connector_Init::display_error_log()
S
59 2 14
Google\AccessToken\Verify::getPublicKey()
S
59 2 14
Google\Http\REST::execute()
S
61 2 12
wpfgsc_googlesheet::gsheet_print_google_account_email()
S
62 2 12
WPGS_FormBuilder::enqueue_assets()
S
55 1 24
WPGS_FormBuilder::update_entry_meta_googlesheet()
S
57 1 18
Google\AuthHandler\Guzzle6AuthHandler::attachToken()
S
58 1 17
WPGS_FormBuilder::get_enable_control_html()
S
58 1 17
wpfgsc_googlesheet::get_user_data()
S
58 1 17
WPforms_Gsheet_Connector_Init::__construct()
S
56 1 16
WPGS_FormBuilder::get_google_sheet_settings()
S
58 1 16
WPGS_FormBuilder::get_google_sheet_settings_dep()
S
58 1 16
wpfgsc_googlesheet::gsheet_get_google_account_email()
S
67 2 9
Google\Http\MediaFileUpload::transformToUploadUrl()
S
64 2 9
Google\Client::getCache()
S
72 2 6
Google\Model::offsetGet()
S
74 2 5
Google\AuthHandler\Guzzle6AuthHandler::attachCredentials()
S
65 2 10
Google\Client::getHttpClient()
S
71 2 6
Google\Client::getConfig()
S
78 2 3
Google\Collection::offsetUnset()
S
70 2 6
Google\Http\REST::decodeBody()
S
71 2 6
Google\Task\Runner::getDelay()
S
70 2 5
Google\Service\Exception::__construct()
S
66 2 8
Google\Collection::count()
S
71 2 6
WPGS_FormBuilder::get_fields_html()
S
66 2 8
Google\Collection::offsetGet()
S
68 2 7
Google\Collection::valid()
S
75 2 4
Google\Http\REST::getResponseErrors()
S
68 2 7
wpfgsc_googlesheet::getInstance()
S
71 2 6
Google\Client::getRefreshToken()
S
71 2 6
Google\Collection::offsetExists()
S
70 2 6
Google\Client::setRequestVisibleActions()
S
70 2 6
WPforms_Gsheet_Connector_Init::plugin_row_meta()
S
62 2 10
Google\Client::prepareScopes()
S
71 2 6
Google\Client::isAppEngine()
S
74 2 4
Google\Client::getOAuth2Service()
S
71 2 6
Google\Client::getLogger()
S
71 2 6
Google\Utils\UriTemplate::getValue()
S
69 2 7
Google\Model::offsetSet()
S
67 2 8
Google\Collection::offsetSet()
S
70 2 6
WPGS_FormBuilder::set_reload_parameters_in_ajax_response()
S
69 2 7
Google\Model::nullPlaceholderCheck()
S
72 2 6
Google\Model::dataType()
S
70 2 6
Google\Model::offsetExists()
S
78 2 3
Google\AuthHandler\Guzzle6AuthHandler::attachCredentialsCache()
S
59 1 15
Google\Collection::current()
S
71 2 6
Google\Model::getMappedName()
S
71 2 6
Wpform_gs_Connector_Utility::instance()
S
69 2 7
Google\AuthHandler\Guzzle5AuthHandler::attachCredentials()
S
65 2 10
WPGS_FormBuilder::get_wpgs_googlesheet()
S
67 2 9
Google\Client::revokeToken()
S
75 2 4
Google\Client::createDefaultLogger()
S
64 2 10
Google\Http\Batch::add()
S
71 2 6
Google\Http\MediaFileUpload::getResumeUri()
S
71 2 6
Google\AuthHandler\Guzzle5AuthHandler::attachToken()
S
61 1 14
Google\Http\MediaFileUpload::resume()
S
61 1 13
Google\Client::createOAuth2Service()
S
60 1 13
Google\AuthHandler\Guzzle5AuthHandler::attachCredentialsCache()
S
62 1 12
Google\Client::setOpenidRealm()
S
80 1 3
Google\Client::getScopes()
S
82 1 3
wpforms_Googlesheet_integration()
S
70 1 6
Google\Client::setRedirectUri()
S
80 1 3
Google\Service\Exception::getErrors()
S
82 1 3
Google\Client::refreshTokenWithAssertion()
S
81 1 3
Google\Client::setAccessType()
S
80 1 3
Google\Client::setCacheConfig()
S
80 1 3
WPforms_Googlesheet_Services::__construct()
S
66 1 8
Google\Task\Runner::getJitter()
S
78 1 3
wpgs_init_components()
S
77 1 4
Google\Client::getClientSecret()
S
80 1 3
Google\Client::setTokenCallback()
S
80 1 3
Google\Service::getClient()
S
82 1 3
Google\Client::isUsingApplicationDefaultCredentials()
S
80 1 3
Google\Client::getLibraryVersion()
S
81 1 3
Google\AuthHandler\Guzzle5AuthHandler::createAuthHttp()
S
65 1 10
Google\Model::camelCase()
S
69 1 6
WPforms_Googlesheet_Services::get_forms_connected_to_sheet()
S
72 1 5
WPGS_FormBuilder::builder_strings()
S
63 1 10
WPGS_FormBuilder::panel_sidebar()
S
75 1 4
Google\Client::setConfig()
S
80 1 3
wpfgsc_googlesheet::setInstance()
S
80 1 3
Google\Model::__isset()
S
79 1 3
Wpform_gs_Connector_Utility::__construct()
S
91 1 2
Google\Http\MediaFileUpload::setChunkSize()
S
81 1 3
Google\Client::createUserRefreshCredentials()
S
66 1 8
Google\Client::setDefer()
S
81 1 3
WPforms_Gsheet_Connector_Init::wpforms_google_sheet_config()
S
80 1 3
Google\AuthHandler\Guzzle6AuthHandler::createAuthHttp()
S
67 1 8
WPforms_Gsheet_Connector_Init::wpform_gs_connector_deactivate()
S
91 1 2
Google\AuthHandler\Guzzle5AuthHandler::attachKey()
S
69 1 6
wpfgsc_googlesheet::getWorkTabId()
S
82 1 3
wpfgsc_googlesheet::setSpreadsheetId()
S
81 1 3
WPforms_Gsheet_Connector_Init::wp_clear_debug_logs()
S
70 1 6
Google\Client::setSubject()
S
80 1 3
WPforms_Gsheet_Connector_Init::wpform_gs_connector_summary_dashboard()
S
80 1 3
WPforms_Gsheet_Connector_Init::wpform_gs_connector_plugin_action_links()
S
67 1 7
WPforms_Googlesheet_Services::close_upgrade_notification_interval()
S
73 1 5
WPGS_FormBuilder::init()
S
82 1 3
Google\Client::createDefaultCache()
S
81 1 3
Google\Client::authenticate()
S
80 1 3
WPforms_Gsheet_Connector_Init::load_css_and_js_files()
S
75 1 4
Google\Task\Runner::canAttempt()
S
80 1 3
Google\Client::setScopes()
S
76 1 4
Google\Client::setUseBatch()
S
81 1 3
Google\Http\MediaFileUpload::setFileSize()
S
81 1 3
wpfgsc_googlesheet::__construct()
S
91 1 2
WPGS_FormBuilder::hooks()
S
63 1 9
Google\AuthHandler\Guzzle6AuthHandler::__construct()
S
77 1 4
Google\Client::setApprovalPrompt()
S
80 1 3
Google\Model::gapiInit()
S
83 1 3
Google\Http\MediaFileUpload::__construct()
S
64 1 10
Google\Client::setHostedDomain()
S
80 1 3
Google\Client::setLogger()
S
81 1 3
Google\Client::getAccessToken()
S
82 1 3
Google\Client::setDeveloperKey()
S
80 1 3
Google\Model::__unset()
S
80 1 3
WPforms_Gsheet_Connector_Init::delete_for_site()
S
69 1 7
Google\Client::setAuth()
S
76 1 5
WPforms_Gsheet_Connector_Init::register_wpform_menu_pages()
S
73 1 4
Google\Client::getAuth()
S
76 1 5
Google\Client::setState()
S
80 1 3
WPforms_Googlesheet_Services::set_upgrade_notification_interval()
S
70 1 6
Google\Task\Runner::setRetryMap()
S
81 1 3
Google\Client::shouldDefer()
S
82 1 3
Google\Model::offsetUnset()
S
80 1 3
Google\Collection::next()
S
80 1 3
Google\Client::getClientId()
S
80 1 3
Google\Client::getRedirectUri()
S
80 1 3
Google\AccessToken\Revoke::__construct()
S
81 1 3
wpfgsc_googlesheet::revokeToken_manual()
S
64 1 10
Google\AuthHandler\Guzzle6AuthHandler::attachKey()
S
64 1 9
Google\Http\MediaFileUpload::getProgress()
S
82 1 3
Google\Client::refreshToken()
S
80 1 3
Google\Client::getAuthHandler()
S
72 1 6
Google\Task\Runner::backOff()
S
75 1 4
WPforms_Gsheet_Connector_Init::wpforms_missing_notice()
S
69 1 7
Google\Client::setAuthConfigFile()
S
81 1 3
Google\Client::setIncludeGrantedScopes()
S
80 1 3
wpfgsc_googlesheet::getSpreadsheetId()
S
82 1 3
Google\AccessToken\Verify::getCache()
S
82 1 3
Google\Client::setClientSecret()
S
80 1 3
Google\Client::setCache()
S
81 1 3
Google\Task\Composer::getServicesToRemove()
S
70 1 7
Google\Utils\UriTemplate::parse()
S
79 1 3
Google\Client::setApiFormatV2()
S
79 1 3
wpfgsc_googlesheet::setWorkTabId()
S
81 1 3
Google\Client::setHttpClient()
S
81 1 3
Google\Client::setLoginHint()
S
80 1 3
WPforms_Gsheet_Connector_Init::upgrade_helper_20()
S
79 1 3
Google\Service::createBatch()
S
69 1 8
Google\Http\MediaFileUpload::getHttpResultCode()
S
82 1 3
Google\AuthHandler\Guzzle5AuthHandler::__construct()
S
77 1 4
Google\Client::setPrompt()
S
80 1 3
Google\Client::setClientId()
S
80 1 3
Google\Client::useApplicationDefaultCredentials()
S
80 1 3
WPforms_Gsheet_Connector_Init::add_wpform_gs_connector_summary_widget()
S
76 1 3
Google\Http\MediaFileUpload::getRequest()
S
82 1 3
Google\Client::setApplicationName()
S
80 1 3