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

Function Rating Maintainability Complexity Lines of code
process_polylang_theme_translation_wp_loaded()
B
37 20 72
Polylang_Theme_Translation_Settings::getInstance()
A
46 16 36
Polylang_Theme_Translation::file_scanner()
A
45 9 43
Polylang_TT_access::is_polylang_page()
A
61 10 11
Polylang_TT_importer::import()
A
48 8 31
Polylang_Theme_Translation::get_files_from_dir()
S
54 7 20
pll_admin_current_language_tt_for_polylang()
S
56 5 18
Polylang_Theme_Translation::run_plugin_scanner()
S
58 5 15
process_polylang_theme_translation()
S
61 5 12
Polylang_TT_exporter::export()
S
52 4 25
Polylang_TT_exporter::export_data()
S
58 4 17
pll_get_plugin_info()
S
58 4 15
Polylang_Theme_Translation_Translator::make_translation()
S
64 5 9
pll_get_plugins()
S
61 4 12
tt_pll_set_language_rest()
S
62 4 11
pll_get_plugin_textdomain()
S
64 4 10
pll_get_plugin_fullname()
S
64 4 10
Polylang_TT_theme::includeTemplates()
S
58 3 15
convert_pll_to_polylang_pro()
S
67 4 8
Polylang_Theme_Translation_Translator::ngettext()
S
63 4 10
Polylang_Theme_Translation_Translator::__construct()
S
59 3 13
Polylang_Theme_Translation::run_theme_scanner()
S
62 3 11
Polylang_TT_access::chceck_plugin_access()
S
62 3 11
Polylang_Theme_Translation_Translator::gettext_with_context()
S
66 3 9
Polylang_Theme_Translation::add_to_polylang_register()
S
68 3 7
Polylang_Theme_Translation_Translator::gettext()
S
66 3 9
Polylang_Theme_Translation::register_stings_from_dir()
S
60 2 14
custom_pll_settings_active_tab_import_export_strings()
S
59 2 13
Polylang_TT_access::get_instance()
S
71 2 6
pll_get_theme_textdomain()
S
68 2 8
pll_language_defined_tt_for_polylang()
S
69 2 6
pll_get_themes()
S
67 2 8
pll_get_domains()
S
67 2 8
Polylang_Theme_Translation_Translator::plugin_locale()
S
72 2 6
pll_get_theme_fullname()
S
68 2 8
Polylang_Theme_Translation::run_core_scanner()
S
64 2 9
Polylang_TT_exporter::__construct()
S
81 1 3
Polylang_TT_access::__construct()
S
91 1 2
Polylang_TT_access::error_php_version()
S
71 1 5
Polylang_Theme_Translation::__construct()
S
81 1 3
import_export_strings()
S
75 1 4
Polylang_Theme_Translation::run()
S
75 1 5
Polylang_TT_access::error_polylang_disable()
S
72 1 5
tt_pll_add_action_links()
S
74 1 4
Polylang_Theme_Translation_Settings::__construct()
S
91 1 2