Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.63MB] [CPU: ▲0.73ms] Passed 4 tests
This is a short check of server-side resources used by Prisna GWT - Google Website Translator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 45.30 ▲6.30 |
Dashboard /wp-admin | 3.93 ▲0.63 | 49.24 ▼0.33 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 49.81 ▲0.92 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.63 | 90.18 ▼0.69 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 38.56 ▲3.02 |
Prisna GWT /wp-admin/plugins.php?page=prisna-google-website-translator-settings | 6.25 | 61.07 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 199 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_prisna-google-website-translator |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Prisna GWT - Google Website Translator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.31 ▼0.88 | 1.92 ▲0.24 | 45.89 ▲6.70 |
Dashboard /wp-admin | 2,211 ▲23 | 5.83 ▲0.92 | 99.67 ▼18.22 | 42.24 ▲0.84 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▲0.04 | 34.00 ▼5.69 | 34.78 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.39 ▲5.67 | 651.12 ▲5.95 | 52.43 ▼3.87 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▲0.01 | 98.19 ▼3.13 | 41.80 ▼1.94 |
Prisna GWT /wp-admin/plugins.php?page=prisna-google-website-translator-settings | 14,122 | 3.21 | 79.68 | 231.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_prisna-google-website-translator
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'PrisnaGWTItem' not found in wp-content/plugins/google-website-translator/classes/admin.class.php:157
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/google-website-translator/uninstall.php:4
- > PHP Fatal error
Uncaught Error: Class 'PrisnaGWTItem' not found in wp-content/plugins/google-website-translator/classes/main.class.php:100
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/google-website-translator/google-website-translator.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/google-website-translator/classes/common.class.php:886
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Assamese.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Bhojpuri.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Dogri.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Ilocano.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Konkani.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Maithili.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Meiteilon.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Mizo.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Odia.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Sanskrit.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Sepedi.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Sorani.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Tatar.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Tsonga.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=prisna-google-website-translator-settings
- > Network (severe)
wp-content/plugins/google-website-translator/images/Uyghur.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
google-website-translator/google-website-translator.php 85% from 13 tests
The main file in "Prisna GWT - Google Website Translator" v. 1.4.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 176 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
There were no executable files found in this plugin7,347 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 1,295 | 20 | 2,909 |
SVG | 2 | 3 | 1 | 2,082 |
JavaScript | 2 | 285 | 14 | 1,082 |
CSS | 1 | 204 | 1 | 1,025 |
PO File | 1 | 87 | 87 | 249 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 216 | |
▷ Static methods | 99 | 45.83% |
▷ Public methods | 154 | 71.30% |
▷ Protected methods | 62 | 28.70% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 16 | |
▷ Global constants | 9 | 56.25% |
▷ Class constants | 7 | 43.75% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
27 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pad.png | 2.62KB | 7.54KB | 0.00% |
images/style_horizontal.png | 6.31KB | 3.00KB | ▼ 52.46% |
images/w9xWz.png | 3.44KB | 0.98KB | ▼ 71.43% |
images/banner.png | 14.12KB | 4.89KB | ▼ 65.34% |
images/logo.png | 4.84KB | 2.12KB | ▼ 56.22% |