Weglot Translate 3.7.2

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

Summary

Errors
No PHP errors, warnings or notices
1JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 186.72 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.034 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.0
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
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=bbb159e9a1
Aspect after-activation
HTTP status 200
Load time 0.429 s
Memory usage 3.91 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 2.089 s
Memory usage 4.06 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of undefined (reading 'value')\n    at Function.fg [as fromTextArea] (/wp-includes/js/codemirror/codemirror.min.js?ver=5.29.1-alpha-ee20357:22:31506)\n    at Object.d.codeEditor.initialize (/wp-admin/js/code-editor.min.js?ver=6.0:2:1978)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/weglot/dist/admin-js.js?ver=3.7.2:1:8297)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,hoverIntent,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0:2:30038)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,hoverIntent,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0:2:30340)",
        "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.321 s
Memory usage 3.72 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.681 s
Memory usage 5.67 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.643 s
Memory usage 5.66 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.497 s
Memory usage 5.63 MiB
JS errors
External errors: The following JavaScript errors were probably triggered by WordPress itself, or by compatibility issues in the test runner. They are not related to the plugin.
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetHeight')\n    at t (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10419)\n    at IntersectionObserver.n.threshold (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10591)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.378 s0.388 s+0.010 s3.72 MiB3.9 MiB+ 188.56 KiB
/wp-admin/edit.php0.165 s0.182 s+0.017 s3.75 MiB3.93 MiB+ 187.17 KiB
/wp-admin/post-new.php0.716 s0.927 s+0.211 s5.53 MiB5.67 MiB+ 136.07 KiB
/wp-admin/upload.php0.328 s0.412 s+0.084 s3.68 MiB3.86 MiB+ 186.8 KiB
/wp-admin/options-writing.php0.256 s0.138 s-0.118 s3.61 MiB3.84 MiB+ 231.12 KiB
/wp-admin/media-new.php0.290 s0.157 s-0.133 s3.66 MiB3.84 MiB+ 186.98 KiB
/wp-admin/edit-tags.php?taxonomy=category0.211 s0.346 s+0.135 s3.68 MiB3.87 MiB+ 187.88 KiB
/wp-admin/post-new.php?post_type=page0.710 s0.947 s+0.237 s5.53 MiB5.66 MiB+ 131.08 KiB
/wp-admin/options-discussion.php0.250 s0.257 s+0.007 s3.59 MiB3.84 MiB+ 251.6 KiB
/wp-admin/edit-comments.php0.239 s0.193 s-0.046 s3.69 MiB3.87 MiB+ 186.83 KiB
/0.250 s0.221 s-0.029 s3.55 MiB3.72 MiB+ 179.82 KiB
Average 0.345 s0.379 s+0.034 s4 MiB4.18 MiB+ 186.72 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
PHP49.4%6,9912,847132
PO File27.8%3,9341,7688
Sass9.9%1,40709
JavaScript6.9%97315923
Markdown3.2%46001
CSS2.2%309163
JSON0.6%9103
Total 14,165 4,790 179

PHP Code Analysis | More results »

Lines of code 5,752
Total complexity 1,031
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 107
Methods 297
Functions 35

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-url-translate": {
            "title": "Weglot URL Translate",
            "context": "advanced"
        }
    },
    "page": {
        "weglot-url-translate": {
            "title": "Weglot URL Translate",
            "context": "advanced"
        }
    }
}

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide Weglot Translate Admin Menus and Meta Boxes