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.12MB] [CPU: ▼1.36ms] Passed 4 tests
Analyzing server-side resources used by Automatic Translate Addon For TranslatePress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.46 ▲1.32 |
Dashboard /wp-admin | 3.44 ▲0.13 | 45.05 ▼1.35 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 45.83 ▼1.45 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 80.52 ▼3.97 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 38.29 ▲4.37 |
TranslatePress - Auto Translate Addon /wp-admin/options-general.php?page=translatepress-tpap-register | 3.33 | 31.47 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 10 new options
New WordPress options |
---|
tpa-ratingDiv |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
tpa-v |
tpa-type |
tpa-installDate |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Automatic Translate Addon For TranslatePress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.18 ▼1.50 | 1.65 ▼0.25 | 39.63 ▼4.51 |
Dashboard /wp-admin | 2,222 ▲30 | 4.93 ▲0.05 | 111.82 ▲5.76 | 40.25 ▼2.47 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.05 ▲0.02 | 37.69 ▼4.76 | 34.17 ▼2.23 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 17.54 ▼5.50 | 682.77 ▲12.53 | 50.74 ▼13.23 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.18 ▲0.02 | 110.87 ▲2.35 | 46.64 ▼1.93 |
TranslatePress - Auto Translate Addon /wp-admin/options-general.php?page=translatepress-tpap-register | 971 | 2.01 | 23.95 | 83.03 |
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 detected upon uninstall: 10 options
- widget_theysaidso_widget
- widget_recent-comments
- tpa-ratingDiv
- can_compress_scripts
- theysaidso_admin_options
- tpa-installDate
- db_upgraded
- tpa-v
- widget_recent-posts
- tpa-type
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
Even though no errors were found, this is by no means 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 fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant TPA_VERSION - assumed 'TPA_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/automatic-translate-addon-for-translatepress/admin/feedback/admin-feedback-form.php on line 166
- > PHP Fatal error
Uncaught Error: Call to undefined function TPA\\feedback\\plugin_dir_url() in wp-content/plugins/automatic-translate-addon-for-translatepress/admin/feedback/admin-feedback-form.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatic-translate-addon-for-translatepress/admin/tpap-register/tpap-admin-menu.php:9
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 83% 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
Attributes that require attention:
- Screenshots: Please describe screenshot #5 in automatic-translate-addon-for-translatepress/assets to your readme.txt
automatic-translate-addon-for-translatepress/automatic-translate-addon-for-translatepress.php 69% from 13 tests
The main PHP script in "Automatic Translate Addon For TranslatePress" version 1.0.3 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
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
Good job! No executable or dangerous file extensions detected2,358 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 10 | 23 | 878 |
JavaScript | 3 | 26 | 62 | 870 |
PHP | 4 | 40 | 84 | 610 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 14.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 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 | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/coolplugins-logo.png | 8.40KB | 3.14KB | ▼ 62.61% |
assets/images/powered-by-yandex.png | 1.83KB | 1.87KB | 0.00% |
assets/images/tpa-icon.png | 48.51KB | 4.74KB | ▼ 90.22% |
assets/images/powered-by-google.png | 2.19KB | 2.21KB | 0.00% |