Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > User error in wp-content/plugins/gtbabel/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16.
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.77ms] Passed 4 tests
Server-side resources used by Gtbabel
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.06 ▼4.70 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.03 ▼3.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.61 ▲0.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.41 ▲1.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.01 ▲3.83 |
Server storage [IO: ▲12.91MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 1,306 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Gtbabel: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.34 ▼0.43 | 1.87 ▲0.14 | 49.61 ▲3.31 |
Dashboard /wp-admin | 2,198 ▲24 | 5.51 ▼0.13 | 85.07 ▼10.83 | 38.64 ▼7.96 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.02 | 40.02 ▲2.33 | 33.59 ▲2.62 |
Add New Post /wp-admin/post-new.php | 1,526 ▼12 | 22.98 ▲4.72 | 623.91 ▼24.08 | 50.10 ▼22.26 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.30 ▲0.15 | 105.72 ▲11.29 | 46.15 ▲5.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/gtbabel/vendor/markbaker/matrix/buildPhar.php
- > /wp-content/plugins/gtbabel/vendor/vielhuber/stringhelper/tests/Helper.php
- 521× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'ScopedGtbabel\\Dotenv\\Exception\\ExceptionInterface' not found in wp-content/plugins/gtbabel/vendor/vlucas/phpdotenv/src/Exception/InvalidPathException.php:7
- > PHP Fatal error
Uncaught Error: Class 'ScopedGtbabel\\PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\BestFit' not found in wp-content/plugins/gtbabel/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/ExponentialBestFit.php:5
- > PHP Fatal error
Trait 'ScopedGtbabel\\PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/gtbabel/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Angle.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'ScopedGtbabel\\PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\WriterPart' not found in wp-content/plugins/gtbabel/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/ContentTypes.php:11
- > PHP Fatal error
Uncaught Error: Class 'ScopedGtbabel\\PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/gtbabel/vendor/maennchen/zipstream-php/test/BigintTest.php:9
- > PHP Fatal error
Uncaught Error: Interface 'ScopedGtbabel\\Dotenv\\Repository\\Adapter\\AdapterInterface' not found in wp-content/plugins/gtbabel/vendor/vlucas/phpdotenv/src/Repository/Adapter/EnvConstAdapter.php:8
- > PHP Fatal error
Trait 'ScopedGtbabel\\PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/gtbabel/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Exp.php on line 7
- > PHP Fatal error
Trait 'ScopedGtbabel\\PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/gtbabel/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/Days.php on line 10
- > PHP Fatal error
Trait 'ScopedGtbabel\\PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/gtbabel/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/Fisher.php on line 8
- > PHP Fatal error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16. in wp-content/plugins/gtbabel/vendor/composer/platform_check.php on line 24
- > 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
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
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Backend settings), #2 (Setup wizard)
gtbabel/gtbabel.php Passed 13 tests
This is the main PHP file of "Gtbabel" version 6.6.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
44 characters long description:
Instant server-side translation of any page.
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
It is important to fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/gtbabel/vendor/bin/export-plural-rules.bat
- ☣ wp-content/plugins/gtbabel/vendor/gettext/languages/bin/export-plural-rules.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 961 | 2,051 | 58,387 | 109,745 |
JSON | 31 | 0 | 0 | 4,767 |
Markdown | 29 | 1,321 | 0 | 4,186 |
JavaScript | 18 | 126 | 45 | 1,729 |
Sass | 14 | 25 | 0 | 959 |
PO File | 1 | 232 | 245 | 674 |
XML | 6 | 11 | 1 | 146 |
reStructuredText | 9 | 119 | 243 | 126 |
CSS | 7 | 21 | 7 | 63 |
DOS Batch | 2 | 0 | 0 | 6 |
INI | 1 | 1 | 1 | 1 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,148)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 333)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 21.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,148.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 333.00 |
Code structure | ||
---|---|---|
Namespaces | 123 | |
Interfaces | 46 | |
Traits | 9 | |
Classes | 876 | |
▷ Abstract classes | 52 | 5.94% |
▷ Concrete classes | 824 | 94.06% |
▷ Final classes | 51 | 6.19% |
Methods | 7,255 | |
▷ Static methods | 2,184 | 30.10% |
▷ Public methods | 5,485 | 75.60% |
▷ Protected methods | 337 | 4.65% |
▷ Private methods | 1,433 | 19.75% |
Functions | 707 | |
▷ Named functions | 406 | 57.43% |
▷ Anonymous functions | 301 | 42.57% |
Constants | 1,457 | |
▷ Global constants | 12 | 0.82% |
▷ Class constants | 1,445 | 99.18% |
▷ Public constants | 1,288 | 89.13% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/plugin/banner-772x250.png | 17.81KB | 7.38KB | ▼ 58.54% |
assets/plugin/banner-1544x500.png | 40.15KB | 15.80KB | ▼ 60.66% |
assets/plugin/icon-256x256.png | 4.61KB | 2.42KB | ▼ 47.43% |
assets/plugin/icon-128x128.png | 2.27KB | 1.29KB | ▼ 43.08% |
vendor/vielhuber/stringhelper/tests/assets/iptc_not_supported.png | 70.70KB | 61.15KB | ▼ 13.50% |