Sublanguage 2.9

Does Sublanguage work with WordPress 6.2.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
44PHP deprecation warnings
1JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 249.34 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 version6.2.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 700+
WordPress.org page https://wordpress.org/plugins/sublanguage/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 9

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=sublanguage%2Fsublanguage.php&plugin_status=all&paged=1&s&_wpnonce=649057b898
Aspect after-activation
HTTP status 200
Load time 0.418 s
Memory usage 3.31 MiB
JS errors None
Resource errors None

Posts → Language Options

Page screenshot: Posts → Language Options
URL /wp-admin/edit.php?page=post_language_option
Aspect menu-item
HTTP status 200
Load time 0.164 s
Memory usage 3.29 MiB
JS errors None
Resource errors None

Pages → Language Options

Page screenshot: Pages → Language Options
URL /wp-admin/edit.php?post_type=page&page=page_language_option
Aspect menu-item
HTTP status 200
Load time 0.162 s
Memory usage 3.24 MiB
JS errors None
Resource errors None

Languages

Page screenshot: Languages
URL /wp-admin/edit.php?post_type=language
Aspect menu-item
HTTP status 200
Load time 0.180 s
Memory usage 3.31 MiB
JS errors None
Resource errors None

Languages → Add language

Page screenshot: Languages → Add language
URL /wp-admin/post-new.php?post_type=language
Aspect menu-item
HTTP status 200
Load time 0.407 s
Memory usage 3.68 MiB
JS errors None
Resource errors None

Tools → Translate Options

Page screenshot: Tools → Translate Options
URL /wp-admin/tools.php?page=translate_options
Aspect menu-item
HTTP status 200
Load time 0.196 s
Memory usage 3.35 MiB
JS errors None
Resource errors None

Settings → Sublanguage

Page screenshot: Settings → Sublanguage
URL /wp-admin/options-general.php?page=sublanguage-settings
Aspect menu-item
HTTP status 200
Load time 0.166 s
Memory usage 3.32 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.217 s
Memory usage 3.22 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.014 s
Memory usage 5.13 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of undefined (reading 'getCurrentPost')\n    at tryRegister (/wp-content/plugins/sublanguage/js/gutenberg.js?ver=1:167:43)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/sublanguage/js/gutenberg.js?ver=1:174:2)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.296 s0.288 s-0.008 s3.07 MiB3.33 MiB+ 263.84 KiB
/wp-admin/edit.php0.201 s0.202 s+0.001 s3.1 MiB3.37 MiB+ 273.31 KiB
/wp-admin/post-new.php0.782 s1.209 s+0.427 s5.02 MiB5.25 MiB+ 231.51 KiB
/wp-admin/upload.php0.589 s0.429 s-0.160 s3.02 MiB3.25 MiB+ 237.11 KiB
/wp-admin/options-writing.php0.192 s0.149 s-0.043 s3.01 MiB3.23 MiB+ 226.84 KiB
/wp-admin/media-new.php0.359 s0.191 s-0.168 s2.99 MiB3.23 MiB+ 248.93 KiB
/wp-admin/edit-tags.php?taxonomy=category0.203 s0.191 s-0.012 s3.01 MiB3.29 MiB+ 291.1 KiB
/wp-admin/post-new.php?post_type=page0.625 s0.607 s-0.018 s5.01 MiB5.19 MiB+ 184.3 KiB
/wp-admin/options-discussion.php0.227 s0.263 s+0.036 s3 MiB3.28 MiB+ 291.9 KiB
/wp-admin/edit-comments.php0.235 s0.219 s-0.016 s3.03 MiB3.26 MiB+ 236.77 KiB
/0.336 s0.224 s-0.112 s2.97 MiB3.22 MiB+ 257.1 KiB
Average 0.368 s0.361 s-0.007 s3.38 MiB3.63 MiB+ 249.34 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
PHP81.9%6,5563,84431
JavaScript8.0%639296
PO File5.4%4301583
Markdown3.3%26501
CSS1.4%11413
Total 8,004 4,032 44

PHP Code Analysis | More results »

Lines of code 5,859
Total complexity 1,806
Median class complexity 161.0
Median method complexity 3.0
Most complex class Sublanguage_main
Most complex function Sublanguage_admin_ui::save_post_option()
Classes 13
Methods 428
Functions 0

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 2

Custom Post Types 1

ID Name
languageLanguages

Sidebar Widgets 1

ID Name
sublanguage_widgetSublanguage

Meta Boxes

{
    "nav-menus": {
        "language_menu": {
            "title": "Language",
            "context": "side"
        }
    }
}

Capabilities 7

PHP Error Log 44 lines

[23-May-2023 02:55:08 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:08 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:08 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:08 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:09 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:09 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:10 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:10 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:10 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:10 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:11 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:11 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:12 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:12 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:13 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:13 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:15 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:15 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:16 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:16 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:16 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:16 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:19 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:19 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:19 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:19 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:19 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:19 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:20 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:20 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:20 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:20 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:22 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:22 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:22 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:22 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:23 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:23 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:23 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:23 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:29 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:29 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
[23-May-2023 02:55:30 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
[23-May-2023 02:55:30 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
See also: All tests for this plugin, How to Hide Sublanguage Admin Menus and Meta Boxes