Language Switcher 3.2.6

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

Summary

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

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

Page speed impact: 0.021 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version5.9
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=3dacee4bf0
Aspect after-activation
HTTP status 200
Load time 0.319 s
Memory usage 3.45 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.712 s
Memory usage 3.47 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.45 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.645 s
Memory usage 3.41 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.237 s
Memory usage 3.55 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.694 s
Memory usage 5.31 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.347 s0.295 s-0.052 s3.36 MiB3.55 MiB+ 195.89 KiB
/wp-admin/edit.php0.182 s0.220 s+0.038 s3.39 MiB3.59 MiB+ 196.21 KiB
/wp-admin/post-new.php1.045 s1.215 s+0.170 s6.14 MiB6.34 MiB+ 199.81 KiB
/wp-admin/upload.php0.485 s0.429 s-0.056 s3.24 MiB3.44 MiB+ 205.36 KiB
/wp-admin/options-writing.php0.210 s0.161 s-0.049 s3.24 MiB3.42 MiB+ 184.78 KiB
/wp-admin/media-new.php0.237 s0.202 s-0.035 s3.22 MiB3.42 MiB+ 206.16 KiB
/wp-admin/edit-tags.php?taxonomy=category0.190 s0.188 s-0.002 s3.25 MiB3.45 MiB+ 205.16 KiB
/wp-admin/post-new.php?post_type=page0.971 s1.096 s+0.125 s6.14 MiB6.33 MiB+ 195.4 KiB
/wp-admin/options-discussion.php0.219 s0.318 s+0.099 s3.22 MiB3.42 MiB+ 205.78 KiB
/wp-admin/edit-comments.php0.214 s0.221 s+0.007 s3.26 MiB3.52 MiB+ 260.13 KiB
/0.264 s0.247 s-0.017 s3.35 MiB3.55 MiB+ 206.74 KiB
Average 0.397 s0.417 s+0.021 s3.8 MiB4 MiB+ 205.58 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,9305159
CSS7.3%233183
JavaScript0.9%2822
Markdown0.1%201
Total 3,193 535 15

PHP Code Analysis | More results »

Lines of code 2,058
Total complexity 512
Median class complexity 33.5
Median method complexity 3.0
Most complex class Language_Switcher
Most complex function Language_Switcher_Admin_API::display_field()
Classes 6
Methods 98
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 4 lines

[11-Feb-2022 13:32:37 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
[11-Feb-2022 13:32:37 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
[11-Feb-2022 13:32:37 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
[11-Feb-2022 13:32:38 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