Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.97ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce SecureSubmit Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.05 | 25.95 ▼15.77 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.68 ▼3.95 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.09 ▼0.81 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.64 ▼2.52 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.63 ▼1.65 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 260 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce SecureSubmit Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,454 ▼318 | 14.21 ▼0.51 | 0.51 ▼1.20 | 19.49 ▼21.26 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.06 | 87.63 ▼15.32 | 38.82 ▼12.57 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.98 ▲0.02 | 39.35 ▲2.26 | 33.72 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.63 ▲5.47 | 644.48 ▲19.48 | 64.69 ▼4.61 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.16 ▲0.03 | 98.74 ▼4.29 | 42.60 ▼3.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 131× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HpsSoapGatewayService' not found in wp-content/plugins/woocommerce-securesubmit-gateway/classes/includes/src/Services/Fluent/Gateway/HpsFluentCreditService.php:6
- > PHP Fatal error
Uncaught Error: Class 'HpsBuilderAbstract' not found in wp-content/plugins/woocommerce-securesubmit-gateway/classes/includes/src/Services/Fluent/Gateway/Credit/HpsCreditServiceChargeBuilder.php:23
- > PHP Fatal error
Uncaught Error: Class 'HpsCardinalMPIResponse' not found in wp-content/plugins/woocommerce-securesubmit-gateway/classes/includes/src/Entities/AltPayment/HpsCardinalMPIRefundResponse.php:6
- > PHP Fatal error
Uncaught Error: Class 'HpsTransaction' not found in wp-content/plugins/woocommerce-securesubmit-gateway/classes/includes/src/Entities/Credit/HpsReportTransactionSummary.php:6
- > PHP Fatal error
Uncaught Error: Class 'HpsTransaction' not found in wp-content/plugins/woocommerce-securesubmit-gateway/classes/includes/src/Entities/Credit/HpsOfflineAuthorization.php:6
- > PHP Fatal error
Uncaught Error: Class 'HpsSoapGatewayService' not found in wp-content/plugins/woocommerce-securesubmit-gateway/classes/includes/src/Services/Gateway/HpsCreditService.php:6
- > PHP Fatal error
Uncaught Error: Class 'HpsBuilderAbstract' not found in wp-content/plugins/woocommerce-securesubmit-gateway/classes/includes/src/Services/Fluent/Gateway/Check/HpsCheckServiceVoidBuilder.php:10
- > PHP Fatal error
Uncaught Error: Class 'HpsGiftCardActivate' not found in wp-content/plugins/woocommerce-securesubmit-gateway/classes/includes/src/Entities/Gift/HpsGiftCardVoid.php:6
- > PHP Fatal error
Uncaught Error: Class 'HpsGiftCardActivate' not found in wp-content/plugins/woocommerce-securesubmit-gateway/classes/includes/src/Entities/Gift/HpsGiftCardAddValue.php:6
- > PHP Fatal error
Uncaught Error: Class 'HpsBuilderAbstract' not found in wp-content/plugins/woocommerce-securesubmit-gateway/classes/includes/src/Services/Fluent/Gateway/Credit/HpsCreditServiceCaptureBuilder.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (The SecureSubmit gateway configuration screen), #2 (A view of the front-end payment form), #3 (A view of the Manage Cards section)
woocommerce-securesubmit-gateway/gateway-securesubmit.php 92% from 13 tests
The principal PHP file in "WooCommerce SecureSubmit Gateway" v. 2.2.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-securesubmit-gateway.php" instead of "gateway-securesubmit.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
Good job! No executable or dangerous file extensions detected13,370 lines of code in 227 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 218 | 2,005 | 5,233 | 11,748 |
CSS | 1 | 143 | 26 | 609 |
JavaScript | 3 | 75 | 11 | 532 |
Markdown | 3 | 236 | 0 | 479 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 202 | |
▷ Abstract classes | 21 | 10.40% |
▷ Concrete classes | 181 | 89.60% |
▷ Final classes | 0 | 0.00% |
Methods | 681 | |
▷ Static methods | 78 | 11.45% |
▷ Public methods | 490 | 71.95% |
▷ Protected methods | 122 | 17.91% |
▷ Private methods | 69 | 10.13% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 174 | |
▷ Global constants | 3 | 1.72% |
▷ Class constants | 171 | 98.28% |
▷ Public constants | 171 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
27 PNG files occupy 0.28MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ss-inputcard-discover@2x.png | 6.92KB | 3.44KB | ▼ 50.33% |
assets/images/ss-cvv@2x.png | 5.57KB | 2.38KB | ▼ 57.34% |
assets/icon-128x128.png | 7.23KB | 3.52KB | ▼ 51.26% |
assets/images/ss-saved-jcb@2x.png | 10.59KB | 4.59KB | ▼ 56.65% |
assets/images/input-cards@2x.png | 54.54KB | 16.44KB | ▼ 69.86% |