Smartcat Translator for WPML 3.1.16

Does Smartcat Integration for WPML work with WordPress 6.1.1 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: 62.2 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.1.1
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=c8cdc822c7
Aspect after-activation
HTTP status 200
Load time 0.537 s
Memory usage 3.08 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.853 s
Memory usage 3.22 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.184 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.251 s
Memory usage 3.05 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.311 s0.335 s+0.024 s3.05 MiB3.11 MiB+ 66.61 KiB
/wp-admin/edit.php0.206 s0.263 s+0.057 s3.07 MiB3.14 MiB+ 65.62 KiB
/wp-admin/upload.php0.940 s0.453 s-0.487 s2.99 MiB3.04 MiB+ 49.01 KiB
/wp-admin/options-writing.php0.198 s0.195 s-0.003 s2.99 MiB3.03 MiB+ 38.41 KiB
/wp-admin/media-new.php0.303 s0.316 s+0.013 s2.97 MiB3.03 MiB+ 62.08 KiB
/wp-admin/edit-tags.php?taxonomy=category0.213 s0.253 s+0.040 s2.98 MiB3.05 MiB+ 67.3 KiB
/wp-admin/options-discussion.php0.239 s0.239 s+0.000 s2.98 MiB3.03 MiB+ 52.26 KiB
/wp-admin/edit-comments.php0.239 s0.253 s+0.014 s3 MiB3.05 MiB+ 49.91 KiB
/0.428 s0.202 s-0.226 s2.94 MiB3.05 MiB+ 108.59 KiB
Average 0.342 s0.279 s-0.063 s3 MiB3.06 MiB+ 62.2 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
Language % Lines of code Comment lines Files
PHP84.5%10,1871,398194
CSS7.9%957142
JavaScript6.7%808502
PO File0.8%91151
SVG0.1%1604
Total 12,059 1,477 203

PHP Code Analysis | More results »

Lines of code 9,979
Total complexity 1,441
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 865
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

[29-Mar-2023 12:06:55 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
[29-Mar-2023 12:06:55 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
[29-Mar-2023 12:06:55 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
[29-Mar-2023 12:06:58 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
[29-Mar-2023 12:07:00 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(2884): rest_do_request()
#13 [internal function]: rest_preload_api_request()
#14 /wp-includes/block-editor.php(638): 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
[29-Mar-2023 12:07:02 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(2884): rest_do_request()
#13 [internal function]: rest_preload_api_request()
#14 /wp-includes/block-editor.php(638): 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