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
Install script ran successfully
Server metrics [RAM: ▲1.42MB] [CPU: ▲397.34ms] 75% from 4 tests
Analyzing server-side resources used by Translate WordPress Multilingual Sites - Transcy WordPress Translation Plugin
Please take the time to fix the following items
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 397.34ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.89 ▲1.42 | 436.89 ▲395.92 |
Dashboard /wp-admin | 4.74 ▲1.43 | 450.45 ▲398.79 |
Posts /wp-admin/edit.php | 4.77 ▲1.41 | 450.74 ▲404.93 |
Add New Post /wp-admin/post-new.php | 7.66 ▲1.77 | 489.51 ▲389.72 |
Media Library /wp-admin/upload.php | 4.66 ▲1.43 | 645.97 ▲612.66 |
Server storage [IO: ▲3.36MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 222 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_transcy_translations |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
_transcy_registered_site |
can_compress_scripts |
transcy_apikey |
transcy_client_data |
db_upgraded |
_transcy_upgrader_tracking |
widget_theysaidso_widget |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Translate WordPress Multilingual Sites - Transcy WordPress Translation Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,969 ▲2,207 | 18.30 ▲3.95 | 11.35 ▲9.39 | 42.53 ▼5.86 |
Dashboard /wp-admin | 4,253 ▲2,073 | 10.69 ▲5.02 | 224.58 ▲129.86 | 76.83 ▲34.35 |
Posts /wp-admin/edit.php | 3,811 ▲1,711 | 7.60 ▲5.59 | 148.00 ▲110.91 | 36.01 ▼1.37 |
Add New Post /wp-admin/post-new.php | 3,377 ▲1,851 | 24.61 ▲1.48 | 822.11 ▲178.39 | 36.58 ▼11.97 |
Media Library /wp-admin/upload.php | 2,653 ▲1,250 | 8.55 ▲4.37 | 227.91 ▲131.52 | 74.20 ▲33.53 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 items
- 202× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Constant SODIUM_CRYPTO_AEAD_AES256GCM_KEYBYTES already defined in wp-content/plugins/transcy/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 11
- > PHP Notice
Constant SODIUM_CRYPTO_AUTH_KEYBYTES already defined in wp-content/plugins/transcy/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 28
- > PHP Notice
Constant SODIUM_CRYPTO_AEAD_AES256GCM_NPUBBYTES already defined in wp-content/plugins/transcy/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core32_ChaCha20' not found in wp-content/plugins/transcy/vendor/paragonie/sodium_compat/src/Core32/HChaCha20.php:10
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_Poly1305' not found in wp-content/plugins/transcy/vendor/paragonie/sodium_compat/namespaced/Core/Poly1305.php:4
- > PHP Notice
Constant SODIUM_CRYPTO_BOX_MACBYTES already defined in wp-content/plugins/transcy/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 33
- > PHP Fatal error
Uncaught Error: Class 'TranscyApp\\Repositories\\BaseRepository' not found in wp-content/plugins/transcy/modules/app/Repositories/MenuRepository.php:5
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core32_Util' not found in wp-content/plugins/transcy/vendor/paragonie/sodium_compat/src/Core32/ChaCha20.php:10
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Compat' not found in wp-content/plugins/transcy/vendor/paragonie/sodium_compat/namespaced/Compat.php:4
- > PHP Notice
Constant SODIUM_BASE64_VARIANT_ORIGINAL_NO_PADDING already defined in wp-content/plugins/transcy/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 8
- > PHP Notice
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
transcy/transcy.php Passed 13 tests
This is the main PHP file of "Translate WordPress Multilingual Sites - Transcy WordPress Translation Plugin" version 2.12.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
122 characters long description:
Make your website multilingual easily with no coding. Instantly translate between languages with the Google Translate API.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin28,083 lines of code in 206 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 184 | 3,773 | 13,020 | 26,999 |
Markdown | 3 | 136 | 0 | 538 |
JSON | 6 | 0 | 0 | 454 |
JavaScript | 5 | 54 | 431 | 30 |
HTML | 1 | 3 | 0 | 25 |
XML | 1 | 0 | 0 | 19 |
SVG | 2 | 0 | 0 | 12 |
Bourne Shell | 1 | 2 | 0 | 3 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 13.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 386.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 37 | |
Interfaces | 2 | |
Traits | 3 | |
Classes | 155 | |
▷ Abstract classes | 21 | 13.55% |
▷ Concrete classes | 134 | 86.45% |
▷ Final classes | 0 | 0.00% |
Methods | 1,049 | |
▷ Static methods | 630 | 60.06% |
▷ Public methods | 977 | 93.14% |
▷ Protected methods | 45 | 4.29% |
▷ Private methods | 27 | 2.57% |
Functions | 190 | |
▷ Named functions | 180 | 94.74% |
▷ Anonymous functions | 10 | 5.26% |
Constants | 361 | |
▷ Global constants | 17 | 4.71% |
▷ Class constants | 344 | 95.29% |
▷ Public constants | 344 | 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
7 PNG files occupy 0.32MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/assets/currencyOnboarding-7f203515.png | 37.21KB | 12.57KB | ▼ 66.22% |
assets/dist/assets/trialHasExpiredModal-66016c88.png | 7.10KB | 3.46KB | ▼ 51.27% |
assets/dist/assets/somethingWrong-29b921d2.png | 13.93KB | 6.37KB | ▼ 54.24% |
assets/dist/assets/dashboardLanguageImage-28bf5ebe.png | 66.25KB | 23.26KB | ▼ 64.88% |
assets/dist/assets/rating-0e14e36c.png | 11.13KB | 5.13KB | ▼ 53.95% |