Smartcat Translator for WPML 3.1.32

Does Smartcat Integration for WPML work with WordPress 6.2.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
2PHP fatal errors
4Database errors
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 60.96 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 90+
WordPress.org page https://wordpress.org/plugins/smartcat-wpml/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 4

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=smartcat-wpml%2Fsmartcat-wpml.php&plugin_status=all&paged=1&s&_wpnonce=6f2b0f9cdd
Aspect after-activation
HTTP status 200
Load time 0.791 s
Memory usage 3.1 MiB
JS errors None
Resource errors None

Smartcat

Page screenshot: Smartcat
URL /wp-admin/admin.php?page=smartcat-wpml
Aspect menu-item
HTTP status 200
Load time 1.095 s
Memory usage 3.21 MiB
JS errors None
Resource errors None

Smartcat → Translation requests

Page screenshot: Smartcat → Translation requests
URL /wp-admin/admin.php?page=smartcat-wpml-dashboard
Aspect menu-item
HTTP status 200
Load time 0.195 s
Memory usage N/A
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.243 s
Memory usage 3.07 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.313 s0.294 s-0.019 s3.07 MiB3.14 MiB+ 64.88 KiB
/wp-admin/edit.php0.199 s0.214 s+0.015 s3.1 MiB3.16 MiB+ 63.88 KiB
/wp-admin/upload.php0.608 s0.392 s-0.216 s3.02 MiB3.06 MiB+ 47.12 KiB
/wp-admin/options-writing.php0.179 s0.195 s+0.016 s3.01 MiB3.05 MiB+ 36.16 KiB
/wp-admin/media-new.php0.347 s0.273 s-0.074 s2.99 MiB3.05 MiB+ 63.57 KiB
/wp-admin/edit-tags.php?taxonomy=category0.191 s0.220 s+0.029 s3.01 MiB3.07 MiB+ 64.42 KiB
/wp-admin/options-discussion.php0.226 s0.260 s+0.034 s3 MiB3.05 MiB+ 49.89 KiB
/wp-admin/edit-comments.php0.216 s0.410 s+0.194 s3.03 MiB3.08 MiB+ 52.06 KiB
/0.321 s0.234 s-0.087 s2.97 MiB3.07 MiB+ 106.7 KiB
Average 0.289 s0.277 s-0.012 s3.02 MiB3.08 MiB+ 60.96 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
JavaScript
CSS
Language % Lines of code Comment lines Files
PHP81.6%11,1771,569198
JavaScript9.5%1,299582
CSS8.1%1,112162
PO File0.7%91151
SVG0.1%1604
Total 13,695 1,658 207

PHP Code Analysis | More results »

Lines of code 10,965
Total complexity 1,597
Median class complexity 4.0
Median method complexity 1.0
Most complex class Smartcat\Includes\Services\App\TranslationRequestService
Most complex function Smartcat\Includes\Services\WPML\WpmlContentService::save()
Classes 175
Methods 939
Functions 25

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.

Database Tables 2

Options wp_options 4

PHP Error Log 24 lines

[28-May-2023 17:54:12 UTC] WordPress database error Table 'wordpress.wp_smartcat_documents' doesn't exist for query alter table `wp_smartcat_documents` drop FOREIGN KEY `wp_smartcat_documents_post_id_foreign`; made by activate_plugin, plugin_sandbox_scrape, include_once('/plugins/smartcat-wpml/smartcat-wpml.php'), run, Smartcat\Includes\SmartcatWpml->__construct, Smartcat\Includes\SmartcatWpml->defineAdminHooks, Smartcat\Includes\Services\Plugin\Migrations->check
[28-May-2023 17:54:12 UTC] WordPress database error Table 'wordpress.wp_smartcat_documents' doesn't exist for query alter table `wp_smartcat_documents` drop FOREIGN KEY `wp_smartcat_documents_translated_post_id_foreign`; made by activate_plugin, plugin_sandbox_scrape, include_once('/plugins/smartcat-wpml/smartcat-wpml.php'), run, Smartcat\Includes\SmartcatWpml->__construct, Smartcat\Includes\SmartcatWpml->defineAdminHooks, Smartcat\Includes\Services\Plugin\Migrations->check
[28-May-2023 17:54:12 UTC] WordPress database error Table 'wordpress.wp_smartcat_documents' doesn't exist for query SHOW COLUMNS FROM `wp_smartcat_documents` LIKE 'api_version' made by activate_plugin, plugin_sandbox_scrape, include_once('/plugins/smartcat-wpml/smartcat-wpml.php'), run, Smartcat\Includes\SmartcatWpml->__construct, Smartcat\Includes\SmartcatWpml->defineAdminHooks, Smartcat\Includes\Services\Plugin\Migrations->check, Smartcat\Includes\Services\Plugin\Migrations->addApiVersionFiledToDocumentsTable
[28-May-2023 17:54:12 UTC] WordPress database error Table 'wordpress.wp_smartcat_documents' doesn't exist for query ALTER TABLE wp_smartcat_documents ADD api_version varchar(10) default 'v1' AFTER `is_active` made by activate_plugin, plugin_sandbox_scrape, include_once('/plugins/smartcat-wpml/smartcat-wpml.php'), run, Smartcat\Includes\SmartcatWpml->__construct, Smartcat\Includes\SmartcatWpml->defineAdminHooks, Smartcat\Includes\Services\Plugin\Migrations->check, Smartcat\Includes\Services\Plugin\Migrations->addApiVersionFiledToDocumentsTable
[28-May-2023 17:54:19 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_translatable_documents() on null in /wp-content/plugins/smartcat-wpml/admin/SmartcatAdmin.php:75
Stack trace:
#0 /wp-includes/class-wp-hook.php(310): SmartcatAdmin->registerSmartcatMetabox()
#1 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-admin/includes/meta-boxes.php(1701): do_action()
#4 /wp-admin/edit-form-blocks.php(276): register_and_do_post_meta_boxes()
#5 /wp-admin/post-new.php(72): require('...')
#6 {main}
  thrown in /wp-content/plugins/smartcat-wpml/admin/SmartcatAdmin.php on line 75
[28-May-2023 17:54:20 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_translatable_documents() on null in /wp-content/plugins/smartcat-wpml/admin/SmartcatAdmin.php:75
Stack trace:
#0 /wp-includes/class-wp-hook.php(310): SmartcatAdmin->registerSmartcatMetabox()
#1 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-admin/includes/meta-boxes.php(1701): do_action()
#4 /wp-admin/edit-form-blocks.php(276): register_and_do_post_meta_boxes()
#5 /wp-admin/post-new.php(72): require('...')
#6 {main}
  thrown in /wp-content/plugins/smartcat-wpml/admin/SmartcatAdmin.php on line 75
See also: All tests for this plugin