Code Analysis: WooCommerce Polylang Integration 1.2.6

Function Rating Maintainability Complexity Lines of code
CodeVerve\WCPLL\Data\Products::translate_product_property()
C
36 27 74
wpidg_woocommerce_add_to_cart_handler_wpidg_variable()
C
34 26 82
CodeVerve\WCPLL\Core\WC_Hooks::product_duplicate()
B
35 15 90
CodeVerve\WCPLL\Core\WC_Hooks::handle_string_register()
B
41 17 50
CodeVerve\WCPLL\Data\Products::copy_variation()
A
42 14 51
CodeVerve\WCPLL\Core\Base::get_woocommerce_pages_report()
A
36 11 84
wpidg_woocommerce_get_item_data()
A
46 14 36
CodeVerve\WCPLL\Core\WC_Hooks::handle_sanitize_string_translation()
A
49 13 29
CodeVerve\WCPLL\Core\WC_Hooks::product_object_updated_props()
A
42 11 54
CodeVerve\WCPLL\Core\WP_Hooks::rewrite_rules_array_after()
A
47 12 33
CodeVerve\WCPLL\Core\PLL_Hooks::set_language_from_query_on_front_page()
A
48 12 30
CodeVerve\WCPLL\Core\WP_Hooks::rewrite_rules_array_before()
A
44 11 43
CodeVerve\WCPLL\Core\WC_Hooks::product_query_tax_query()
A
55 10 18
CodeVerve\WCPLL\Core\WC_Hooks::taxonomies_copy_term_metas()
A
51 9 26
wpidg_parse_request()
A
51 9 24
CodeVerve\WCPLL\Core\PLL_Hooks::translate_post_meta()
A
51 9 23
CodeVerve\WCPLL\Core\Base::translate_cart_product_attributes()
A
52 8 22
CodeVerve\WCPLL\Core\WC_Hooks::sync_product_order()
A
53 8 22
CodeVerve\WCPLL\Data\Products::should_copy_texts()
A
54 8 21
CodeVerve\WCPLL\Core\WC_Hooks::save_variation()
A
55 8 19
CodeVerve\WCPLL\Core\PLL_Hooks::is_preview()
S
69 9 5
CodeVerve\WCPLL\Core\Base::get_user_id()
S
60 8 13
CodeVerve\WCPLL\Bootstrap::init()
S
52 7 26
CodeVerve\WCPLL\Bootstrap::set_home_urls()
S
59 8 11
CodeVerve\WCPLL\Core\WC_Hooks::pages_handle_endpoints()
S
52 7 24
CodeVerve\WCPLL\Core\WC_Hooks::pages_handle_layered_nav()
S
54 7 21
CodeVerve\WCPLL\Core\PLL_Hooks::translation_url_plain_permalinks()
S
54 7 20
wpidg_woocommerce_cart_item_product()
S
57 7 17
CodeVerve\WCPLL\Core\PLL_Hooks::modify_rewrite_rule()
S
60 7 12
CodeVerve\WCPLL\Core\WC_Hooks::edited_term()
S
47 5 38
CodeVerve\WCPLL\Core\WC_Hooks::delete_post()
S
54 6 21
CodeVerve\WCPLL\Core\Base::get_translated_cart_item()
S
54 6 20
CodeVerve\WCPLL\Core\WC_Hooks::order_item_name()
S
56 6 19
CodeVerve\WCPLL\Core\WC_Hooks::enqueue_cart_scripts()
S
48 5 34
wpidg_woocommerce_shortcode_products_query()
S
56 6 17
CodeVerve\WCPLL\Core\Base::get_translated_cart_contents()
S
56 6 17
CodeVerve\WCPLL\Core\Base::get_anonymous_object_from_filter()
S
62 7 10
CodeVerve\WCPLL\Core\Base::remove_anonymous_object_filter()
S
63 7 9
CodeVerve\WCPLL\Core\WC_Hooks::option_woocommerce_permalinks()
S
57 6 15
CodeVerve\WCPLL\Core\WC_Hooks::translate_pages()
S
49 5 29
CodeVerve\WCPLL\Core\WC_Hooks::json_search_found_products()
S
59 6 14
CodeVerve\WCPLL\Core\Base::get_product_id()
S
62 6 11
CodeVerve\WCPLL\Core\Base::get_order_id()
S
62 6 11
CodeVerve\WCPLL\Core\WC_Hooks::taxonomies_admin_print_footer_scripts()
S
55 5 25
CodeVerve\WCPLL\Core\PLL_Hooks::copy_post_metas()
S
52 5 24
CodeVerve\WCPLL\Core\WC_Hooks::order_language_metabox()
S
46 4 39
CodeVerve\WCPLL\Core\WC_Hooks::translate_strings()
S
52 5 23
CodeVerve\WCPLL\Core\PLL_Hooks::__construct()
S
52 5 21
CodeVerve\WCPLL\Core\PLL_Hooks::home_url_white_list()
S
55 5 19
wpidg_get_variation()
S
56 5 18
wpidg_get_product()
S
58 5 18
CodeVerve\WCPLL\Core\WC_Hooks::taxonomies_create_term()
S
58 5 16
CodeVerve\WCPLL\Core\WC_Hooks::stored_product_cat()
S
58 5 15
CodeVerve\WCPLL\Core\WC_Hooks::thankyou()
S
59 5 15
CodeVerve\WCPLL\Core\WP_Hooks::change_locale()
S
60 5 14
CodeVerve\WCPLL\Core\WC_Hooks::cart_item_data_to_validate()
S
59 5 14
CodeVerve\WCPLL\Core\WC_Hooks::delete_variation()
S
60 5 13
CodeVerve\WCPLL\Core\WC_Hooks::save_product()
S
61 5 12
CodeVerve\WCPLL\Core\WC_Hooks::translate_products()
S
45 3 41
CodeVerve\WCPLL\Core\WC_Hooks::add_meta_boxes()
S
61 5 11
CodeVerve\WCPLL\Core\WC_Hooks::get_translatable_string_filters()
S
43 1 69
CodeVerve\WCPLL\Core\Base::generate_unique_slug()
S
55 4 18
CodeVerve\WCPLL\Core\WC_Hooks::taxonomies_add_category_fields()
S
57 4 17
CodeVerve\WCPLL\Core\WC_Hooks::copy_variations()
S
57 4 16
CodeVerve\WCPLL\Core\WC_Hooks::product_set_stock()
S
58 4 16
CodeVerve\WCPLL\Core\WC_Hooks::handle_attribute_labels_translation_admin()
S
58 4 15
CodeVerve\WCPLL\Bootstrap::after_languages_cache()
S
69 5 6
CodeVerve\WCPLL\Core\WC_Hooks::filter_query_excluded_query_vars()
S
62 5 10
CodeVerve\WCPLL\Core\WC_Hooks::updated_product_stock()
S
60 4 14
CodeVerve\WCPLL\Core\WC_Hooks::set_stock_status()
S
60 4 14
CodeVerve\WCPLL\Data\Products::copy_taxonomies_and_metadata()
S
59 4 14
CodeVerve\WCPLL\Core\PLL_Hooks::language_defined()
S
59 4 14
wpidg_pll_get_archive_url()
S
61 4 13
CodeVerve\WCPLL\Data\Products::get_legacy_meta_keys()
S
45 2 43
CodeVerve\WCPLL\Core\WC_Hooks::delete_product_transients()
S
61 4 13
CodeVerve\WCPLL\Core\PLL_Hooks::set_language_from_query()
S
59 4 13
CodeVerve\WCPLL\Core\WC_Hooks::handle_instructions_translation()
S
61 4 12
CodeVerve\WCPLL\Core\WC_Hooks::parse_query()
S
62 4 11
CodeVerve\WCPLL\Data\Products::sku_exists()
S
47 2 40
CodeVerve\WCPLL\Core\PLL_Hooks::set_language_from_query_on_myaccount_and_checkout_pages()
S
56 3 18
CodeVerve\WCPLL\Core\WC_Hooks::translate_taxonomies()
S
55 3 18
CodeVerve\WCPLL\Core\WC_Hooks::get_checkout_order_received_url()
S
57 3 18
CodeVerve\WCPLL\Core\WC_Hooks::translate_emails()
S
57 3 16
wpidg_woocommerce_cart_item_permalink()
S
66 4 8
CodeVerve\WCPLL\Core\WC_Hooks::orders_column_value()
S
63 4 10
CodeVerve\WCPLL\Core\WC_Hooks::taxonomies_get_terms_args()
S
69 4 6
CodeVerve\WCPLL\Core\WC_Hooks::handle_language_switching()
S
68 4 7
CodeVerve\WCPLL\Core\Base::get_queried_page_id()
S
65 4 9
CodeVerve\WCPLL\Core\WC_Hooks::translate_cart()
S
59 3 14
CodeVerve\WCPLL\Core\WC_Hooks::register_post_type_product()
S
59 3 14
CodeVerve\WCPLL\Core\PLL_Hooks::get_taxonomies()
S
62 3 12
CodeVerve\WCPLL\Core\WC_Hooks::switch_order_locale()
S
63 3 12
CodeVerve\WCPLL\Core\WC_Hooks::switch_user_locale()
S
62 3 12
CodeVerve\WCPLL\Core\WC_Hooks::handle_email_strings_translation()
S
62 3 11
CodeVerve\WCPLL\Core\Base::get_order_email_notification_actions()
S
53 2 26
CodeVerve\WCPLL\Core\WC_Hooks::restore_locale()
S
62 3 11
CodeVerve\WCPLL\Core\WC_Hooks::product_has_unique_sku()
S
63 3 11
CodeVerve\WCPLL\Core\WC_Hooks::translate_add_to_cart_action()
S
63 3 11
CodeVerve\WCPLL\Core\WC_Hooks::__construct()
S
57 2 18
CodeVerve\WCPLL\Core\WC_Hooks::coupon_loaded()
S
58 2 18
CodeVerve\WCPLL\Bootstrap::print_welcome_notice()
S
51 1 31
CodeVerve\WCPLL\Core\Base::get_current_dashboard_language()
S
64 3 10
wpidg_enqueue_scripts()
S
64 3 9
CodeVerve\WCPLL\Core\PLL_Hooks::home_url()
S
64 3 9
CodeVerve\WCPLL\Core\WC_Hooks::taxonomy_args_product_cat()
S
66 3 8
CodeVerve\WCPLL\Core\WC_Hooks::set_email_notification_language()
S
62 3 10
wpidg_init()
S
62 3 10
wpidg_woocommerce_add_to_cart_product_id()
S
64 3 10
CodeVerve\WCPLL\Core\Base::get_woocommerce_page_ids()
S
64 3 10
CodeVerve\WCPLL\Core\WC_Hooks::taxonomy_args_product_tag()
S
66 3 8
wpidg_get_translated_page_id()
S
66 3 10
CodeVerve\WCPLL\Core\WC_Hooks::taxonomies_translate_term_meta()
S
65 3 9
CodeVerve\WCPLL\Bootstrap::is_deactivation()
S
76 3 3
CodeVerve\WCPLL\Data\Products::are_synchronized()
S
64 3 10
CodeVerve\WCPLL\Core\WC_Hooks::cart_language_from_query()
S
65 3 9
CodeVerve\WCPLL\Data\Terms::get_language()
S
69 3 6
CodeVerve\WCPLL\Core\WC_Hooks::filter_coupon_product_categories_dropdown()
S
67 3 7
CodeVerve\WCPLL\Core\WC_Hooks::edit_term()
S
65 3 9
CodeVerve\WCPLL\Core\WC_Hooks::orders_admin_order_actions()
S
64 3 9
CodeVerve\WCPLL\Bootstrap::__construct()
S
58 2 14
CodeVerve\WCPLL\Core\WC_Hooks::shortcode_products_query()
S
61 2 12
CodeVerve\WCPLL\Core\Base::get_user_email_notification_actions()
S
64 2 11
CodeVerve\WCPLL\Core\WC_Hooks::query_for_reserved_stock()
S
59 1 16
CodeVerve\WCPLL\Core\Base::get_shop_page_slugs()
S
65 2 9
CodeVerve\WCPLL\Core\PLL_Hooks::get_post_types()
S
65 2 9
CodeVerve\WCPLL\Core\PLL_Hooks::check_canonical_url()
S
79 2 3
CodeVerve\WCPLL\Core\WP_Hooks::pre_option_rewrite_rules()
S
70 2 6
CodeVerve\WCPLL\Core\Base::get_tmp_value()
S
78 2 3
CodeVerve\WCPLL\Core\WC_Hooks::translate_coupons()
S
70 2 6
CodeVerve\WCPLL\Core\Base::recalculate_shipping()
S
71 2 6
CodeVerve\WCPLL\Core\Base::get_translated_taxonomies()
S
67 2 7
CodeVerve\WCPLL\Core\WP_Hooks::get_user_metadata()
S
71 2 6
CodeVerve\WCPLL\Core\Base::get_translated_term()
S
68 2 8
CodeVerve\WCPLL\Core\WC_Hooks::handle_tax_rate_labels_translation()
S
70 2 6
CodeVerve\WCPLL\Core\WC_Hooks::handle_email_settings_translation()
S
71 2 6
CodeVerve\WCPLL\Core\WC_Hooks::handle_shipping_methods_translation()
S
70 2 6
CodeVerve\WCPLL\Core\WC_Hooks::set_object_terms()
S
67 2 7
CodeVerve\WCPLL\Bootstrap::deactivation()
S
70 2 6
wpidg_get_product_parent_id()
S
71 2 7
CodeVerve\WCPLL\Core\PLL_Hooks::post_type_archive_link()
S
78 2 3
wpidg_woocommerce_get_checkout_url()
S
70 2 7
wpidg_woocommerce_login_redirect()
S
68 2 8
wpidg_woocommerce_add_to_cart_handler()
S
79 2 3
WCPLLINT()
S
68 2 7
CodeVerve\WCPLL\Core\Base::get_translated_product()
S
68 2 8
CodeVerve\WCPLL\Core\WC_Hooks::cart_hash()
S
66 2 8
CodeVerve\WCPLL\Core\WC_Hooks::handle_attribute_labels_translation()
S
70 2 6
CodeVerve\WCPLL\Bootstrap::get_instance()
S
70 2 6
wpidg_get_product_translations()
S
68 2 7
CodeVerve\WCPLL\Utils\StringUtils::contains()
S
68 2 7
CodeVerve\WCPLL\Core\WC_Hooks::orders_list_columns()
S
65 2 8
wpidg_woocommerce_cart_item_product_id()
S
70 2 7
CodeVerve\WCPLL\Core\WC_Hooks::translate_myaccount()
S
68 2 7
CodeVerve\WCPLL\Bootstrap::remove_pllwc_notice()
S
79 2 3
CodeVerve\WCPLL\Core\PLL_Hooks::copy_taxonomies()
S
64 1 11
CodeVerve\WCPLL\Bootstrap::print_missing_dependency_notice()
S
72 1 4
CodeVerve\WCPLL\Core\WC_Hooks::cart_loaded_from_session()
S
82 1 3
CodeVerve\WCPLL\Data\BasePost::get_join_clause()
S
80 1 3
CodeVerve\WCPLL\Data\TranslatedPost::get()
S
79 1 3
CodeVerve\WCPLL\Core\Base::get_user_locale()
S
79 1 3
CodeVerve\WCPLL\Utils\StringUtils::starts_with()
S
78 1 3
CodeVerve\WCPLL\Data\BasePost::get_language()
S
79 1 3
CodeVerve\WCPLL\Bootstrap::print_incompatibility_notice()
S
74 1 4
wpidg_translated_page_id()
S
81 1 3
CodeVerve\WCPLL\Core\WC_Hooks::breadcrumb_home_url()
S
81 1 3
CodeVerve\WCPLL\Bootstrap::languages_list()
S
80 1 3
CodeVerve\WCPLL\Core\Base::pretty_permalinks_enabled()
S
80 1 3
CodeVerve\WCPLL\Core\Base::__construct()
S
73 1 5
CodeVerve\WCPLL\Core\WC_Hooks::reload_cart_contents()
S
82 1 3
CodeVerve\WCPLL\Core\Base::get_locale()
S
80 1 3
CodeVerve\WCPLL\Data\BasePost::get_where_clause()
S
80 1 3
CodeVerve\WCPLL\Core\WP_Hooks::__construct()
S
72 1 5
CodeVerve\WCPLL\Utils\ArrayUtils::first()
S
80 1 3
CodeVerve\WCPLL\Data\TranslatedPost::save_translations()
S
81 1 3
wpidg_woocommerce_ajax_get_endpoint()
S
74 1 4
CodeVerve\WCPLL\Core\WC_Hooks::action_duplicate_product()
S
79 1 3
CodeVerve\WCPLL\Data\Products::update_lookup_table()
S
75 1 4
CodeVerve\WCPLL\Core\WC_Hooks::variable_children_args()
S
78 1 3
CodeVerve\WCPLL\Core\Base::set_tmp_value()
S
80 1 3
CodeVerve\WCPLL\Core\Base::is_pll_frontend()
S
79 1 3
CodeVerve\WCPLL\Core\WC_Hooks::created_customer()
S
75 1 4
CodeVerve\WCPLL\Data\Stores\Products::do_update_lookup_table()
S
80 1 3
CodeVerve\WCPLL\Core\PLL_Hooks::translate_labels()
S
74 1 5
CodeVerve\WCPLL\Core\Base::get_terms()
S
79 1 3
CodeVerve\WCPLL\Core\WC_Hooks::get_translatable_email_settings()
S
79 1 3
CodeVerve\WCPLL\Core\Base::replace_cart_contents_with_translated()
S
76 1 4
CodeVerve\WCPLL\Core\WC_Hooks::orders_add_column()
S
75 1 4
wcpllint_is_legacy_version()
S
80 1 3
CodeVerve\WCPLL\Core\WC_Hooks::translate_breadcrumbs()
S
75 1 4
CodeVerve\WCPLL\Core\Base::is_pll_settings()
S
79 1 3
CodeVerve\WCPLL\Core\Base::add_language_query_arg()
S
79 1 3
CodeVerve\WCPLL\Core\WC_Hooks::ajax_get_endpoint()
S
72 1 5
CodeVerve\WCPLL\Core\WC_Hooks::add_language_hidden_field()
S
79 1 3
CodeVerve\WCPLL\Core\WC_Hooks::view_system_status_report()
S
75 1 4
CodeVerve\WCPLL\Core\WC_Hooks::cart_init()
S
75 1 4
CodeVerve\WCPLL\Core\WC_Hooks::translate_orders()
S
69 1 6
CodeVerve\WCPLL\Core\Base::language_defined()
S
80 1 3
CodeVerve\WCPLL\Core\WC_Hooks::get_form_filters()
S
68 1 9
CodeVerve\WCPLL\Data\BasePost::set_language()
S
80 1 3
CodeVerve\WCPLL\Bootstrap::enqueues()
S
77 1 3
CodeVerve\WCPLL\Data\TranslatedPost::get_translations()
S
80 1 3
CodeVerve\WCPLL\Core\WC_Hooks::init_system_status_report()
S
79 1 3
CodeVerve\WCPLL\Core\Base::set_user_locale()
S
79 1 3
CodeVerve\WCPLL\Core\Base::get_tax_rate_labels()
S
75 1 4
CodeVerve\WCPLL\Core\WC_Hooks::get_product_subcategories_cache_key()
S
79 1 3
CodeVerve\WCPLL\Core\Base::get_permalinks()
S
80 1 3
CodeVerve\WCPLL\Bootstrap::print_conflict_notice()
S
72 1 4
CodeVerve\WCPLL\Core\WC_Hooks::update_product_stock_query()
S
65 1 9