Sublanguage 2.11

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: 286.55 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=594a695b89
Aspect after-activation
HTTP status 200
Load time 0.430 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.173 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.145 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.227 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.690 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.174 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.217 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.157 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.347 s0.404 s+0.057 s3.47 MiB3.73 MiB+ 267.49 KiB
/wp-admin/edit.php0.210 s0.286 s+0.076 s3.54 MiB3.8 MiB+ 269.46 KiB
/wp-admin/post-new.php0.814 s0.644 s-0.170 s5.75 MiB6.07 MiB+ 326.8 KiB
/wp-admin/upload.php0.634 s0.505 s-0.129 s3.49 MiB3.73 MiB+ 242.23 KiB
/wp-admin/options-writing.php0.234 s0.189 s-0.045 s3.41 MiB3.71 MiB+ 305.04 KiB
/wp-admin/media-new.php0.248 s0.211 s-0.037 s3.4 MiB3.71 MiB+ 318.42 KiB
/wp-admin/edit-tags.php?taxonomy=category0.212 s0.193 s-0.019 s3.47 MiB3.74 MiB+ 271.55 KiB
/wp-admin/post-new.php?post_type=page0.603 s0.596 s-0.007 s5.75 MiB6.07 MiB+ 330.61 KiB
/wp-admin/options-discussion.php0.225 s0.445 s+0.220 s3.41 MiB3.76 MiB+ 365.34 KiB
/wp-admin/edit-comments.php0.457 s0.248 s-0.209 s3.49 MiB3.73 MiB+ 242.23 KiB
/0.345 s0.207 s-0.138 s3.4 MiB3.61 MiB+ 212.87 KiB
Average 0.394 s0.357 s-0.036 s3.87 MiB4.15 MiB+ 286.55 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,3112,70426
PO File8.0%4301583
JavaScript5.3%282113
Markdown4.9%26501
CSS1.2%6612
Total 5,354 2,874 35

PHP Code Analysis | More results »

Lines of code 3,698
Total complexity 1,174
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

[29-Jul-2024 10:04:17 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:17 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
[29-Jul-2024 10:04:18 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:18 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
[29-Jul-2024 10:04:18 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:18 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
[29-Jul-2024 10:04:19 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04: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 2189
[29-Jul-2024 10:04:20 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04: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 2189
[29-Jul-2024 10:04:21 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:21 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
[29-Jul-2024 10:04:22 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04: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
[29-Jul-2024 10:04:24 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:24 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
[29-Jul-2024 10:04:24 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:24 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
[29-Jul-2024 10:04:25 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:25 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
[29-Jul-2024 10:04:27 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:27 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
[29-Jul-2024 10:04:28 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:28 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
[29-Jul-2024 10:04:28 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:28 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
[29-Jul-2024 10:04:28 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:28 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
[29-Jul-2024 10:04:28 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:28 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
[29-Jul-2024 10:04:31 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:31 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
[29-Jul-2024 10:04:31 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:31 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
[29-Jul-2024 10:04:32 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:32 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
[29-Jul-2024 10:04:32 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:32 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
[29-Jul-2024 10:04:37 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:37 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
[29-Jul-2024 10:04:38 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7300
[29-Jul-2024 10:04:38 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