Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.33ms] Passed 4 tests
A check of server-side resources used by WP Translate - WordPress Translation Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.10 ▼0.63 |
Dashboard /wp-admin | 3.38 ▲0.07 | 49.13 ▲0.10 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.37 ▼0.99 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 88.22 ▼23.81 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.34 ▲1.24 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
wpTranslateOptions |
theysaidso_admin_options |
widget_recent-comments |
widget_wp_translation_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Translate - WordPress Translation Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,959 ▲2,213 | 16.71 ▲2.52 | 74.12 ▲72.05 | 67.94 ▲23.10 |
Dashboard /wp-admin | 2,227 ▲44 | 4.91 ▼0.04 | 113.02 ▲6.09 | 42.97 ▼0.97 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.14 ▲0.14 | 34.75 ▼1.87 | 34.70 ▲2.25 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.29 ▲5.85 | 659.00 ▼37.01 | 59.61 ▲4.29 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.20 ▲0.02 | 99.35 ▼10.81 | 41.60 ▼6.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- wpTranslateOptions
- widget_recent-comments
- can_compress_scripts
- widget_wp_translation_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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)
Good news, no errors were detected
SRP 0% 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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-translate/admin/overview.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-translate/wp-translate.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-translate/classes/widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 14 tag instead of maximum 10
wp-translate/wp-translate.php Passed 13 tests
The entry point to "WP Translate - WordPress Translation Plugin" version 5.3.0 is a PHP file that has certain tags in its header comment area
116 characters long description:
Makes your website available to the world using the powerful Google Translate API to make your content multilingual.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,211 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 4 | 332 | 332 | 714 |
PHP | 3 | 56 | 16 | 450 |
CSS | 1 | 1 | 0 | 47 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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 |
admin/images/icon-256x256.png | 26.98KB | 9.37KB | ▼ 65.27% |