Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▲243.76ms] 50% from 4 tests
Server-side resources used by Translate WordPress Websites with TextUnited
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 535.73ms on /wp-admin/admin.php?page=text-united-translation/mainsettings.php)
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 243.76ms on /wp-admin/admin.php?page=text-united-translation/faq.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 304.97 ▲263.70 |
Dashboard /wp-admin | 3.49 ▲0.15 | 326.49 ▲264.73 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 413.90 ▲360.52 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 320.12 ▲210.02 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 273.55 ▲236.59 |
Settings /wp-admin/admin.php?page=text-united-translation/importer.php | 3.47 | 822.69 |
Text United /wp-admin/admin.php?page=text-united-translation/mainsettings.php | 3.39 | 535.73 |
How to use? /wp-admin/admin.php?page=text-united-translation/faq.php | 3.39 | 353.08 |
Server storage [IO: ▲16.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 1,235 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
TUcustomTypes |
db_upgraded |
TUlanguagesAdd |
can_compress_scripts |
widget_theysaidso_widget |
TUprojectInfo |
widget_recent-comments |
TUtoken |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Translate WordPress Websites with TextUnited
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲171 | 13.92 ▼0.43 | 7.34 ▲5.67 | 37.92 ▼2.53 |
Dashboard /wp-admin | 2,245 ▲71 | 5.15 ▼0.40 | 96.28 ▼7.32 | 37.58 ▼13.59 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 2.18 ▲0.23 | 37.15 ▼0.25 | 36.88 ▲3.62 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 22.08 ▼1.41 | 689.66 ▲5.76 | 35.98 ▼20.10 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.70 ▲0.51 | 101.78 ▼7.76 | 40.76 ▼6.32 |
Settings /wp-admin/admin.php?page=text-united-translation/importer.php | 929 | 2.09 | 27.61 | 60.83 |
Text United /wp-admin/admin.php?page=text-united-translation/mainsettings.php | 950 | 2.09 | 26.42 | 65.87 |
How to use? /wp-admin/admin.php?page=text-united-translation/faq.php | 1,045 | 2.14 | 26.87 | 37.47 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 11 options
- TUtoken
- TUcustomTypes
- widget_theysaidso_widget
- TUlanguagesAdd
- db_upgraded
- can_compress_scripts
- TUdefaultLanguage
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=text-united-translation/faq.php
- > Notice in wp-content/plugins/text-united-translation/admin/partials/faq-page.php+90
Undefined variable: active4
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/text-united-translation/public/partials/text-united-translation-public-display.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/text-united-translation/admin/partials/faq-page.php:88
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/text-united-translation/admin/partials/submunu-page.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/text-united-translation/admin/partials/text-united-translation-admin-display.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: language selector, localization, translation, translate, multilingual...
text-united-translation/text-united-translation.php 92% from 13 tests
The entry point to "Translate WordPress Websites with TextUnited" version 1.0.36 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
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
Success! There were no dangerous files found in this plugin70,998 lines of code in 636 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 544 | 3 | 2 | 55,512 |
JavaScript | 71 | 2,614 | 822 | 9,754 |
PHP | 14 | 1,024 | 613 | 3,097 |
CSS | 7 | 148 | 14 | 2,635 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 66.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 225.00 |
Average method complexity | 6.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 3 | 3.85% |
▷ Public methods | 73 | 93.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.41% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
13 PNG files occupy 0.27MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/img/media2.png | 3.96KB | 2.08KB | ▼ 47.46% |
assets/icon-128x128.png | 5.20KB | 4.06KB | ▼ 21.79% |
admin/img/text_united_logo.png | 6.62KB | 3.79KB | ▼ 42.67% |
public/img/logo-icon.png | 1.24KB | 1.54KB | 0.00% |
admin/partials/img/logo-icon.png | 1.24KB | 1.54KB | 0.00% |