Language Switcher 3.2.10

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

Summary

Errors
3PHP notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 199.82 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=f629a10d7f
Aspect after-activation
HTTP status 200
Load time 0.438 s
Memory usage 3.46 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.575 s
Memory usage 3.52 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.186 s
Memory usage 3.46 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.586 s
Memory usage 3.42 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.253 s
Memory usage 3.54 MiB
JS errors None
Resource errors None

Widgets ‹ Test site — WordPress

Page screenshot: Widgets ‹ Test site — WordPress
URL /wp-admin/widgets.php
Aspect new-sidebar-widgets
HTTP status 200
Load time 1.709 s
Memory usage 5.37 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.340 s0.313 s-0.027 s3.37 MiB3.56 MiB+ 195.89 KiB
/wp-admin/edit.php0.183 s0.193 s+0.010 s3.4 MiB3.59 MiB+ 196.21 KiB
/wp-admin/post-new.php1.100 s1.227 s+0.127 s6.15 MiB6.34 MiB+ 199.81 KiB
/wp-admin/upload.php0.472 s0.341 s-0.131 s3.25 MiB3.45 MiB+ 205.36 KiB
/wp-admin/options-writing.php0.271 s0.277 s+0.006 s3.24 MiB3.42 MiB+ 184.78 KiB
/wp-admin/media-new.php0.287 s0.241 s-0.046 s3.23 MiB3.43 MiB+ 206.16 KiB
/wp-admin/edit-tags.php?taxonomy=category0.181 s0.190 s+0.009 s3.27 MiB3.46 MiB+ 197.16 KiB
/wp-admin/post-new.php?post_type=page0.968 s1.023 s+0.055 s6.15 MiB6.34 MiB+ 195.4 KiB
/wp-admin/options-discussion.php0.226 s0.253 s+0.027 s3.22 MiB3.42 MiB+ 205.78 KiB
/wp-admin/edit-comments.php0.251 s0.211 s-0.040 s3.27 MiB3.52 MiB+ 260.13 KiB
/0.274 s0.232 s-0.042 s3.4 MiB3.54 MiB+ 151.3 KiB
Average 0.414 s0.409 s-0.005 s3.81 MiB4.01 MiB+ 199.82 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.7%2,9185109
CSS7.3%233183
JavaScript0.9%2822
Markdown0.1%201
Total 3,181 530 15

PHP Code Analysis | More results »

Lines of code 2,046
Total complexity 507
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 99
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 3 lines

[14-Mar-2022 07:38:18 UTC] PHP Notice:  Trying to access array offset on value of type null in /wp-content/plugins/language-switcher/includes/class-language-switcher.php on line 1487
[14-Mar-2022 07:38:18 UTC] PHP Notice:  Trying to access array offset on value of type null in /wp-content/plugins/language-switcher/includes/class-language-switcher.php on line 1487
[14-Mar-2022 07:38:18 UTC] PHP Notice:  Trying to access array offset on value of type null in /wp-content/plugins/language-switcher/includes/class-language-switcher.php on line 1487
See also: All tests for this plugin, How to Hide Language Switcher Admin Menus