Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.78ms] Passed 4 tests
Server-side resources used by Heartland Secure Submit Addon for Gravity Forms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 47.55 ▲0.19 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.62 ▼3.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.64 ▼4.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.72 ▼21.44 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.35 ▼1.35 |
Server storage [IO: ▲1.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 248 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Heartland Secure Submit Addon for Gravity Forms
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.31 ▼1.10 | 1.67 ▼0.13 | 44.92 ▲4.10 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▼0.95 | 107.36 ▼1.74 | 36.78 ▼5.93 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▲0.03 | 41.10 ▼5.32 | 36.18 ▲0.66 |
Add New Post /wp-admin/post-new.php | 1,536 ▼0 | 23.29 ▲0.14 | 631.91 ▼52.15 | 50.22 ▼14.83 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.20 ▲0.03 | 104.54 ▼3.64 | 42.05 ▼5.48 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/heartland-secure-submit-addon-for-gravity-forms/templates/client-side-merge-tags.php
- 140× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HpsBuilderAbstract' not found in wp-content/plugins/heartland-secure-submit-addon-for-gravity-forms/classes/includes/src/Services/Fluent/Gateway/Credit/HpsCreditServicePrepaidBalanceInquiryBuilder.php:12
- > PHP Fatal error
Uncaught Error: Class 'HpsAuthorization' not found in wp-content/plugins/heartland-secure-submit-addon-for-gravity-forms/classes/includes/src/Entities/Debit/HpsDebitReturn.php:6
- > PHP Fatal error
Uncaught Error: Class 'HpsBuilderAbstract' not found in wp-content/plugins/heartland-secure-submit-addon-for-gravity-forms/classes/includes/src/Services/Fluent/Gateway/GiftCard/HpsGiftCardServiceBalanceBuilder.php:10
- > PHP Fatal error
Uncaught Error: Class 'HpsPayPlanResourceAbstract' not found in wp-content/plugins/heartland-secure-submit-addon-for-gravity-forms/classes/includes/src/Entities/PayPlan/HpsPayPlanCustomer.php:6
- > PHP Fatal error
Uncaught Error: Class 'HpsRestGatewayService' not found in wp-content/plugins/heartland-secure-submit-addon-for-gravity-forms/classes/includes/src/Services/Gateway/PayPlan/HpsPayPlanScheduleService.php:6
- > PHP Fatal error
Uncaught Error: Class 'HpsCardinalMPIResponse' not found in wp-content/plugins/heartland-secure-submit-addon-for-gravity-forms/classes/includes/src/Entities/AltPayment/HpsCardinalMPIAuthresponseResponse.php:6
- > PHP Fatal error
Uncaught Error: Class 'HpsAltPaymentResponse' not found in wp-content/plugins/heartland-secure-submit-addon-for-gravity-forms/classes/includes/src/Entities/AltPayment/HpsAltPaymentSessionInfo.php:6
- > PHP Fatal error
Uncaught Error: Class 'HpsBuilderAbstract' not found in wp-content/plugins/heartland-secure-submit-addon-for-gravity-forms/classes/includes/src/Services/Fluent/Gateway/GiftCard/HpsGiftCardServiceDeactivateBuilder.php:10
- > PHP Fatal error
Uncaught Error: Class 'HpsGiftCardActivate' not found in wp-content/plugins/heartland-secure-submit-addon-for-gravity-forms/classes/includes/src/Entities/Gift/HpsGiftCardVoid.php:6
- > PHP Fatal error
Uncaught Error: Class 'HpsBuilderAbstract' not found in wp-content/plugins/heartland-secure-submit-addon-for-gravity-forms/classes/includes/src/Services/Fluent/Gateway/Credit/HpsCreditServiceOfflineChargeBuilder.php:28
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: gravity, token, forms, gateway, payment...
heartland-secure-submit-addon-for-gravity-forms/gravityforms-securesubmit.php 92% from 13 tests
The primary PHP file in "Heartland Secure Submit Addon for Gravity Forms" version 1.4.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("heartland-secure-submit-addon-for-gravity-forms.php" instead of "gravityforms-securesubmit.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin12,052 lines of code in 204 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 197 | 1,801 | 5,710 | 10,726 |
JavaScript | 2 | 81 | 64 | 548 |
Markdown | 4 | 123 | 0 | 490 |
CSS | 1 | 27 | 2 | 288 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 226.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 187 | |
▷ Abstract classes | 21 | 11.23% |
▷ Concrete classes | 166 | 88.77% |
▷ Final classes | 0 | 0.00% |
Methods | 629 | |
▷ Static methods | 75 | 11.92% |
▷ Public methods | 440 | 69.95% |
▷ Protected methods | 104 | 16.53% |
▷ Private methods | 85 | 13.51% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 179 | |
▷ Global constants | 4 | 2.23% |
▷ Class constants | 175 | 97.77% |
▷ Public constants | 175 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
39 PNG files occupy 1.11MB with 0.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/img/down.png | 2.68KB | 1.57KB | ▼ 41.53% |
assets/images/ss-saved-visa@2x.png | 10.23KB | 4.75KB | ▼ 53.54% |
assets/images/ss-saved-amex@2x.png | 16.61KB | 7.50KB | ▼ 54.86% |
images/img/visa.png | 42.97KB | 9.79KB | ▼ 77.21% |
assets/images/ss-shield@2x.png | 58.35KB | 12.61KB | ▼ 78.39% |