Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/auto-translator-for-wpml-wpmlat/class.auto-translator-for-wpml.php+58
Undefined variable: message
Server metrics [RAM: ▼0.93MB] [CPU: ▼32.98ms] Passed 4 tests
This is a short check of server-side resources used by Auto Translator for WPML
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.12 ▼0.79 |
Dashboard /wp-admin | 3.01 ▼0.29 | 22.46 ▼25.11 |
Posts /wp-admin/edit.php | 3.01 ▼0.34 | 23.45 ▼25.16 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.87 | 24.28 ▼68.68 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 25.38 ▼12.97 |
Do auto translation /wp-admin/admin.php?page=wpmlat_execution | 3.01 | 29.61 |
WMPL Auto Translator /wp-admin/options-general.php?page=wpmlat_config | 3.01 | 22.98 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
wpmlat_use_translation_management |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Auto Translator for WPML
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲107 | 14.80 ▲0.42 | 1.72 ▲0.07 | 39.48 ▼4.34 |
Dashboard /wp-admin | 2,245 ▲53 | 5.80 ▲0.90 | 95.09 ▼17.73 | 39.19 ▼0.97 |
Posts /wp-admin/edit.php | 2,131 ▲45 | 2.14 ▲0.12 | 41.84 ▲6.61 | 37.48 ▲3.15 |
Add New Post /wp-admin/post-new.php | 1,574 ▲41 | 23.22 ▲0.20 | 672.18 ▼15.69 | 56.26 ▲6.64 |
Media Library /wp-admin/upload.php | 1,433 ▲48 | 4.32 ▲0.15 | 94.18 ▼25.19 | 41.49 ▼6.37 |
Do auto translation /wp-admin/admin.php?page=wpmlat_execution | 809 | 2.03 | 27.76 | 29.44 |
WMPL Auto Translator /wp-admin/options-general.php?page=wpmlat_config | 981 | 2.16 | 22.69 | 27.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/auto-translator-for-wpml-wpmlat/class.auto-translator-for-wpml-admin.php+123
Use of undefined constant WPML_PLUGIN_FOLDER - assumed 'WPML_PLUGIN_FOLDER' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 7 options
- wpmlat_use_translation_management
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpmlat_config
- > Warning in wp-content/plugins/auto-translator-for-wpml-wpmlat/class.auto-translator-for-wpml-admin.php+123
Use of undefined constant WPML_PLUGIN_FOLDER - assumed 'WPML_PLUGIN_FOLDER' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpmlat_config
- > Notice in wp-content/plugins/auto-translator-for-wpml-wpmlat/pages/admin/Execution.php+193
Undefined index: datapage
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpmlat_config
- > Warning in wp-content/plugins/auto-translator-for-wpml-wpmlat/class.auto-translator-for-wpml.php+160
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=wpmlat_execution
- > Notice in wp-content/plugins/auto-translator-for-wpml-wpmlat/pages/admin/Execution.php+64
Undefined index: finish
- 14 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpmlat_config
- > Warning in wp-content/plugins/auto-translator-for-wpml-wpmlat/pages/page-base.php+216
in_array() expects parameter 2 to be array, bool given
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/auto-translator-for-wpml-wpmlat/auto-translator-for-wpml.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPMLAutoTranslatorAdminPageBase' not found in wp-content/plugins/auto-translator-for-wpml-wpmlat/pages/admin/Execution.php:6
- > PHP Warning
Use of undefined constant WPMLAT__PLUGIN_DIR - assumed 'WPMLAT__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-translator-for-wpml-wpmlat/pages/page-base.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/auto-translator-for-wpml-wpmlat/views/admin/config.php:17
- > PHP Warning
require_once(WPMLAT__PLUGIN_DIRpages/pageI.php): failed to open stream: No such file or directory in wp-content/plugins/auto-translator-for-wpml-wpmlat/pages/page-base.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'WPMLAT__PLUGIN_DIRpages/pageI.php' (include_path='.:/usr/share/php') in wp-content/plugins/auto-translator-for-wpml-wpmlat/pages/page-base.php on line 2
- > PHP Fatal error
Uncaught Error: Interface 'racs\\wpmlat\\TranslationService\\TranslationService' not found in wp-content/plugins/auto-translator-for-wpml-wpmlat/TranslationService/GoogleTranslateFree/GoogleTranslateFree.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPMLAutoTranslatorAdminPageBase' not found in wp-content/plugins/auto-translator-for-wpml-wpmlat/pages/admin/Config.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/auto-translator-for-wpml-wpmlat/views/admin/execution.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: google, elementor, automatic, translation, wpml
auto-translator-for-wpml-wpmlat/auto-translator-for-wpml.php 85% from 13 tests
The principal PHP file in "Auto Translator for WPML" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("auto-translator-for-wpml-wpmlat.php" instead of "auto-translator-for-wpml.php")
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin764 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 204 | 447 | 695 |
JavaScript | 1 | 14 | 15 | 56 |
Markdown | 1 | 8 | 0 | 13 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 35 | 57.38% |
▷ Public methods | 53 | 86.89% |
▷ Protected methods | 2 | 3.28% |
▷ Private methods | 6 | 9.84% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin