TRP_Translation_Render D

Total Complexity 394
Dependencies 3
Dependents 2
Total lines 1,773
Lines of code 1,146
Logical lines of code 631
Comment lines 425
Methods 51
Properties 5

Methods 51

Method Rating Maintainability Complexity Lines of code
translate_page()
D
2
133 351
handle_custom_links_and_forms()
C
37 30 59
process_strings()
B
39 20 61
render_default_language()
A
49 12 28
maybe_is_local_url()
A
49 12 28
translate_image_srcset_attributes()
A
50 11 29
get_node_description()
A
40 8 71
wrap_with_post_id()
A
56 10 16
force_language_in_preview()
A
54 8 22
get_trp_data()
A
45 7 36
handle_rest_api_translations()
S
60 8 14
start_output_buffer()
S
55 7 19
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
enqueue_dynamic_translation()
S
60 5 11
has_ancestor_class()
S
62 5 11
fix_wptexturize_characters()
S
52 4 24
get_node_type_category()
S
57 4 17
is_different_language()
S
58 4 16
force_form_language_on_url_in_ajax()
S
62 5 10
force_language_on_form_url_redirect()
S
60 4 12
wp_mail_filter()
S
62 4 12
trp_is_numeric()
S
62 4 12
oembed_response_data()
S
60 4 12
callback_add_language_to_url()
S
61 4 11
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
handle_custom_links_for_default_language()
S
72 3 5
force_preview_on_url_redirect()
S
69 3 6
maybe_add_post_id_in_node()
S
67 3 7
get_accessors_array()
S
64 3 10
maybe_correct_translatable_string()
S
66 3 9
custom_links_and_forms_json()
S
63 3 10
check_children_for_tags()
S
64 3 10
trp_debug_mode_off()
S
68 2 7
callback_add_preview_arg()
S
72 2 5
skip_base_attributes_from_dynamic_translation()
S
66 2 8
add_callbacks_for_translating_rest_api()
S
70 2 6
enqueue_scripts()
S
72 2 5
allow_machine_translation_for_string()
S
68 2 7
translate_json()
S
66 2 8
get_base_attribute_selectors()
S
78 1 3
trim_translation_block()
S
77 1 3
handle_cdata()
S
75 1 4
full_trim()
S
80 1 3
__construct()
S
81 1 3