Code Analysis: Stock Sync with Google Sheet for WooCommerce 3.9.8

Function Rating Maintainability Complexity Lines of code
ssgsw_wp_insert_post()
D
2
129 386
Product::bulk_update()
D
21
57 175
Hooks::ssgsw_get_column_callback()
C
36 24 74
WPPOOL_Plugin::get_inline_scripts()
B
32 1 398
Product::get_raw_data()
B
31 19 109
Appsero\Insights::get_tracking_data()
A
39 13 63
Appsero\License::menu_output()
A
42 13 57
Product::batch_update_delete_and_append()
A
46 14 36
Product::variation_product_stock_update_for_zero()
A
47 14 34
Appsero\Insights::deactivate_scripts()
A
34 6 145
WPPOOL_Plugin::get_inline_styles()
A
37 1 196
Column::get_columns()
A
46 11 39
Product::get_formatted_data()
A
45 11 37
Appsero\Insights::deactivation_modal_styles()
A
48 1 186
Product::variation_product_stock_update_for_numaric()
A
50 11 28
Product::update_product_prices()
A
52 10 26
API::permission_callback()
A
51 10 26
API::update_api_callback()
A
51 10 24
Product::variable_product_formating_sync_method()
A
52 10 23
Hooks::show_appscript_update_notice()
A
43 8 51
Product::batch_update_delete_and_append2()
A
48 9 31
Sheet::generate_access_token()
A
41 7 59
Appsero\License::license_form_submit()
A
51 9 26
Appsero\Insights::handle_optin_optout()
A
54 9 21
Appsero\Insights::get_all_plugins()
A
48 8 34
Hooks::add_some_css()
A
51 1 135
Appsero\License::licenses_style()
A
51 1 132
ssgsw_reserved_keyword()
A
34 2 115
App::activate_woocommerce()
A
43 6 52
Popup::ssgsw_show_popup()
A
52 8 22
check_ssgsw_file_type()
A
56 8 18
Sheet::freeze_headers()
S
45 6 44
App::is_plugin_ready()
S
48 6 44
ssgsw_meta_field_value_save()
S
54 7 22
Hooks::woocommerce_order_status_changed()
S
53 7 22
Hooks::ssgsw_already_updated_keyd()
S
54 7 20
Ajax::update_options_callback()
S
54 7 20
Hooks::sssgw_appscript_improved()
S
54 7 19
Hooks::sssgw_notice_skip()
S
55 7 19
Appsero\Insights::get_server_info()
S
55 7 17
Sheet::get_formula_value()
S
49 6 32
Appsero\License::send_request()
S
51 6 28
Sheet::update_single_row_values()
S
50 6 28
Hooks::admin_enqueue_scripts()
S
49 6 27
Sheet::append_new_row()
S
46 5 41
Sheet::initialize()
S
51 6 26
Sheet::update_values()
S
46 5 39
ssgsw_get_product_custom_fields()
S
46 5 39
Ajax::init_sheet_callback()
S
52 6 23
Appsero\Insights::admin_notice()
S
47 5 36
Sheet::sort_google_sheet_data_wp_remote()
S
43 4 51
Appsero\Insights::uninstall_reason_submission()
S
54 6 20
Ajax::sync_sheet_callback()
S
54 6 20
Product::process_google_sheets_image()
S
56 6 19
WPPOOL_Plugin::sent_to_fluent_server()
S
55 6 18
Product::find_out_range_row2()
S
56 6 18
Hooks::init_appsero_client()
S
55 6 17
WPPOOL_Plugin::set_campaign()
S
56 6 17
Popup::handle_popup()
S
56 6 16
ssgsw_insert_update_product_information()
S
50 5 31
Hooks::after_save_product()
S
58 6 14
Sheet::get_values()
S
51 5 28
Product::sheet_row_count()
S
61 6 13
Appsero\Insights::is_local_server()
S
58 6 13
Appsero\License::show_active_license_info()
S
51 5 27
Product::set_product_image_from_url()
S
50 5 27
Sheet::delete_single_row()
S
47 4 37
Appsero\License::check_license_status()
S
55 5 19
Ajax::reset_sheet_callback()
S
56 5 17
ssgsw_get_ult_version()
S
58 5 17
Appsero\Insights::__construct()
S
65 6 8
Appsero\License::is_valid_by()
S
64 6 9
Product::find_out_range2()
S
59 5 15
Appsero\License::is_valid()
S
61 5 12
Product::find_out_range()
S
62 5 12
Product::find_out_range_row()
S
61 5 12
Appsero\Insights::send_tracking_data()
S
61 5 12
Sheet::reset_sheet()
S
52 4 26
Sheet::create_sheet_tab()
S
47 3 39
Appsero\License::active_client_license()
S
53 4 23
WPPOOL_Plugin::load_popup_template()
S
46 1 66
Install::admin_notices()
S
53 4 21
Column::get_all_columns()
S
44 2 51
API::action_api_callback()
S
55 4 19
Appsero\License::deactive_client_license()
S
56 4 18
ssgsw_update_atum_price()
S
58 4 17
Hooks::add_admin_menu()
S
51 3 32
Product::sync_all()
S
57 4 17
Hooks::show_ult_update_notice()
S
59 4 16
Appsero\Insights::get_wp_info()
S
57 4 15
Column::get_stock_status()
S
58 4 15
Appsero\License::get_input_license_value()
S
59 4 14
ssgsw_atum_table_column_name()
S
60 4 13
Appsero\License::admin_menu()
S
62 4 13
Column::get_items_by_comma()
S
60 4 13
API::response()
S
61 4 13
Hooks::get_ult_version()
S
61 4 12
App::localized_script()
S
50 3 26
Hooks::save_post_callback()
S
61 4 11
Ajax::reset_options_callback()
S
61 4 11
Ajax::activate_woocommerce_callback()
S
61 4 11
Ajax::hide_notice_callback()
S
61 4 11
Appsero\License::show_license_page_card_header()
S
57 3 23
API::action_sync()
S
55 3 21
Sheet::get_first_columns2()
S
55 3 20
Sheet::get_first_columns()
S
55 3 20
Sheet::get_sheet_tab()
S
55 3 19
Appsero\Insights::get_uninstall_reasons()
S
46 1 47
Appsero\License::show_license_page_notices()
S
60 3 17
ssgsw_insert_atum_table()
S
58 3 16
Popup::show_popup_rating_popup()
S
48 1 46
App::is_ultimate_activated()
S
61 3 15
Install::shop_recovery()
S
58 3 15
Appsero\License::refresh_client_license()
S
64 4 9
Install::init()
S
59 3 14
Sheet::__construct()
S
58 3 14
Appsero\Insights::get_user_counts()
S
62 3 12
Appsero\Insights::activate_plugin()
S
61 3 12
Appsero\License::run_schedule()
S
62 3 12
Appsero\Insights::get_user_ip_address()
S
63 3 11
Appsero\Insights::get_site_name()
S
63 3 11
Hooks::add_plugin_action_links()
S
61 3 11
Hooks::updated_spreadsheet_url_callback()
S
62 3 11
Hooks::trashed_post_callback()
S
62 3 11
Hooks::untashed_post_callback()
S
62 3 11
Install::activate()
S
62 3 11
ssgsw_all_type_field_in_acf()
S
50 1 35
Product::get_attachment_by_original_image_url()
S
57 2 18
Appsero\Client::set_basename_and_slug()
S
56 2 17
API::add_api_routes()
S
58 2 17
ssgsw_is_atum_plugin_active()
S
64 3 10
Product::get_single_product()
S
64 3 9
WPPOOL_Plugin::set_list()
S
66 3 9
App::reset_options()
S
64 3 10
WPPOOL_Plugin::remove_tag()
S
66 3 9
Hooks::render_admin_page()
S
71 3 6
Hooks::ssgsw_sync_sheet_callback()
S
68 3 7
WPPOOL_Plugin::remove_list()
S
66 3 9
Appsero\Insights::init()
S
69 3 7
Sheet::update_row_values()
S
70 3 6
Sheet::update_row_columns()
S
70 3 6
Column::get_product_type()
S
62 3 10
Appsero\Insights::get_extra_data()
S
67 3 9
Product::get_all_products()
S
65 3 9
App::is_woocommerce_activated()
S
61 2 15
Appsero\Client::insights()
S
64 3 10
Appsero\Client::updater()
S
64 3 10
Appsero\Client::license()
S
64 3 10
Column::get_first_term()
S
66 3 8
WPPOOL_Plugin::set_tag()
S
66 3 9
ssgsw_find_atum_key_from_table()
S
66 3 8
App::get_default_options()
S
51 1 29
Appsero\Insights::data_we_collect()
S
60 2 14
Ajax::add_ajax_actions()
S
59 2 14
Appsero\Insights::send_tracking_skipped_request()
S
60 2 13
WPPOOL_Plugin::enqueue_scripts()
S
61 2 12
ssgsw_wp_insert_attachment()
S
61 2 12
ssgsw_load_plugin_textdomain()
S
61 2 11
App::get_product_columns()
S
53 1 25
Hooks::add_actions()
S
51 1 24
Popup::show_influencer_banner()
S
54 1 23
Appsero\Client::send_request()
S
54 1 22
WPPOOL_Plugin::get_image_url()
S
76 2 3
Sheet::get_token()
S
69 2 8
Hooks::add_plugin_meta_links()
S
67 2 7
Appsero\Insights::notice_dismissed()
S
68 2 7
Sheet::get_rows()
S
71 2 6
WPPOOL_Plugin::get_current_plugin()
S
74 2 4
App::is_license_valid()
S
70 2 7
Appsero\Insights::deactivation_cleanup()
S
67 2 8
ssgsw_get_option()
S
68 2 7
ssgsw_is_license_valid()
S
70 2 7
Hooks::is_plugin_activated_ult()
S
72 2 6
ssgsw_check_atum_key_exits()
S
67 2 8
Hooks::is_plugin_installed_ult()
S
71 2 6
Column::get_stock_status_update()
S
66 2 8
Sheet::setID()
S
72 2 6
Appsero\Insights::schedule_event()
S
69 2 6
WPPOOL_Plugin::get_tag_id()
S
75 2 4
Appsero\Insights::theme_deactivated()
S
73 2 5
API::init()
S
72 2 6
WPPOOL_Plugin::__construct()
S
75 2 4
WPPOOL_Plugin::get_instance()
S
72 2 6
Hooks::redirect_to_admin_page()
S
67 2 8
Hooks::init()
S
70 2 7
Column::get_column_names()
S
67 2 7
Column::get_column_keys()
S
66 2 8
Sheet::getColumnLetter()
S
64 2 10
Column::get_queryable_columns()
S
68 2 7
Sheet::setTab()
S
72 2 6
Hooks::after_update_product_variation()
S
64 2 9
Appsero\License::schedule_cron_event()
S
70 2 6
Sheet::sync_sheet_headers()
S
64 2 10
Product::get_children_id()
S
61 1 15
App::is_ultimate_installed()
S
71 2 6
WPPOOL_Plugin::init()
S
64 2 9
Appsero\Insights::init_common()
S
64 2 9
Hooks::check_ssgsw_synced()
S
65 2 9
Appsero\Client::is_local_server()
S
73 2 4
Hooks::ssgsw_save_option_freeze_headers_callback()
S
66 2 8
Hooks::after_product_quick_edit()
S
64 2 9
WPPOOL_Plugin::get_current_list_id()
S
75 2 4
Appsero\Insights::plugin_action_links()
S
69 2 6
WPPOOL_Plugin::get_list_id()
S
68 2 7
Install::initialize_authorization_token()
S
68 2 7
App::is_woocommerce_installed()
S
71 2 6
Install::create_a_table()
S
60 1 15
App::get_options()
S
67 2 8
Product::is_variable_product()
S
75 2 4
Install::deactivate()
S
72 2 6
ssgsw_update_option()
S
65 2 9
Ajax::init()
S
72 2 6
Hooks::ssgs_woocommerce_product_set_stock()
S
63 2 10
Sheet::get_columns()
S
71 2 6
Appsero\License::add_settings_page()
S
59 1 14
ssgsw_get_product_information_by_id()
S
63 1 12
Appsero\License::create_submenu_page()
S
63 1 12
Popup::show_upgrade_banner()
S
62 1 12
Product::colleciton_of_meta_columns()
S
64 1 12
Appsero\License::create_menu_page()
S
63 1 12
Appsero\License::create_options_page()
S
64 1 11
Appsero\License::clear_scheduler()
S
81 1 3
Column::get_queryable_metas()
S
68 1 7
Appsero\License::set_option_key()
S
77 1 4
Column::get_queryable_taxonomies()
S
68 1 7
Appsero\Insights::tracking_allowed()
S
74 1 4
Appsero\License::check()
S
74 1 4
WPPOOL_Plugin::appsero()
S
82 1 3
Column::get_queryable_fields()
S
68 1 7
App::is_setup_complete()
S
76 1 4
Appsero\Insights::add_plugin_data()
S
77 1 4
Appsero\Insights::clear_schedule_event()
S
80 1 3
Appsero\Insights::add_extra()
S
77 1 4
Hooks::admin_menu_icon_css()
S
73 1 6
Appsero\Insights::optin()
S
66 1 8
Appsero\Insights::get_post_count()
S
66 1 9
Appsero\Client::__trans()
S
79 1 3
Appsero\Client::__construct()
S
71 1 6
Appsero\Client::endpoint()
S
75 1 4
Appsero\Insights::optout()
S
68 1 7
WPPOOL_Plugin::init_plugin_sdk()
S
68 1 7
Popup::__construct()
S
69 1 6
Column::get_queryable_relations()
S
68 1 7
Column::custom_meta_fields()
S
75 1 4
WPPOOL_Plugin::unsubscribe_plugin()
S
70 1 6
Appsero\License::deactivate()
S
74 1 4
Hooks::add_filters()
S
68 1 6
WPPOOL_Plugin::subscribe()
S
68 1 7
WPPOOL_Plugin::slugify()
S
73 1 5
ssgsw_atum_table_exists()
S
68 1 8
Appsero\License::activate()
S
74 1 4
WPPOOL_Plugin::listen_appsero()
S
64 1 10
Base::__construct()
S
80 1 3
WPPOOL_Plugin::get_plugin_image()
S
79 1 3
Appsero\License::refresh_license_api()
S
67 1 9
wppool_plugin_init()
S
80 1 3
Appsero\Insights::get_last_send()
S
78 1 3
WPPOOL_Plugin::plugin_tracker_optin_callback()
S
67 1 8
Appsero\License::__construct()
S
65 1 8
Appsero\Insights::notice()
S
77 1 4
Appsero\Client::set_textdomain()
S
81 1 3
Column::get_queryable_column_keys()
S
73 1 5
WPPOOL_Plugin::get_plugins()
S
79 1 3
Product::get_attachment_id_by_url()
S
76 1 4
Hooks::ssgsw_get_credentials_callback()
S
75 1 4
API::register_routes()
S
79 1 3
Product::clear_woocommerce_caches()
S
66 1 9
Install::reset_auto_redirection()
S
80 1 3
WPPOOL_Plugin::unsubscribe()
S
74 1 4
Appsero\Client::_etrans()
S
79 1 3
WPPOOL_Plugin::unsubscribe_tag()
S
70 1 6
ssgsw()
S
80 1 3
Appsero\Insights::hide_notice()
S
77 1 4
Appsero\License::get_license()
S
79 1 3
Appsero\Insights::init_plugin()
S
67 1 7
WPPOOL_Plugin::get_tags()
S
78 1 3
Appsero\Insights::init_theme()
S
72 1 5
Product::update_single_product_data_to_sheet()
S
72 1 5
Hooks::render_setup_page()
S
77 1 4
Appsero\Insights::add_weekly_schedule()
S
68 1 7