Language_Switcher D

Total Complexity 315
Dependencies 5
Dependents 1
Total lines 2,047
Lines of code 1,119
Logical lines of code 606
Comment lines 206
Methods 66
Properties 33

Methods 66

Method Rating Maintainability Complexity Lines of code
get_current_language()
D
34 32 86
query_language_posts()
C
36 25 75
get_language_switcher()
A
40 15 60
get_post_language()
A
46 13 42
__construct()
A
39 11 59
query_language_taxonomies()
A
46 9 40
init_backend()
A
46 9 35
get_browser_language()
A
49 9 30
get_switcher_title()
A
51 9 25
filter_language_menus()
A
52 9 24
get_language_switcher_menu()
S
45 6 43
get_language_urls()
S
51 7 27
get_labels()
S
56 6 18
get_default_language()
S
55 6 18
get_active_post_types()
S
59 6 14
get_language_taxonomy_column()
S
51 5 27
query_language_comments()
S
47 4 40
get_language_post_type_column()
S
53 5 23
init_language()
S
57 5 16
normalize_url()
S
58 5 16
get_active_taxonomies()
S
59 5 14
get_post_types()
S
60 5 13
get_taxonomies()
S
61 5 12
is_session_started()
S
62 5 11
get_term_language()
S
58 4 15
is_valid_object()
S
65 5 9
get_active_languages()
S
60 4 14
sanitize_language_switcher()
S
59 4 14
add_hreflang_in_head()
S
60 4 12
add_visibility_css_classes()
S
61 4 12
is_valid_taxonomy()
S
61 4 12
is_valid_post_type()
S
61 4 12
get_language_labels()
S
54 3 19
save_language_taxonomy()
S
62 4 10
get_language_switcher_shortcode()
S
68 4 6
register_post_type()
S
71 4 5
register_taxonomy()
S
71 4 5
save_language_post_type()
S
62 4 10
add_language_switcher_taxonomy_field()
S
55 2 22
add_switchers()
S
68 3 7
get_month_link()
S
65 3 9
get_locale_by_code()
S
65 3 9
query_admin_language_post_type()
S
61 2 12
add_post_type_language_switcher_with_url()
S
62 2 11
get_switcher_script()
S
57 1 18
query_admin_language_taxonomy()
S
67 2 7
instance()
S
71 2 6
get_cookie_prefix()
S
68 2 7
get_code_by_locale()
S
69 2 7
is_disabled()
S
72 2 5
get_locales()
S
68 2 7
add_post_type_language_switcher_without_url()
S
62 1 11
set_language_post_type_columns()
S
75 1 4
set_language_taxonomy_columns()
S
75 1 4
enqueue_styles()
S
69 1 6
enqueue_scripts()
S
67 1 7
init_widgets()
S
76 1 4
admin_enqueue_styles()
S
74 1 4
admin_enqueue_scripts()
S
74 1 4
load_localisation()
S
77 1 3
load_plugin_textdomain()
S
68 1 6
get_current_url()
S
74 1 4
__clone()
S
79 1 3
__wakeup()
S
79 1 3
install()
S
82 1 3
_log_version_number()
S
79 1 3