WCML_Attributes D

Total Complexity 185
Dependencies 11
Dependents 2
Total lines 974
Lines of code 665
Logical lines of code 338
Comment lines 121
Methods 44
Properties 5

Methods 44

Method Rating Maintainability Complexity Lines of code
sync_product_attr()
B
42 18 49
sync_default_product_attr()
A
41 13 57
get_translated_variation_attribute_post_meta()
A
46 10 35
filter_attribute_name()
A
53 9 24
filter_product_variation_post_meta_attribute_values_in_current_language()
A
47 8 39
wpml_ajax_custom_tax_sync_options()
A
56 9 17
set_original_attributes_for_products()
S
50 7 30
get_custom_attribute_translation()
S
52 7 25
get_custom_attr_translation()
S
52 7 23
filter_adding_to_cart_product_attributes_names()
S
57 7 16
set_attribute_readonly_config()
S
54 6 20
set_variations_to_use_original_attributes()
S
56 6 16
maybe_filter_get_variation()
S
56 6 16
is_a_taxonomy()
S
60 5 15
set_translation_status_as_needs_update()
S
61 5 12
add_hooks()
S
44 2 56
init()
S
53 4 26
filter_dropdown_variation_attribute_options_args()
S
62 5 11
get_attr_label_translations()
S
59 4 15
is_attributes_fully_translated()
S
60 4 14
wcml_taxonomy_strings_source_language()
S
62 3 11
delete_translated_attribute_terms()
S
67 3 8
is_translatable_attribute()
S
69 3 6
get_translatable_attributes()
S
64 3 10
filter_product_variation_default_attributes()
S
67 3 8
get_attribute_term_translation_in_current_language()
S
66 3 9
not_translatable_html()
S
71 2 5
set_translatable_attributes()
S
70 2 6
getAttributeNameToSave()
S
68 2 7
get_product_attributes()
S
68 2 7
set_custom_product_attributes_as_translatable_for_tm_job()
S
70 2 6
filter_available_variation_attribute_values_in_current_language()
S
69 2 6
invalidateVariationMetaCache()
S
73 2 5
__construct()
S
67 1 8
get_wcml_terms_instance()
S
82 1 3
get_wcml_products_instance()
S
82 1 3
get_attribute_terms()
S
66 1 9
fix_attribute_slug_in_translations_table()
S
69 1 7
set_attribute_config_in_settings()
S
73 1 5
set_attribute_config_in_wcml_settings()
S
73 1 5
set_attribute_config_in_wpml_settings()
S
70 1 6
remove_wpml_locale_sanitize_title_filter()
S
78 1 3
isAttributeMeta()
S
78 1 3
getCacheKey()
S
80 1 3