Code Analysis: Upsellar 1.0.2

Function Rating Maintainability Complexity Lines of code
Upsellar\Admin\UpsellarAdminPage::upsellar_display_settings()
B
39 16 63
Upsellar\Interaction\UpsellarInteractionTrackingController::upsellar_track_product_interaction_js()
A
44 13 45
Upsellar\Engine\Blocks\UpsellarBlockBuilder::upsellar_handle_fetch_upsellar_blocks()
A
46 10 38
Upsellar\Interaction\UpsellarWoocommerceInteractionController::upsellar_import_existing_sales()
A
47 7 37
Upsellar\Interaction\UpsellarInteractionTrackingController::upsellar_validate_and_append_product_information()
S
55 5 19
Upsellar\Admin\UpsellarProductsController::upsellar_make_api_request()
S
50 4 28
Upsellar\Engine\Connection\UpsellarProductFetcher::upsellar_get_product_ids()
S
51 4 27
Upsellar\Admin\UpsellarPluginInitializer::__construct()
S
53 4 22
Upsellar\Admin\UpsellarSettingsManager::upsellar_make_api_request()
S
54 4 20
Upsellar\Interaction\UpsellarInteractionTrackingController::upsellar_should_track_user()
S
60 4 13
Upsellar\Admin\UpsellarAdminPage::upsellar_display_dashboard()
S
47 2 38
Upsellar\Admin\UpsellarAssetManager::upsellar_enqueue_scripts()
S
54 3 22
Upsellar\Interaction\UpsellarInteractionTrackingController::upsellar_send_data_to_main_server()
S
54 3 20
Upsellar\Engine\Connection\UpsellarProductFetcher::upsellar_get_cart_product_ids()
S
64 4 10
Upsellar\Engine\Blocks\UpsellarBlockRegistrar::upsellar_initialize_post_wp_block_registration()
S
68 4 7
Upsellar\Interaction\UpsellarWoocommerceInteractionController::upsellar_track_purchase()
S
59 3 14
Upsellar\Engine\Blocks\UpsellarHtmlBuilder::upsellar_build_cart_block_html()
S
58 3 14
Upsellar\Engine\Blocks\UpsellarHtmlBuilder::upsellar_build_related_products_block_html()
S
58 3 14
Upsellar\Engine\Blocks\UpsellarHtmlBuilder::upsellar_build_traditional_cart_block_html()
S
58 3 14
Upsellar\Engine\Blocks\UpsellarHtmlBuilder::upsellar_build_traditional_related_products_block_html()
S
58 3 14
Upsellar\Interaction\UpsellarInteractionTrackingController::upsellar_handle_php_interaction()
S
63 3 12
Upsellar\Admin\UpsellarProductsController::upsellar_handle_product_update()
S
63 3 11
Upsellar\Admin\UpsellarAdminPage::upsellar_add_admin_menu()
S
51 1 34
Upsellar\Admin\UpsellarSettingsManager::upsellar_validate_display()
S
78 3 3
Upsellar\Admin\UpsellarSettingsManager::upsellar_validate_columns()
S
77 3 3
Upsellar\Admin\UpsellarSettingsManager::upsellar_validate_rows()
S
77 3 3
Upsellar\Admin\UpsellarSettingsManager::upsellar_register_setting_with_default()
S
61 2 13
Upsellar\Admin\UpsellarAssetManager::upsellar_enqueue_styles()
S
62 2 12
Upsellar\Interaction\UpsellarWoocommerceInteractionController::upsellar_track_product_view()
S
63 2 11
Upsellar\Admin\UpsellarSettingsManager::upsellar_register_settings()
S
58 1 16
upsellar_show_getting_started_notice()
S
69 2 8
Upsellar\Engine\UpsellarEngineController::upsellar_initialize_render_blocks()
S
67 2 8
Upsellar\Admin\UpsellarSettingsManager::upsellar_test_api_key()
S
74 2 4
Upsellar\Admin\UpsellarSettingsManager::upsellar_test_api_key_on_update()
S
70 2 6
Upsellar\Admin\UpsellarConfigLoader::__construct()
S
64 2 9
upsellar_related_products()
S
67 2 7
Upsellar\Engine\Blocks\UpsellarBlockRegistrar::upsellar_register_blocks()
S
70 2 6
Upsellar\Utilities\UpsellarCookieUtilities::upsellar_generate_guest_token()
S
68 2 6
Upsellar\Utilities\UpsellarCookieUtilities::upsellar_get_guest_token()
S
70 2 6
Upsellar\Utilities\UpsellarCookieUtilities::upsellar_get_user_identifier()
S
75 2 4
Upsellar\Engine\Blocks\UpsellarHtmlBuilder::upsellar_add_upsellar_class_to_products()
S
71 2 6
Upsellar\Utilities\UpsellarCookieUtilities::upsellar_get_user_type()
S
75 2 4
Upsellar\Admin\UpsellarAdminPage::upsellar_check_permissions()
S
72 2 5
Upsellar\Engine\Connection\UpsellarProductFetcher::upsellar_get_current_product_id()
S
76 2 4
Upsellar\Engine\Blocks\UpsellarBlockRegistrar::upsellar_initialize_block_registration()
S
73 2 5
upsellar_cross_sell_display()
S
67 2 7
Upsellar\Admin\UpsellarConfigLoader::upsellar_get_config_value()
S
78 2 3
Upsellar\Engine\Blocks\UpsellarBlockRegistrar::upsellar_register_cart_upsellar_block()
S
67 2 8
Upsellar\Engine\Blocks\UpsellarBlockRegistrar::upsellar_register_upsellar_related_products_block()
S
67 2 8
Upsellar\Admin\UpsellarProductsController::upsellar_handle_product_trash()
S
70 2 6
Upsellar\Admin\UpsellarProductsController::upsellar_handle_product_delete()
S
70 2 6
Upsellar\Admin\UpsellarHttpsEnforcer::upsellar_enforce_https()
S
70 2 6
Upsellar\Admin\UpsellarHttpsEnforcer::upsellar_check_on_activation()
S
71 2 6
Upsellar\Engine\Connection\UpsellarProductFetcher::upsellar_explode_product_array()
S
67 2 8
Upsellar\Admin\UpsellarProductsController::upsellar_prepare_product_data()
S
62 1 12
Upsellar\Admin\UpsellarAssetManager::upsellar_admin_enqueue_scripts()
S
64 1 11
Upsellar\Admin\UpsellarPluginInitializer::upsellar_initialize_products_controller()
S
82 1 3
Upsellar\Admin\UpsellarAdminPage::upsellar_display_appearance()
S
76 1 4
Upsellar\Engine\Blocks\UpsellarBlockBuilder::upsellar_render_cart_block()
S
72 1 5
Upsellar\Admin\UpsellarProductsController::upsellar_send_to_server()
S
72 1 5
Upsellar\Admin\UpsellarSettingsManager::upsellar_get_api_key()
S
80 1 3
Upsellar\Admin\UpsellarPluginInitializer::upsellar_add_admin_menu()
S
81 1 3
Upsellar\Admin\UpsellarProductsController::__construct()
S
68 1 7
Upsellar\Engine\Blocks\UpsellarCartBlockRenderer::upsellar_render_block()
S
67 1 7
Upsellar\Engine\Traditional\UpsellarTraditionalCartBlockRenderer::upsellar_initialize_block()
S
63 1 10
Upsellar\Engine\Blocks\UpsellarHtmlBuilder::upsellar_convert_ids_to_products()
S
71 1 7
Upsellar\Engine\Blocks\UpsellarCartBlockRenderer::upsellar_initialize_block()
S
63 1 10
Upsellar\Engine\Blocks\UpsellarRelatedProductsBlockRenderer::upsellar_initialize_block()
S
63 1 10
Upsellar\Admin\UpsellarPluginInitializer::upsellar_initialize_interaction_tracking()
S
75 1 4
Upsellar\Engine\Blocks\UpsellarBlockBuilder::__construct()
S
75 1 4
Upsellar\Engine\Connection\UpsellarProductFetcher::__construct()
S
80 1 3
Upsellar\Engine\Blocks\UpsellarBlockBuilder::upsellar_render_related_products_block()
S
72 1 5
Upsellar\Admin\UpsellarAdminPage::__construct()
S
75 1 4
Upsellar\Engine\UpsellarEngineController::__construct()
S
74 1 5
Upsellar\Admin\UpsellarPluginInitializer::upsellar_register_settings()
S
81 1 3
Upsellar\Interaction\UpsellarWoocommerceInteractionController::__construct()
S
69 1 6
Upsellar\Engine\UpsellarEngineController::upsellar_initialize_block_builder()
S
82 1 3
Upsellar\Engine\Traditional\UpsellarTraditionalCartBlockRenderer::upsellar_render_block()
S
67 1 7
Upsellar\Interaction\UpsellarWoocommerceInteractionController::upsellar_track_add_to_cart()
S
67 1 8
Upsellar\Engine\Blocks\UpsellarHtmlBuilder::upsellar_build_temporary_block()
S
70 1 6
Upsellar\Engine\Blocks\UpsellarBlockBuilder::upsellar_render_traditional_cart_block()
S
72 1 5
Upsellar\Admin\UpsellarPluginInitializer::upsellar_initialize_engine()
S
82 1 3
Upsellar\Admin\UpsellarHttpsEnforcer::__construct()
S
81 1 3
Upsellar\Engine\UpsellarEngineController::upsellar_woocommerce_missing_notice()
S
71 1 7
Upsellar\Admin\UpsellarAssetManager::upsellar_admin_enqueue_styles()
S
65 1 10
Upsellar\Engine\Blocks\UpsellarRelatedProductsBlockRenderer::upsellar_render_block()
S
67 1 7
Upsellar\Interaction\UpsellarInteractionTrackingController::upsellar_validate_user_interaction()
S
79 1 3
Upsellar\Admin\UpsellarProductsController::upsellar_is_woocommerce_product()
S
79 1 3
Upsellar\Admin\UpsellarHttpsEnforcer::sslWarning()
S
82 1 3
Upsellar\Interaction\UpsellarInteractionTrackingController::upsellar_append_user_information()
S
67 1 8
Upsellar\Admin\UpsellarSettingsManager::upsellar_get_dashboard_data()
S
75 1 4
upsellar_activation_hook()
S
79 1 3
Upsellar\Admin\UpsellarPluginInitializer::upsellar_get_config()
S
79 1 3
Upsellar\Interaction\UpsellarInteractionTrackingController::upsellar_is_valid_interaction_type()
S
73 1 4
Upsellar\Interaction\UpsellarInteractionTrackingController::__construct()
S
72 1 5
Upsellar\Interaction\UpsellarInteractionTrackingController::upsellar_handle_data_import()
S
75 1 4
Upsellar\Engine\Traditional\UpsellarTraditionalRelatedProductsBlockRenderer::upsellar_render_block()
S
67 1 7
Upsellar\Engine\Traditional\UpsellarTraditionalRelatedProductsBlockRenderer::upsellar_initialize_block()
S
63 1 10