Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.65MB] [CPU: ▼12.31ms] Passed 4 tests
This is a short check of server-side resources used by Automatic Translation
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 365.84 ▲324.75 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.82 ▼6.33 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 49.08 ▲1.05 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.74 | 37.52 ▼63.45 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 57.06 ▲19.48 |
Server storage [IO: ▲5.66MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- Illegal file modification found: 1 file (1.27KB) outside of "wp-content/plugins/automatic-translation/" and "wp-content/uploads/"
- (new file) sitemap.xml
Filesystem: 197 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_translator_urls |
New WordPress options |
---|
translator_install_time |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
translator_version |
Browser metrics Passed 4 tests
Automatic Translation: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,633 ▼113 | 14.13 ▼0.49 | 1.27 ▼0.49 | 36.08 ▼7.11 |
Dashboard /wp-admin | 2,226 ▲35 | 5.83 ▲0.91 | 103.06 ▼2.23 | 71.50 ▲23.90 |
Posts /wp-admin/edit.php | 2,109 ▲23 | 2.00 ▼0.03 | 36.05 ▼1.21 | 34.08 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,682 ▲163 | 20.40 ▼2.71 | 649.03 ▼17.33 | 63.22 ▲2.69 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.23 ▲0.01 | 102.05 ▼14.12 | 75.05 ▲26.14 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_translator_urls
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- translator_version
- widget_recent-posts
- widget_theysaidso_widget
- translator_install_time
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/automatic-translation/src/admin/menu.php
- > /wp-content/plugins/automatic-translation/vendor/translator/script-php/errors.php
- > /wp-content/plugins/automatic-translation/src/admin/scripts.php
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/automatic-translation/script.php:17
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Imposter\\ConfigCollectionInterface' not found in wp-content/plugins/automatic-translation/vendor/typisttech/imposter/src/ConfigCollection.php:7
- > PHP Fatal error
Uncaught Error: Class 'TypistTech\\Imposter\\Config' not found in wp-content/plugins/automatic-translation/vendor/typisttech/imposter/src/ProjectConfig.php:9
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Imposter\\ImposterInterface' not found in wp-content/plugins/automatic-translation/vendor/typisttech/imposter/src/Imposter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Imposter\\ConfigInterface' not found in wp-content/plugins/automatic-translation/vendor/typisttech/imposter/src/ProjectConfigInterface.php:7
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Imposter\\ConfigInterface' not found in wp-content/plugins/automatic-translation/vendor/typisttech/imposter/src/Config.php:7
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Imposter\\FilesystemInterface' not found in wp-content/plugins/automatic-translation/vendor/typisttech/imposter/src/Filesystem.php:12
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/automatic-translation/src/woocommerce.php on line 13
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/automatic-translation/vendor/typisttech/imposter-plugin/src/ImposterPlugin.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/automatic-translation/src/woocommerce.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: wp translator, translator, wp automatic translator, automatic translation, translation...
automatic-translation/translator.php 85% from 13 tests
The main PHP file in "Automatic Translation" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: It is recommended to name the main PHP file as the plugin slug ("automatic-translation.php" instead of "translator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin26,976 lines of code in 156 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 97 | 2,074 | 1,919 | 15,459 |
SVG | 32 | 0 | 0 | 9,581 |
JSON | 9 | 0 | 0 | 899 |
Markdown | 5 | 208 | 0 | 417 |
JavaScript | 5 | 9 | 18 | 290 |
CSS | 6 | 16 | 16 | 197 |
XML | 1 | 42 | 80 | 126 |
HTML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 15.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 46 | 100.00% |
▷ Final classes | 3 | 6.52% |
Methods | 344 | |
▷ Static methods | 118 | 34.30% |
▷ Public methods | 300 | 87.21% |
▷ Protected methods | 12 | 3.49% |
▷ Private methods | 32 | 9.30% |
Functions | 105 | |
▷ Named functions | 72 | 68.57% |
▷ Anonymous functions | 33 | 31.43% |
Constants | 59 | |
▷ Global constants | 55 | 93.22% |
▷ Class constants | 4 | 6.78% |
▷ Public constants | 3 | 75.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/translator-logo.png | 0.57KB | 0.73KB | 0.00% |