Smartcat Translator for WPML 3.1.27

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
3Database errors
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 59.09 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=ad58ac9b44
Aspect after-activation
HTTP status 200
Load time 0.433 s
Memory usage 3.11 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.793 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.166 s
Memory usage 3.14 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.252 s
Memory usage 3.08 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.415 s0.341 s-0.074 s3.07 MiB3.14 MiB+ 68.04 KiB
/wp-admin/edit.php0.236 s0.222 s-0.014 s3.1 MiB3.17 MiB+ 65.74 KiB
/wp-admin/upload.php0.961 s0.409 s-0.552 s3.02 MiB3.07 MiB+ 52.45 KiB
/wp-admin/options-writing.php0.168 s0.172 s+0.004 s3.01 MiB3.05 MiB+ 42.15 KiB
/wp-admin/media-new.php0.257 s0.263 s+0.006 s2.99 MiB3.06 MiB+ 69.56 KiB
/wp-admin/edit-tags.php?taxonomy=category0.196 s0.205 s+0.009 s3.01 MiB3.07 MiB+ 70.41 KiB
/wp-admin/options-discussion.php0.270 s0.229 s-0.041 s3 MiB3.05 MiB+ 55.88 KiB
/wp-admin/edit-comments.php0.266 s0.267 s+0.001 s3.03 MiB3.08 MiB+ 57.31 KiB
/0.296 s0.230 s-0.066 s3.03 MiB3.08 MiB+ 50.27 KiB
Average 0.341 s0.260 s-0.081 s3.03 MiB3.09 MiB+ 59.09 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
CSS
JavaScript
Language % Lines of code Comment lines Files
PHP82.4%10,3611,421194
CSS8.6%1,077162
JavaScript8.1%1,023542
PO File0.7%91151
SVG0.1%1604
Total 12,568 1,506 203

PHP Code Analysis | More results »

Lines of code 10,151
Total complexity 1,459
Median class complexity 4.0
Median method complexity 1.0
Most complex class Smartcat\Includes\Services\App\TranslationRequestService
Most complex function smartcat_force_balance_tags()
Classes 171
Methods 877
Functions 24

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 3

PHP Error Log 45 lines

[26-Apr-2023 09:07:48 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
[26-Apr-2023 09:07:48 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
[26-Apr-2023 09:07:48 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
[26-Apr-2023 09:07:53 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
[26-Apr-2023 09:07:55 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