Language Switcher 3.2.5

Does Language Switcher work with WordPress 5.9 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: 205.58 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
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=74a68a717e
Aspect after-activation
HTTP status 200
Load time 0.317 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.618 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.207 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.661 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.265 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.719 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.365 s0.282 s-0.083 s3.36 MiB3.55 MiB+ 195.89 KiB
/wp-admin/edit.php0.225 s0.194 s-0.031 s3.39 MiB3.59 MiB+ 196.21 KiB
/wp-admin/post-new.php0.999 s1.172 s+0.173 s6.14 MiB6.34 MiB+ 199.81 KiB
/wp-admin/upload.php0.388 s0.356 s-0.032 s3.24 MiB3.44 MiB+ 205.36 KiB
/wp-admin/options-writing.php0.268 s0.148 s-0.120 s3.24 MiB3.42 MiB+ 184.78 KiB
/wp-admin/media-new.php0.264 s0.203 s-0.061 s3.22 MiB3.42 MiB+ 206.16 KiB
/wp-admin/edit-tags.php?taxonomy=category0.191 s0.189 s-0.002 s3.25 MiB3.45 MiB+ 205.16 KiB
/wp-admin/post-new.php?post_type=page0.928 s1.099 s+0.171 s6.14 MiB6.33 MiB+ 195.4 KiB
/wp-admin/options-discussion.php0.214 s0.348 s+0.134 s3.22 MiB3.42 MiB+ 205.78 KiB
/wp-admin/edit-comments.php0.209 s0.228 s+0.019 s3.26 MiB3.52 MiB+ 260.13 KiB
/0.258 s0.283 s+0.025 s3.35 MiB3.55 MiB+ 206.74 KiB
Average 0.392 s0.409 s+0.018 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,9285159
CSS7.3%233183
JavaScript0.9%2822
Markdown0.1%201
Total 3,191 535 15

PHP Code Analysis | More results »

Lines of code 2,056
Total complexity 511
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 3 lines

[28-Jan-2022 18:17:59 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 1483
[28-Jan-2022 18:17:59 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 1483
[28-Jan-2022 18:17:59 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 1483
See also: All tests for this plugin, How to Hide Language Switcher Admin Menus