Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/trust-payments-hosted-payment-pages-integration/woocommerce-securetrading-gateway.php+264
include_once(wp-content/plugins/woocommerce/includes/admin/wc-admin-functions.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.22ms] Passed 4 tests
Server-side resources used by Trust Payments Gateway for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.65 ▲0.44 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.24 ▼9.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.41 ▲2.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.32 ▼13.34 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.44 ▲1.17 |
Server storage [IO: ▲1.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 190 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Trust Payments Gateway for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.22 ▼0.41 | 1.67 ▼0.10 | 43.78 ▼1.02 |
Dashboard /wp-admin | 2,198 ▲18 | 5.59 ▼0.06 | 90.90 ▼2.79 | 38.33 ▼0.31 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.02 | 38.85 ▲2.61 | 34.44 ▼5.05 |
Add New Post /wp-admin/post-new.php | 1,526 ▲1 | 23.32 ▲0.27 | 702.14 ▲50.10 | 68.25 ▲9.44 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.23 ▲0.08 | 96.08 ▼6.88 | 43.46 ▼4.27 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 60× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Securetrading\\Exception' not found in wp-content/plugins/trust-payments-hosted-payment-pages-integration/vendor/securetrading/stpp_json/src/ConfigException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Securetrading\\Unittest\\UnittestAbstract' not found in wp-content/plugins/trust-payments-hosted-payment-pages-integration/vendor/securetrading/stpp_json/tests/unit/ConverterTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/trust-payments-hosted-payment-pages-integration/vendor/securetrading/log/src/Filter.php:9
- > PHP Fatal error
Uncaught Error: Class 'Securetrading\\Unittest\\IntegrationtestAbstract' not found in wp-content/plugins/trust-payments-hosted-payment-pages-integration/vendor/securetrading/log/tests/integration/FactoryTest.php:7
- > PHP Fatal error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16. in wp-content/plugins/trust-payments-hosted-payment-pages-integration/vendor/composer/platform_check.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'Securetrading\\Unittest\\UnittestAbstract' not found in wp-content/plugins/trust-payments-hosted-payment-pages-integration/vendor/securetrading/log/tests/unit/FileWriterTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Securetrading\\Unittest\\UnittestAbstract' not found in wp-content/plugins/trust-payments-hosted-payment-pages-integration/vendor/securetrading/stpp_json/tests/unit/RequestsTest.php:5
- > PHP Fatal error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16. in wp-content/plugins/trust-payments-hosted-payment-pages-integration/vendor/composer/platform_check.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'Securetrading\\Data\\Data' not found in wp-content/plugins/trust-payments-hosted-payment-pages-integration/vendor/securetrading/data/tests/unit/DataTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Securetrading\\Exception' not found in wp-content/plugins/trust-payments-hosted-payment-pages-integration/vendor/securetrading/log/src/FilterException.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Too many tags (45 tag instead of maximum 10); only the first 5 tags are used in your directory listing
trust-payments-hosted-payment-pages-integration/woocommerce-securetrading-gateway.php 92% from 13 tests
"Trust Payments Gateway for WooCommerce" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("trust-payments-hosted-payment-pages-integration.php" instead of "woocommerce-securetrading-gateway.php")
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 plugin15,832 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 132 | 2,446 | 3,235 | 14,529 |
JSON | 12 | 1 | 0 | 549 |
Markdown | 11 | 195 | 0 | 535 |
CSS | 2 | 13 | 0 | 124 |
SVG | 3 | 0 | 1 | 53 |
JavaScript | 3 | 0 | 1 | 37 |
INI | 1 | 0 | 0 | 5 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 14.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 391.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 96.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 7 | |
Traits | 2 | |
Classes | 99 | |
▷ Abstract classes | 4 | 4.04% |
▷ Concrete classes | 95 | 95.96% |
▷ Final classes | 0 | 0.00% |
Methods | 862 | |
▷ Static methods | 52 | 6.03% |
▷ Public methods | 776 | 90.02% |
▷ Protected methods | 68 | 7.89% |
▷ Private methods | 18 | 2.09% |
Functions | 52 | |
▷ Named functions | 12 | 23.08% |
▷ Anonymous functions | 40 | 76.92% |
Constants | 87 | |
▷ Global constants | 31 | 35.63% |
▷ Class constants | 56 | 64.37% |
▷ Public constants | 56 | 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
1 PNG file occupies 0.20MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/TRUST_Payments_White.png | 200.47KB | 126.56KB | ▼ 36.87% |