Language Switcher 3.3.0

Does Language Switcher work with WordPress 5.9.2 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
3PHP fatal errors
No JavaScript exceptions
1Page failed to load
  • 1 500 Internal Server Error
No resource errors
Performance

Memory usage: 216.29 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version5.9.2
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 1,000+
WordPress.org page https://wordpress.org/plugins/language-switcher/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 6

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=language-switcher%2Flanguage-switcher.php&plugin_status=all&paged=1&s&_wpnonce=9f959e1ffa
Aspect after-activation
HTTP status 200
Load time 0.363 s
Memory usage 3.47 MiB
JS errors None
Resource errors None

Languages

Page screenshot: Languages
URL /wp-admin/admin.php?page=language-switcher
Aspect menu-item
HTTP status 200
Load time 0.769 s
Memory usage 3.53 MiB
JS errors None
Resource errors None

Languages → Settings

Page screenshot: Languages → Settings
URL /wp-admin/admin.php?page=language-switcher&tab=settings
Aspect menu-item-tab
HTTP status 200
Load time 0.167 s
Memory usage 3.47 MiB
JS errors None
Resource errors None

Languages → Addons

Page screenshot: Languages → Addons
URL /wp-admin/admin.php?page=language-switcher&tab=addons
Aspect menu-item-tab
HTTP status 200
Load time 0.597 s
Memory usage 3.43 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.184 s
Memory usage N/A
JS errors None
Resource errors None

WordPress › Error

Page screenshot: WordPress › Error
URL /wp-admin/widgets.php
Aspect new-sidebar-widgets
HTTP status 500
Load time 0.114 s
Memory usage N/A
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.332 s0.262 s-0.070 s3.37 MiB3.57 MiB+ 208.25 KiB
/wp-admin/edit.php0.162 s0.176 s+0.014 s3.4 MiB3.61 MiB+ 209.73 KiB
/wp-admin/post-new.php0.777 s0.906 s+0.129 s6.15 MiB6.36 MiB+ 211.86 KiB
/wp-admin/upload.php0.368 s0.344 s-0.024 s3.25 MiB3.46 MiB+ 216.67 KiB
/wp-admin/options-writing.php0.304 s0.135 s-0.169 s3.24 MiB3.43 MiB+ 196.09 KiB
/wp-admin/media-new.php0.230 s0.327 s+0.097 s3.23 MiB3.44 MiB+ 217.47 KiB
/wp-admin/edit-tags.php?taxonomy=category0.164 s0.168 s+0.004 s3.27 MiB3.47 MiB+ 206.84 KiB
/wp-admin/post-new.php?post_type=page0.597 s0.895 s+0.298 s6.15 MiB6.35 MiB+ 207.45 KiB
/wp-admin/options-discussion.php0.229 s0.247 s+0.018 s3.22 MiB3.43 MiB+ 217.09 KiB
/wp-admin/edit-comments.php0.289 s0.190 s-0.099 s3.27 MiB3.53 MiB+ 271.45 KiB
/0.275 s0.182 s-0.093 s3.4 MiB
Average 0.339 s0.348 s+0.010 s3.81 MiB4.07 MiB+ 216.29 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
Language % Lines of code Comment lines Files
PHP91.8%2,9425179
CSS7.3%233183
JavaScript0.9%2822
Markdown0.1%201
Total 3,205 537 15

PHP Code Analysis | More results »

Lines of code 2,070
Total complexity 514
Median class complexity 32.5
Median method complexity 3.0
Most complex class Language_Switcher
Most complex function Language_Switcher_Admin_API::display_field()
Classes 6
Methods 100
Functions 1

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Options wp_options 1

Sidebar Widgets 1

ID Name
language_switcher_widgetLanguage Switcher

PHP Error Log 32 lines

[29-Mar-2022 12:41:34 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function get_current_language() in /wp-content/plugins/language-switcher/includes/class-language-switcher.php:894
Stack trace:
#0 /wp-includes/class-wp-hook.php(309): Language_Switcher->filter_language_menus()
#1 /wp-includes/plugin.php(189): WP_Hook->apply_filters()
#2 /wp-includes/nav-menu.php(794): apply_filters()
#3 /wp-includes/nav-menu-template.php(151): wp_get_nav_menu_items()
#4 /wp-content/themes/twentyseventeen/template-parts/navigation/navigation-top.php(24): wp_nav_menu()
#5 /wp-includes/template.php(772): require('/opt/bitnami/ap...')
#6 /wp-includes/template.php(716): load_template()
#7 /wp-includes/general-template.php(204): locate_template()
#8 /opt/bitnami/ap in /wp-content/plugins/language-switcher/includes/class-language-switcher.php on line 894
[29-Mar-2022 12:41:41 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function get_current_language() in /wp-content/plugins/language-switcher/includes/class-language-switcher.php:894
Stack trace:
#0 /wp-includes/class-wp-hook.php(309): Language_Switcher->filter_language_menus()
#1 /wp-includes/plugin.php(189): WP_Hook->apply_filters()
#2 /wp-includes/nav-menu.php(794): apply_filters()
#3 /wp-includes/nav-menu-template.php(151): wp_get_nav_menu_items()
#4 /wp-content/themes/twentyseventeen/template-parts/navigation/navigation-top.php(24): wp_nav_menu()
#5 /wp-includes/template.php(772): require('/opt/bitnami/ap...')
#6 /wp-includes/template.php(716): load_template()
#7 /wp-includes/general-template.php(204): locate_template()
#8 /opt/bitnami/ap in /wp-content/plugins/language-switcher/includes/class-language-switcher.php on line 894
[29-Mar-2022 12:41:42 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function get_current_language() in /wp-content/plugins/language-switcher/includes/class-language-switcher.php:879
Stack trace:
#0 /wp-includes/class-wp-hook.php(307): Language_Switcher->get_month_link()
#1 /wp-includes/plugin.php(189): WP_Hook->apply_filters()
#2 /wp-includes/link-template.php(603): apply_filters()
#3 /wp-includes/general-template.php(2059): get_month_link()
#4 /wp-includes/widgets/class-wp-widget-archives.php(155): wp_get_archives()
#5 /wp-includes/class-wp-widget.php(393): WP_Widget_Archives->widget()
#6 /wp-includes/widgets.php(2022): WP_Widget->display_callback()
#7 /wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(697): wp_render_widge in /wp-content/plugins/language-switcher/includes/class-language-switcher.php on line 879
See also: All tests for this plugin, How to Hide Language Switcher Admin Menus