Smartcat Translator for WPML 3.1.23

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

Summary

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

Memory usage: 66.67 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=0d69f421ee
Aspect after-activation
HTTP status 200
Load time 0.635 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.742 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.155 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.217 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.294 s0.284 s-0.010 s3.07 MiB3.14 MiB+ 70.34 KiB
/wp-admin/edit.php0.176 s0.204 s+0.028 s3.1 MiB3.17 MiB+ 69.35 KiB
/wp-admin/upload.php0.655 s0.375 s-0.280 s3.02 MiB3.07 MiB+ 53.11 KiB
/wp-admin/options-writing.php0.150 s0.172 s+0.022 s3.01 MiB3.05 MiB+ 42.15 KiB
/wp-admin/media-new.php0.241 s0.255 s+0.014 s2.99 MiB3.06 MiB+ 69.56 KiB
/wp-admin/edit-tags.php?taxonomy=category0.172 s0.202 s+0.030 s3.01 MiB3.07 MiB+ 70.41 KiB
/wp-admin/options-discussion.php0.199 s0.246 s+0.047 s3 MiB3.05 MiB+ 55.88 KiB
/wp-admin/edit-comments.php0.182 s0.262 s+0.080 s3.03 MiB3.08 MiB+ 57.31 KiB
/0.336 s0.285 s-0.051 s2.97 MiB3.08 MiB+ 111.95 KiB
Average 0.267 s0.254 s-0.013 s3.02 MiB3.09 MiB+ 66.67 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,3521,420194
CSS8.6%1,077162
JavaScript8.1%1,023542
PO File0.7%91151
SVG0.1%1604
Total 12,559 1,505 203

PHP Code Analysis | More results »

Lines of code 10,142
Total complexity 1,457
Median class complexity 3.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 59 lines

[11-Apr-2023 09:28:03 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
[11-Apr-2023 09:28:03 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
[11-Apr-2023 09:28:03 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
[11-Apr-2023 09:28:06 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/functions.php(128): Smartcat\Includes\Services\Metadata\MetadataService->__construct()
#3 /wp-content/plugins/smartcat-wpml/includes/Tables/SmartcatTranslationRequestsTable.php(137): sc_translation_request_service()
#4 /wp-content/plugins/smartcat-wpml/includes/Views/Dashboard.php(21): Smartcat\Includes\Tables\SmartcatTranslationRequestsTable->prepare_items()
#5 /wp-content/plugins/smartcat-wpml/admin/SmartcatAdmin.php(150): Smartcat\Includes\Views\Dashboard->display()
#6 /wp-includes/class-wp-hook.php(308): SmartcatAdmin->displayTranslationRequestsDashboard()
#7 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#8 /wp-includes/plugin.php(517): WP_Hook->do_action()
#9 /wp-admin/admin.php(259): do_action()
#10 {main}
  thrown in /wp-content/plugins/smartcat-wpml/includes/Services/Metadata/CustomField.php on line 13
[11-Apr-2023 09:28:08 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
[11-Apr-2023 09:28:10 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