TRP_Translation_Render D

Total Complexity 446
Dependencies 4
Dependents 1
Total lines 2,046
Lines of code 1,327
Logical lines of code 714
Comment lines 486
Methods 54
Properties 6

Methods 54

Method Rating Maintainability Complexity Lines of code
translate_page()
D
0
154 407
process_strings()
D
32 33 93
handle_custom_links_and_forms()
C
36 32 62
get_node_description()
A
35 8 113
maybe_is_local_url()
A
49 12 28
render_default_language()
A
49 12 28
contains_substrings()
A
52 12 24
translate_image_srcset_attributes()
A
50 11 29
wrap_with_post_id()
A
56 10 16
handle_rest_api_translations()
A
57 9 17
force_language_in_preview()
A
54 8 22
get_trp_data()
A
45 7 36
start_output_buffer()
S
54 7 20
is_external_link()
S
57 7 17
force_preview_on_url_in_ajax()
S
60 7 12
find_translation_block()
S
59 5 14
has_ancestor_attribute()
S
61 5 13
is_admin_link()
S
61 5 12
has_ancestor_class()
S
62 5 11
fix_wptexturize_characters()
S
52 4 24
get_node_type_category()
S
56 4 17
is_different_language()
S
58 4 16
force_form_language_on_url_in_ajax()
S
62 5 10
enqueue_dynamic_translation()
S
62 5 10
wp_mail_filter()
S
62 4 12
callback_add_language_to_url()
S
60 4 12
trp_is_numeric()
S
62 4 12
oembed_response_data()
S
60 4 12
force_language_on_form_url_redirect()
S
60 4 12
get_node_accessors()
S
46 1 50
skip_automatic_translation_for_no_auto_translation_selector()
S
66 4 8
is_first_language_not_default_language()
S
69 4 6
remove_trp_html_tags()
S
60 3 13
output_dynamic_translation_script()
S
58 2 15
force_preview_on_url_redirect()
S
69 3 6
custom_links_and_forms_json()
S
63 3 10
get_accessors_array()
S
64 3 10
check_children_for_tags()
S
64 3 10
maybe_correct_translatable_string()
S
66 3 9
maybe_add_post_id_in_node()
S
67 3 7
handle_custom_links_for_default_language()
S
72 3 5
callback_add_preview_arg()
S
72 2 5
translate_json()
S
66 2 8
enqueue_scripts()
S
72 2 5
skip_base_attributes_from_dynamic_translation()
S
66 2 8
add_callbacks_for_translating_rest_api()
S
69 2 6
allow_machine_translation_for_string()
S
68 2 7
trp_debug_mode_off()
S
68 2 7
is_html()
S
74 1 4
trim_translation_block()
S
77 1 3
handle_cdata()
S
75 1 4
get_base_attribute_selectors()
S
78 1 3
full_trim()
S
80 1 3
__construct()
S
70 1 4