Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.33ms] Passed 4 tests
A check of server-side resources used by TradeSafe Payment Gateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.81 ▲3.74 |
Dashboard /wp-admin | 3.36 ▲0.05 | 49.51 ▼9.94 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.94 ▲1.90 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.96 ▼5.13 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.46 ▼0.13 |
Server storage [IO: ▲2.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 249 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for TradeSafe Payment Gateway for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.11 | 1.82 ▲0.27 | 43.89 ▲3.59 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▲0.08 | 92.65 ▲1.71 | 41.86 ▲1.44 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.04 | 32.56 ▼3.09 | 33.89 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.22 ▲0.10 | 667.85 ▼3.26 | 55.90 ▲3.00 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.25 ▲0.04 | 98.01 ▼4.55 | 42.05 ▼1.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Almost there! Just fix the following items
- 94× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Polyfill\\Php80\\PhpToken' not found in wp-content/plugins/tradesafe-payment-gateway/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/tradesafe-payment-gateway/vendor/guzzlehttp/psr7/src/InflateStream.php:20
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\MessageFormatterInterface' not found in wp-content/plugins/tradesafe-payment-gateway/vendor/guzzlehttp/guzzle/src/MessageFormatter.php:38
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/tradesafe-payment-gateway/vendor/guzzlehttp/promises/src/AggregateException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientInterface' not found in wp-content/plugins/tradesafe-payment-gateway/vendor/gmostafa/php-graphql-client/src/Util/GuzzleAdapter.php:11
- > PHP Fatal error
Uncaught Error: Class 'GraphQL\estableObject' not found in wp-content/plugins/tradesafe-payment-gateway/vendor/gmostafa/php-graphql-client/src/InlineFragment.php:12
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/tradesafe-payment-gateway/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
- > PHP Fatal error
Uncaught Error: Class 'League\\OAuth2\\Client\\OptionProvider\\PostAuthOptionProvider' not found in wp-content/plugins/tradesafe-payment-gateway/vendor/league/oauth2-client/src/OptionProvider/HttpBasicAuthOptionProvider.php:23
- > PHP Fatal error
Uncaught Error: Interface 'League\\OAuth2\\Client\\Token\\AccessTokenInterface' not found in wp-content/plugins/tradesafe-payment-gateway/vendor/league/oauth2-client/src/Token/ResourceOwnerAccessTokenInterface.php:17
- > PHP Warning
require_once(wp-content/plugins/tradesafe-payment-gateway/vendor/gmostafa/php-graphql-client/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/tradesafe-payment-gateway/vendor/gmostafa/php-graphql-client/examples/query_example.php on line 3
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: bnpl, woocommerce, credit card, payment gateway, escrow...
tradesafe-payment-gateway/tradesafe-payment-gateway.php 85% from 13 tests
"TradeSafe Payment Gateway for WooCommerce" version 2.13.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("5.6" instead of "5.5")
- Description: Keep the plugin description shorter than 140 characters (currently 227 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin21,447 lines of code in 231 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 208 | 3,645 | 8,624 | 17,322 |
Markdown | 15 | 1,110 | 0 | 3,076 |
JSON | 1 | 0 | 0 | 906 |
JavaScript | 2 | 18 | 2 | 93 |
CSS | 1 | 4 | 0 | 24 |
XML | 1 | 0 | 0 | 19 |
SVG | 2 | 0 | 0 | 4 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 33 | |
Traits | 11 | |
Classes | 137 | |
▷ Abstract classes | 4 | 2.92% |
▷ Concrete classes | 133 | 97.08% |
▷ Final classes | 37 | 27.82% |
Methods | 1,130 | |
▷ Static methods | 200 | 17.70% |
▷ Public methods | 930 | 82.30% |
▷ Protected methods | 78 | 6.90% |
▷ Private methods | 122 | 10.80% |
Functions | 130 | |
▷ Named functions | 34 | 26.15% |
▷ Anonymous functions | 96 | 73.85% |
Constants | 85 | |
▷ Global constants | 3 | 3.53% |
▷ Class constants | 82 | 96.47% |
▷ Public constants | 66 | 80.49% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.28MB with 0.19MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banner-772x250.png | 289.98KB | 97.71KB | ▼ 66.30% |