Code Analysis: Theme and plugin translation for Polylang (TTfP) 3.2.20

Function Rating Maintainability Complexity Lines of code
process_polylang_theme_translation_wp_loaded()
B
42 18 48
Polylang_Theme_Translation::file_scanner()
A
45 9 43
Polylang_TT_importer::import()
A
48 9 31
Polylang_TT_access::is_polylang_page()
A
61 10 11
Polylang_Theme_Translation::get_files_from_dir()
S
55 7 17
tt_pll_gettext_filter()
S
59 6 14
Polylang_Theme_Translation::run_plugin_scanner()
S
56 5 18
Polylang_Theme_Translation_Settings::getInstance()
S
60 5 15
process_polylang_theme_translation()
S
62 5 11
Polylang_TT_exporter::export()
S
52 4 25
Polylang_TT_exporter::export_data()
S
58 4 17
pll_get_plugins()
S
61 4 12
Polylang_Theme_Translation::run_theme_scanner()
S
58 3 15
Polylang_TT_theme::includeTemplates()
S
58 3 15
custom_pll_settings_active_tab_import_export_strings()
S
61 3 11
Polylang_TT_access::chceck_plugin_access()
S
62 3 11
tt_pll_gettext_with_context_filter()
S
66 3 8
Polylang_Theme_Translation::add_to_polylang_register()
S
67 3 7
tt_pll_esc_html_filter()
S
67 3 8
pll_get_themes()
S
67 2 8
Polylang_TT_access::get_instance()
S
71 2 6
Polylang_Theme_Translation::run()
S
78 1 4
Polylang_Theme_Translation::__construct()
S
81 1 3
tt_pll_ngettext_filter()
S
74 1 4
tt_pll_add_action_links()
S
74 1 4
import_export_strings()
S
75 1 4
plugins_loaded_tt_for_polylang()
S
78 1 3
Polylang_Theme_Translation_Settings::__construct()
S
91 1 2
Polylang_TT_access::__construct()
S
91 1 2
Polylang_TT_access::error_polylang_disable()
S
72 1 5
Polylang_TT_access::error_php_version()
S
71 1 5
Polylang_TT_exporter::__construct()
S
81 1 3