Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲4.83MB] [CPU: ▼164.56ms] 75% from 4 tests
Server-side resources used by WordPress Google Translate
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,630.55ms on /wp-admin/admin.php?page=wpgt-google-translate)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.35 ▲5.51 | 45.25 ▲22.70 |
Dashboard /wp-admin | 8.36 ▲5.30 | 50.06 ▲13.57 |
Posts /wp-admin/edit.php | 8.37 ▲5.25 | 50.48 ▲17.14 |
Add New Post /wp-admin/post-new.php | 8.87 ▲3.42 | 87.85 ▼708.16 |
Media Library /wp-admin/upload.php | 8.36 ▲5.36 | 43.09 ▲19.23 |
WordPress Google Translate /wp-admin/admin.php?page=wpgt-google-translate | 8.36 | 1,630.55 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 8.36 | 40.08 |
Server storage [IO: ▲3.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 181 new files
Database: no new tables, 5 new options
New WordPress options |
---|
widget_wpgt_google_translate |
fs_gdpr |
fs_accounts |
fs_active_plugins |
fs_debug_mode |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Google Translate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,760 ▲159 | 15.70 ▲0.13 | 5.74 ▲0.73 | 73.39 ▼0.97 |
Dashboard /wp-admin | 2,974 ▲82 | 6.10 ▼0.04 | 115.66 ▼22.71 | 183.34 ▲6.34 |
Posts /wp-admin/edit.php | 2,785 ▲45 | 3.24 ▲0.02 | 62.99 ▼1.55 | 152.31 ▲10.90 |
Add New Post /wp-admin/post-new.php | 3,706 ▼217 | 17.94 ▼1.51 | 460.14 ▲11.12 | 154.58 ▼4.47 |
Media Library /wp-admin/upload.php | 1,795 ▲43 | 5.54 ▲0.04 | 150.95 ▲4.76 | 198.14 ▲16.13 |
WordPress Google Translate /wp-admin/admin.php?page=wpgt-google-translate | 1,360 | 2.44 | 54.86 | 179.62 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 1,466 | 2.44 | 53.41 | 111.05 |
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
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wpgt-google-translate/freemius/includes/class-freemius.php+8218
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 5 options in the database
- fs_active_plugins
- widget_wpgt_google_translate
- fs_gdpr
- fs_accounts
- fs_debug_mode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wpgt-google-translate/freemius/templates/ajax-loader.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpgt-google-translate/includes/class-wpgt-widget.php:15
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/wpgt-google-translate/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wpgt-google-translate/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wpgt-google-translate/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/wpgt-google-translate/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wpgt-google-translate/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wpgt-google-translate/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wpgt-google-translate/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wpgt-google-translate/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: switch, google-translate, website, translator, language
wpgt-google-translate/wpgt-google-translate.php Passed 13 tests
The primary PHP file in "WordPress Google Translate" version 1.3 is used by WordPress to initiate all plugin functionality
77 characters long description:
A light weight plugin to translate your WordPress website to other languages.
Code Analysis 97% from 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 plugin45,396 lines of code in 140 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 109 | 7,098 | 15,943 | 29,697 |
PO File | 13 | 6,965 | 8,462 | 15,263 |
JavaScript | 4 | 35 | 59 | 202 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 1 | 0 | 0 | 27 |
CSS | 11 | 0 | 0 | 14 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,772)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 85.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,772.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 1,125 | |
▷ Static methods | 173 | 15.38% |
▷ Public methods | 785 | 69.78% |
▷ Protected methods | 15 | 1.33% |
▷ Private methods | 325 | 28.89% |
Functions | 97 | |
▷ Named functions | 97 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 123 | |
▷ Global constants | 98 | 79.67% |
▷ Class constants | 25 | 20.33% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |