Sublanguage 2.10

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

Summary

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

Memory usage: 281.76 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.6.1
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 8

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=c3092d870d
Aspect after-activation
HTTP status 200
Load time 0.440 s
Memory usage 3.8 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.71 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.163 s
Memory usage 3.71 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.186 s
Memory usage 3.78 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.632 s
Memory usage 4.1 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.187 s
Memory usage 3.79 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.250 s
Memory usage 3.61 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 2.171 s
Memory usage 5.89 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of undefined (reading 'getCurrentPost')\n    at tryRegister (/wp-content/plugins/sublanguage/js/gutenberg.js?ver=1:171:43)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/sublanguage/js/gutenberg.js?ver=1:178:2)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.361 s0.338 s-0.023 s3.47 MiB3.73 MiB+ 267.49 KiB
/wp-admin/edit.php0.222 s0.229 s+0.007 s3.54 MiB3.8 MiB+ 269.46 KiB
/wp-admin/post-new.php0.832 s0.667 s-0.165 s5.75 MiB6.07 MiB+ 326.79 KiB
/wp-admin/upload.php0.708 s0.516 s-0.192 s3.49 MiB3.73 MiB+ 242.23 KiB
/wp-admin/options-writing.php0.213 s0.221 s+0.008 s3.41 MiB3.71 MiB+ 305.04 KiB
/wp-admin/media-new.php0.267 s0.228 s-0.039 s3.4 MiB3.71 MiB+ 318.42 KiB
/wp-admin/edit-tags.php?taxonomy=category0.197 s0.211 s+0.014 s3.47 MiB3.74 MiB+ 271.55 KiB
/wp-admin/post-new.php?post_type=page0.658 s0.594 s-0.064 s5.75 MiB6.07 MiB+ 330.61 KiB
/wp-admin/options-discussion.php0.236 s0.260 s+0.024 s3.41 MiB3.76 MiB+ 365.34 KiB
/wp-admin/edit-comments.php0.254 s0.468 s+0.214 s3.49 MiB3.73 MiB+ 242.23 KiB
/0.334 s0.229 s-0.105 s3.45 MiB3.61 MiB+ 160.24 KiB
Average 0.389 s0.360 s-0.029 s3.88 MiB4.15 MiB+ 281.76 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
PHP80.5%4,3092,70426
PO File8.0%4301583
JavaScript5.3%282113
Markdown5.0%26501
CSS1.2%6612
Total 5,352 2,874 35

PHP Code Analysis | More results »

Lines of code 3,696
Total complexity 1,173
Median class complexity 171.0
Median method complexity 2.0
Most complex class Sublanguage_admin_ui
Most complex function Sublanguage_admin_ui::save_post_option()
Classes 9
Methods 292
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 42 lines

[26-Jul-2024 04:09:01 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09:01 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2189
[26-Jul-2024 04:09:02 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09:02 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2189
[26-Jul-2024 04:09:02 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09:02 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2189
[26-Jul-2024 04:09:03 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09:03 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2189
[26-Jul-2024 04:09:04 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09:04 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2189
[26-Jul-2024 04:09:05 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09:05 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2189
[26-Jul-2024 04:09:06 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09:06 UTC] PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2189
[26-Jul-2024 04:09:08 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09: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 2189
[26-Jul-2024 04:09:08 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09: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 2189
[26-Jul-2024 04:09:09 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09: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 2189
[26-Jul-2024 04:09:11 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09: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 2189
[26-Jul-2024 04:09:12 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09: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 2189
[26-Jul-2024 04:09:12 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09: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 2189
[26-Jul-2024 04:09:12 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09: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 2189
[26-Jul-2024 04:09:13 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09: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 2189
[26-Jul-2024 04:09:15 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09: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 2189
[26-Jul-2024 04:09:15 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09: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 2189
[26-Jul-2024 04:09:16 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09: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 2189
[26-Jul-2024 04:09:16 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09: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 2189
[26-Jul-2024 04:09:22 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09: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 2189
[26-Jul-2024 04:09:22 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[26-Jul-2024 04:09: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 2189
See also: All tests for this plugin, How to Hide Sublanguage Admin Menus and Meta Boxes