Smartcat Translator for WPML 3.1.30

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

Summary

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

Memory usage: 67.49 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
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=a951ed0178
Aspect after-activation
HTTP status 200
Load time 0.807 s
Memory usage 3.12 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 0.858 s
Memory usage 3.25 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.205 s
Memory usage 3.15 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.262 s
Memory usage 3.09 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.748 s0.333 s-0.415 s3.07 MiB3.15 MiB+ 78.13 KiB
/wp-admin/edit.php0.230 s0.264 s+0.034 s3.1 MiB3.17 MiB+ 76.8 KiB
/wp-admin/upload.php0.586 s0.461 s-0.125 s3.02 MiB3.08 MiB+ 60.8 KiB
/wp-admin/options-writing.php0.181 s0.276 s+0.095 s3.01 MiB3.06 MiB+ 49.84 KiB
/wp-admin/media-new.php0.372 s0.303 s-0.069 s2.99 MiB3.07 MiB+ 77.26 KiB
/wp-admin/edit-tags.php?taxonomy=category0.199 s0.281 s+0.082 s3.01 MiB3.08 MiB+ 78.11 KiB
/wp-admin/options-discussion.php0.221 s0.321 s+0.100 s3 MiB3.06 MiB+ 63.58 KiB
/wp-admin/edit-comments.php0.220 s0.277 s+0.057 s3.03 MiB3.09 MiB+ 65.01 KiB
/0.329 s0.313 s-0.016 s3.03 MiB3.09 MiB+ 57.93 KiB
Average 0.343 s0.314 s-0.029 s3.03 MiB3.09 MiB+ 67.49 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
PHP82.2%11,1521,569198
JavaScript8.8%1,199572
CSS8.1%1,105162
PO File0.7%91151
SVG0.1%1604
Total 13,563 1,657 207

PHP Code Analysis | More results »

Lines of code 10,940
Total complexity 1,594
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 938
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 47 lines

[10-May-2023 09:27:08 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
[10-May-2023 09:27:08 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
[10-May-2023 09:27:08 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
[10-May-2023 09:27:08 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
[10-May-2023 09:27:08 UTC] WordPress database error Table 'wordpress.wp_smartcat_events' doesn't exist for query SHOW FULL COLUMNS FROM `wp_smartcat_events` 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\SmartcatWpml->registerAdminActions, Smartcat\Includes\Controllers\AppController->__construct, Smartcat\Includes\Controllers\AppController->initTranslationRequest, Smartcat\Includes\Services\Tools\Logger->error, Smartcat\Includes\Services\Tools\Logger->addRow
[10-May-2023 09:27:14 UTC] PHP Fatal error:  Uncaught Error: Class "WPML_Custom_Field_Setting_Factory" not found in /wp-content/plugins/smartcat-wpml/includes/Services/Metadata/CustomField.php:13
Stack trace:
#0 /wp-content/plugins/smartcat-wpml/includes/Services/Metadata/MetadataDatabaseService.php(16): Smartcat\Includes\Services\Metadata\CustomField->__construct()
#1 /wp-content/plugins/smartcat-wpml/includes/Services/Metadata/MetadataService.php(15): Smartcat\Includes\Services\Metadata\MetadataDatabaseService->__construct()
#2 /wp-content/plugins/smartcat-wpml/includes/Controllers/PostsController.php(65): Smartcat\Includes\Services\Metadata\MetadataService->__construct()
#3 /wp-content/plugins/smartcat-wpml/includes/Services/Plugin/Router.php(16): Smartcat\Includes\Controllers\PostsController->__construct()
#4 /wp-content/plugins/smartcat-wpml/routes.php(15): Smartcat\Includes\Services\Plugin\Router->route()
#5 /wp-content/plugins/smartcat-wpml/includes/Services/Plugin/Router.php(9): require_once('...')
#6 /wp-content/plugins/smartcat-wpml/public/SmartcatPublic.php(17): Smartcat\Includes\Services\Plugin\Router->registerRoutes()
#7 /wp-includes/class-wp-hook.php(308): Smartcat\Publicly\SmartcatPublic->routes()
#8 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#9 /wp-includes/plugin.php(517): WP_Hook->do_action()
#10 /wp-includes/rest-api.php(577): do_action()
#11 /wp-includes/rest-api.php(535): rest_get_server()
#12 /wp-includes/rest-api.php(2889): rest_do_request()
#13 [internal function]: rest_preload_api_request()
#14 /wp-includes/block-editor.php(634): array_reduce()
#15 /wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload()
#16 /wp-admin/post-new.php(72): require('...')
#17 {main}
  thrown in /wp-content/plugins/smartcat-wpml/includes/Services/Metadata/CustomField.php on line 13
[10-May-2023 09:27:16 UTC] PHP Fatal error:  Uncaught Error: Class "WPML_Custom_Field_Setting_Factory" not found in /wp-content/plugins/smartcat-wpml/includes/Services/Metadata/CustomField.php:13
Stack trace:
#0 /wp-content/plugins/smartcat-wpml/includes/Services/Metadata/MetadataDatabaseService.php(16): Smartcat\Includes\Services\Metadata\CustomField->__construct()
#1 /wp-content/plugins/smartcat-wpml/includes/Services/Metadata/MetadataService.php(15): Smartcat\Includes\Services\Metadata\MetadataDatabaseService->__construct()
#2 /wp-content/plugins/smartcat-wpml/includes/Controllers/PostsController.php(65): Smartcat\Includes\Services\Metadata\MetadataService->__construct()
#3 /wp-content/plugins/smartcat-wpml/includes/Services/Plugin/Router.php(16): Smartcat\Includes\Controllers\PostsController->__construct()
#4 /wp-content/plugins/smartcat-wpml/routes.php(15): Smartcat\Includes\Services\Plugin\Router->route()
#5 /wp-content/plugins/smartcat-wpml/includes/Services/Plugin/Router.php(9): require_once('...')
#6 /wp-content/plugins/smartcat-wpml/public/SmartcatPublic.php(17): Smartcat\Includes\Services\Plugin\Router->registerRoutes()
#7 /wp-includes/class-wp-hook.php(308): Smartcat\Publicly\SmartcatPublic->routes()
#8 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#9 /wp-includes/plugin.php(517): WP_Hook->do_action()
#10 /wp-includes/rest-api.php(577): do_action()
#11 /wp-includes/rest-api.php(535): rest_get_server()
#12 /wp-includes/rest-api.php(2889): rest_do_request()
#13 [internal function]: rest_preload_api_request()
#14 /wp-includes/block-editor.php(634): array_reduce()
#15 /wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload()
#16 /wp-admin/post-new.php(72): require('...')
#17 {main}
  thrown in /wp-content/plugins/smartcat-wpml/includes/Services/Metadata/CustomField.php on line 13
See also: All tests for this plugin