Benchmarks
Plugin footprint 83% 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.46MB] [CPU: ▲4.73ms] Passed 4 tests
This is a short check of server-side resources used by Translate WordPress - Google Language Translator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.45 | 47.13 ▲4.72 |
Dashboard /wp-admin | 3.76 ▲0.46 | 58.69 ▲8.64 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 55.63 ▲6.81 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.46 | 100.52 ▲8.00 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 39.69 ▼0.62 |
Google Language Translator /wp-admin/options-general.php?page=google_language_translator | 3.68 | 53.29 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 39 new options
New WordPress options |
---|
googlelanguagetranslator_analytics_id |
db_upgraded |
googlelanguagetranslator_flags |
googlelanguagetranslator_language |
googlelanguagetranslator_showbranding |
glt_language_switcher_bg_color |
glt_language_switcher_text_color |
googlelanguagetranslator_url_translation_active |
can_compress_scripts |
glt_floating_widget_text_color |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Translate WordPress - Google Language Translator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,411 ▲640 | 15.39 ▲1.01 | 60.68 ▲58.58 | 52.90 ▲8.14 |
Dashboard /wp-admin | 2,313 ▲125 | 5.88 ▼0.15 | 102.67 ▼13.63 | 44.74 ▲4.28 |
Posts /wp-admin/edit.php | 2,195 ▲103 | 2.11 ▲0.05 | 39.76 ▼2.16 | 39.51 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,583 ▲50 | 23.28 ▲0.29 | 689.21 ▲13.06 | 55.59 ▼3.78 |
Media Library /wp-admin/upload.php | 1,492 ▲104 | 4.24 ▲0.00 | 100.70 ▼51.17 | 45.31 ▼9.75 |
Google Language Translator /wp-admin/options-general.php?page=google_language_translator | 3,705 | 7.72 | 220.23 | 71.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 39 options
- googlelanguagetranslator_analytics
- googlelanguagetranslator_multilanguage
- theysaidso_admin_options
- googlelanguagetranslator_url_structure
- googlelanguagetranslator_flags_order
- glt_language_switcher_text_color
- googlelanguagetranslator_translatebox
- googlelanguagetranslator_display
- googlelanguagetranslator_flags
- googlelanguagetranslator_active
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/google-language-translator/google-language-translator.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/google-language-translator/css/style.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/google-language-translator/widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: translation, translator, multi language, language, translate...
google-language-translator/google-language-translator.php 85% from 13 tests
The main PHP script in "Translate WordPress - Google Language Translator" version 6.0.19 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 310 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin6,264 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 95 | 8 | 3,457 |
PHP | 5 | 527 | 216 | 2,401 |
JavaScript | 2 | 60 | 25 | 370 |
SVG | 1 | 0 | 0 | 36 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 126.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 321.00 |
Average method complexity | 6.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 72.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 65 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flags.png | 53.71KB | 17.76KB | ▼ 66.93% |
images/flags20.png | 50.31KB | 15.97KB | ▼ 68.26% |
images/flags18.png | 41.07KB | 12.96KB | ▼ 68.45% |
images/flags16.png | 36.48KB | 11.07KB | ▼ 69.65% |
images/flags22.png | 53.14KB | 17.07KB | ▼ 67.89% |