Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼7.63ms] Passed 4 tests
This is a short check of server-side resources used by Translate WordPress with Google Languages Translator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 39.66 ▲1.27 |
Dashboard /wp-admin | 3.47 ▲0.12 | 42.60 ▼14.45 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 46.71 ▲1.37 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 81.60 ▼18.71 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.51 ▲4.06 |
Google Languages Translator /wp-admin/options-general.php?page=translate-wordpress-google-languages-translator | 3.36 | 47.81 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 19 new options
New WordPress options |
---|
db_upgraded |
glt-display-mode |
glt-languages-list |
theysaidso_admin_options |
widget_google_languages_translator_widget |
widget_recent-posts |
glt-align |
glt-multi-language |
glt-toolbar |
glt-inline-display-mode |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Translate WordPress with Google Languages Translator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲76 | 13.25 ▼1.17 | 1.76 ▼0.03 | 41.24 ▼0.11 |
Dashboard /wp-admin | 2,208 ▲20 | 5.88 ▲0.04 | 101.37 ▼0.86 | 40.77 ▲0.92 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.02 ▲0.02 | 38.40 ▼4.18 | 35.28 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.13 ▲4.88 | 608.47 ▼3.28 | 55.52 ▲7.02 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.25 ▲0.05 | 98.94 ▼1.59 | 42.70 ▼1.92 |
Google Languages Translator /wp-admin/options-general.php?page=translate-wordpress-google-languages-translator | 2,375 | 2.29 | 35.63 | 36.00 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_google_languages_translator_widget
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/translate-wp-with-google-languages-translator/uninstall.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/translate-wp-with-google-languages-translator/translate-wp-google-languages-translator.php:748
- > 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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
translate-wp-with-google-languages-translator/translate-wp-google-languages-translator.php 85% from 13 tests
"Translate WordPress with Google Languages Translator" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 167 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("translate-wp-with-google-languages-translator.php" instead of "translate-wp-google-languages-translator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,480 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 316 | 7 | 729 |
CSS | 2 | 164 | 0 | 565 |
JavaScript | 1 | 79 | 0 | 186 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 44 | 91.67% |
▷ Public methods | 20 | 41.67% |
▷ Protected methods | 28 | 58.33% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/flags.png | 32.73KB | 12.09KB | ▼ 63.06% |