WCML_Attributes D

Total Complexity 192
Dependencies 13
Dependents 2
Total lines 1,030
Lines of code 688
Logical lines of code 351
Comment lines 147
Methods 48
Properties 5

Methods 48

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_product_variation_post_meta_attribute_values_in_current_language()
A
46 9 41
filter_attribute_name()
A
53 9 24
wpml_ajax_custom_tax_sync_options()
A
56 9 17
set_original_attributes_for_products()
S
50 7 28
get_custom_attribute_translation()
S
52 7 25
get_custom_attr_translation()
S
52 7 23
set_variations_to_use_original_attributes()
S
56 6 16
maybe_filter_get_variation()
S
56 6 16
filter_adding_to_cart_product_attributes_names()
S
60 6 12
is_a_taxonomy()
S
60 5 15
add_hooks()
S
44 2 57
set_translation_status_as_needs_update()
S
61 5 12
filter_dropdown_variation_attribute_options_args()
S
62 5 11
set_attribute_readonly_config()
S
56 4 18
get_attr_label_translations()
S
59 4 15
is_attributes_fully_translated()
S
60 4 14
init()
S
53 3 28
set_attribute_readonly_config_form_action()
S
68 4 6
delete_translated_attribute_terms()
S
67 3 8
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
wcml_taxonomy_strings_source_language()
S
64 3 10
extract_product_attribute_taxonomy()
S
65 3 9
wcml_taxonomy_slug_set_source_language()
S
68 3 8
not_translatable_html()
S
71 2 5
is_translatable_attribute()
S
70 2 6
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
set_attribute_readonly_config_rest_action()
S
75 1 4
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