Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲1.91MB] [CPU: ▲21.61ms] Passed 4 tests
An overview of server-side resources used by Weglot Translate - Translate your WordPress website and go multilingual
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.31 ▲1.84 | 59.31 ▲23.49 |
Dashboard /wp-admin | 5.14 ▲1.83 | 64.03 ▲16.52 |
Posts /wp-admin/edit.php | 5.71 ▲2.35 | 191.34 ▲141.22 |
Add New Post /wp-admin/post-new.php | 8.10 ▲2.21 | 111.90 ▲25.45 |
Media Library /wp-admin/upload.php | 5.00 ▲1.77 | 54.65 ▲20.97 |
Server storage [IO: ▲2.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 407 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
weglot_version |
widget_weglot-translate |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Weglot Translate - Translate your WordPress website and go multilingual
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲145 | 14.32 ▼0.03 | 1.79 ▲0.10 | 39.96 ▲1.81 |
Dashboard /wp-admin | 2,283 ▲105 | 5.61 ▼0.10 | 102.08 ▼13.23 | 43.80 ▼0.34 |
Posts /wp-admin/edit.php | 2,250 ▲150 | 4.01 ▲2.02 | 78.59 ▲39.81 | 33.88 ▼0.59 |
Add New Post /wp-admin/post-new.php | 6,504 ▲4,969 | 27.23 ▲4.12 | 932.96 ▲289.52 | 40.46 ▼14.46 |
Media Library /wp-admin/upload.php | 1,494 ▲94 | 4.20 ▼0.04 | 96.28 ▼6.21 | 43.86 ▲1.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- weglot_version
- widget_recent-posts
- can_compress_scripts
- widget_weglot-translate
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/weglot/vendor/weglot/weglot-php/update_certs.php
- 50× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Weglot\\Client\\Api\\Exception\\AbstractException' not found in wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Client/Api/Exception/MissingRequiredParamException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Weglot\\Client\\Endpoint\\Endpoint' not found in wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Client/Endpoint/Status.php:11
- > PHP Fatal error
Uncaught Error: Class 'Weglot\\Parser\\Check\\Dom\\AbstractDomChecker' not found in wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Check/Dom/TdDataTitle.php:11
- > PHP Fatal error
Uncaught Error: Class 'Weglot\\Parser\\Check\\Dom\\AbstractDomChecker' not found in wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Check/Dom/LinkDataTooltip.php:11
- > PHP Fatal error
Uncaught Error: Class 'Weglot\\Parser\\ConfigProvider\\AbstractConfigProvider' not found in wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/ConfigProvider/ManualConfigProvider.php:9
- > PHP Fatal error
Uncaught Error: Class 'Weglot\\Parser\\Check\\Dom\\AbstractDomChecker' not found in wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Check/Dom/Text.php:12
- > PHP Fatal error
Uncaught Error: Class 'Weglot\\Parser\\Formatter\\AbstractFormatter' not found in wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Formatter/DomFormatter.php:38
- > PHP Fatal error
Uncaught Error: Class 'Weglot\\Parser\\Check\\Dom\\AbstractDomChecker' not found in wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Check/Dom/LinkHref.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Weglot\\Client\\Api\\Shared\\AbstractCollectionInterface' not found in wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Client/Api/Shared/AbstractCollection.php:14
- > PHP Fatal error
Uncaught Error: Class 'Weglot\\Client\\Api\\Shared\\AbstractCollection' not found in wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Client/Api/LanguageCollection.php:12
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Screenshots: Please describe screenshot #9 in weglot/assets to your readme.txt
weglot/weglot.php Passed 13 tests
The main PHP script in "Weglot Translate - Translate your WordPress website and go multilingual" version 4.2.2 is automatically included on every request by WordPress
105 characters long description:
Translate your website into multiple languages in minutes without doing any coding. Fully SEO compatible.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
It is important to fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/weglot/vendor/weglot/weglot-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 258 | 3,440 | 6,400 | 16,068 |
JSON | 22 | 1 | 0 | 4,306 |
PO File | 8 | 1,559 | 1,768 | 3,934 |
Markdown | 12 | 414 | 0 | 1,390 |
Sass | 8 | 136 | 0 | 1,384 |
JavaScript | 35 | 216 | 172 | 1,088 |
CSS | 7 | 3 | 33 | 620 |
YAML | 2 | 2 | 0 | 28 |
SVG | 1 | 0 | 1 | 12 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 8.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 208.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 61 | |
Interfaces | 10 | |
Traits | 5 | |
Classes | 207 | |
▷ Abstract classes | 23 | 11.11% |
▷ Concrete classes | 184 | 88.89% |
▷ Final classes | 1 | 0.54% |
Methods | 847 | |
▷ Static methods | 86 | 10.15% |
▷ Public methods | 776 | 91.62% |
▷ Protected methods | 58 | 6.85% |
▷ Private methods | 13 | 1.53% |
Functions | 77 | |
▷ Named functions | 50 | 64.94% |
▷ Anonymous functions | 27 | 35.06% |
Constants | 259 | |
▷ Global constants | 43 | 16.60% |
▷ Class constants | 216 | 83.40% |
▷ Public constants | 216 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
24 compressed PNG files occupy 0.90MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
blocks/weglot-widget/build/images/circular_flag.2a0fa173.png | 82.09KB | 83.03KB | 0.00% |
dist/images/rect_bright.png | 33.80KB | 34.53KB | 0.00% |
blocks/weglot-widget/build/images/rect_bright.93dd8032.png | 33.80KB | 34.53KB | 0.00% |
app/images/rect_mate.png | 51.46KB | 52.63KB | 0.00% |
dist/images/wgarrowdown.png | 0.16KB | 0.28KB | 0.00% |