Weglot Translate 4.1.1

Does Weglot Translate work with WordPress 6.3.1 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 122.02 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.3.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 60,000+
WordPress.org page https://wordpress.org/plugins/weglot/
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=weglot%2Fweglot.php&plugin_status=all&paged=1&s&_wpnonce=b6e8cadbf8
Aspect after-activation
HTTP status 200
Load time 0.318 s
Memory usage 2.9 MiB
JS errors None
Resource errors None

Weglot

Page screenshot: Weglot
URL /wp-admin/admin.php?page=weglot-settings
Aspect menu-item
HTTP status 200
Load time 1.926 s
Memory usage 3.07 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of undefined (reading 'value')\n    at Function.fg [as fromTextArea] (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,wp-codemirror,underscore&ver=6.3.1:164:31506)\n    at Object.d.codeEditor.initialize (/wp-admin/js/code-editor.min.js?ver=6.3.1:2:1977)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/weglot/dist/admin-js.js?ver=4.1.1:1:7931)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,wp-codemirror,underscore&ver=6.3.1:2:26990)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,wp-codemirror,underscore&ver=6.3.1:2:27292)",
        "trace": null,
        "code": null
    }
]
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.192 s
Memory usage 3.23 MiB
JS errors None
Resource errors None

Add New Post ‹ Test site — WordPress

Page screenshot: Add New Post ‹ Test site — WordPress
URL /wp-admin/post-new.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.633 s
Memory usage 5.27 MiB
JS errors None
Resource errors None

Add New Page ‹ Test site — WordPress

Page screenshot: Add New Page ‹ Test site — WordPress
URL /wp-admin/post-new.php?post_type=page
Aspect new-meta-boxes
HTTP status 200
Load time 0.582 s
Memory usage 5.26 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.784 s
Memory usage 5.17 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.376 s0.306 s-0.070 s2.82 MiB2.93 MiB+ 110.89 KiB
/wp-admin/edit.php0.203 s0.787 s+0.584 s2.85 MiB3.26 MiB+ 416.25 KiB
/wp-admin/post-new.php0.755 s0.797 s+0.042 s5.21 MiB5.27 MiB+ 58.52 KiB
/wp-admin/upload.php0.603 s0.518 s-0.085 s2.77 MiB2.86 MiB+ 96.05 KiB
/wp-admin/options-writing.php0.221 s0.217 s-0.004 s2.76 MiB2.85 MiB+ 88.02 KiB
/wp-admin/media-new.php0.370 s0.226 s-0.144 s2.74 MiB2.85 MiB+ 108.24 KiB
/wp-admin/edit-tags.php?taxonomy=category0.209 s0.217 s+0.008 s2.76 MiB2.87 MiB+ 111.28 KiB
/wp-admin/post-new.php?post_type=page0.818 s0.646 s-0.172 s5.21 MiB5.26 MiB+ 54.15 KiB
/wp-admin/options-discussion.php0.404 s0.241 s-0.163 s2.75 MiB2.84 MiB+ 96.55 KiB
/wp-admin/edit-comments.php0.252 s0.230 s-0.022 s2.78 MiB2.87 MiB+ 93.95 KiB
/0.273 s0.237 s-0.036 s3.13 MiB3.23 MiB+ 108.36 KiB
Average 0.408 s0.402 s-0.006 s3.25 MiB3.37 MiB+ 122.02 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
PO File
Sass
Language % Lines of code Comment lines Files
PHP51.5%7,6853,112148
PO File26.3%3,9341,7688
Sass9.2%1,38108
JavaScript6.5%97516722
Markdown3.7%55101
CSS2.1%309163
JSON0.6%9603
Total 14,931 5,063 193

PHP Code Analysis | More results »

Lines of code 6,382
Total complexity 1,157
Median class complexity 4.0
Median method complexity 2.0
Most complex class WeglotWP\Services\Option_Service_Weglot
Most complex function WeglotWP\Actions\Front\Front_Menu_Weglot::weglot_wp_get_nav_menu_items()
Classes 118
Methods 326
Functions 45

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

Sidebar Widgets 1

ID Name
weglot-translateWeglot Translate

Meta Boxes

{
    "post": {
        "weglot_visual_editor_meta_box": {
            "title": "Weglot URLs",
            "context": "side"
        },
        "weglot-url-translate": {
            "title": "Weglot URL Translate",
            "context": "advanced"
        }
    },
    "page": {
        "weglot_visual_editor_meta_box": {
            "title": "Weglot URLs",
            "context": "side"
        },
        "weglot-url-translate": {
            "title": "Weglot URL Translate",
            "context": "advanced"
        }
    }
}

PHP Error Log 2 lines

[30-Aug-2023 09:56:41 UTC] PHP Warning:  Undefined array key "limit" in /wp-content/plugins/weglot/src/actions/admin/class-pages-weglot.php on line 178
[30-Aug-2023 09:56:41 UTC] PHP Warning:  Undefined array key "usage" in /wp-content/plugins/weglot/src/actions/admin/class-pages-weglot.php on line 178
See also: All tests for this plugin, How to Hide Weglot Translate Admin Menus and Meta Boxes