Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/securesubmit/SecureSubmit.php+2162
Undefined index: jal_db_version
Server metrics [RAM: ▲2.18MB] [CPU: ▲10.20ms] Passed 4 tests
A check of server-side resources used by WP SecureSubmit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.65 ▲2.19 | 54.29 ▲10.16 |
Dashboard /wp-admin | 5.49 ▲2.19 | 64.49 ▲12.64 |
Posts /wp-admin/edit.php | 5.54 ▲2.18 | 62.23 ▲10.05 |
Add New Post /wp-admin/post-new.php | 8.07 ▲2.18 | 104.32 ▲7.94 |
Media Library /wp-admin/upload.php | 5.41 ▲2.18 | 59.64 ▲18.68 |
FAQ /wp-admin/admin.php?page=sub-faq | 5.37 | 47.27 |
Reporting /wp-admin/admin.php?page=sub-reporting | 5.37 | 51.47 |
Settings /wp-admin/admin.php?page=sub-settings | 5.44 | 56.09 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 217 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_securesubmit |
New WordPress options |
---|
widget_recent-comments |
securesubmit_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP SecureSubmit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲188 | 13.61 ▼0.75 | 10.64 ▲8.85 | 41.32 ▼3.10 |
Dashboard /wp-admin | 2,250 ▲50 | 4.86 ▼0.13 | 99.85 ▼20.24 | 36.39 ▼18.75 |
Posts /wp-admin/edit.php | 2,129 ▲26 | 2.04 ▲0.02 | 37.22 ▼1.94 | 35.37 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,550 ▲5 | 22.90 ▼0.16 | 617.73 ▼60.67 | 59.13 ▲3.06 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.23 ▲0.03 | 102.43 ▼17.64 | 49.83 ▲0.44 |
FAQ /wp-admin/admin.php?page=sub-faq | 872 | 2.05 | 29.01 | 37.93 |
Reporting /wp-admin/admin.php?page=sub-reporting | 840 | 2.06 | 29.82 | 44.94 |
Settings /wp-admin/admin.php?page=sub-settings | 1,806 | 6.60 | 138.72 | 85.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_securesubmit
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- securesubmit_options
- can_compress_scripts
- theysaidso_admin_options
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 127× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'HpsPayPlanResourceInterface' not found in wp-content/plugins/securesubmit/lib/src/Abstractions/HpsPayPlanResourceAbstract.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsSoapGatewayService' not found in wp-content/plugins/securesubmit/lib/src/Services/Gateway/HpsDebitService.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsGiftCardActivate' not found in wp-content/plugins/securesubmit/lib/src/Entities/Gift/HpsGiftCardBalance.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsSoapGatewayService' not found in wp-content/plugins/securesubmit/lib/src/Services/Fluent/Gateway/HpsFluentCreditService.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsPayPlanResourceAbstract' not found in wp-content/plugins/securesubmit/lib/src/Entities/PayPlan/HpsPayPlanSchedule.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsGatewayServiceAbstract' not found in wp-content/plugins/securesubmit/lib/src/Services/Gateway/HpsSoapGatewayService.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsSoapGatewayService' not found in wp-content/plugins/securesubmit/lib/src/Services/Gateway/HpsCheckService.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsConsumer' not found in wp-content/plugins/securesubmit/lib/src/Entities/Credit/HpsCardHolder.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsBuilderAbstract' not found in wp-content/plugins/securesubmit/lib/src/Services/Fluent/Gateway/Credit/HpsCreditServiceEditBuilder.php:12
- > PHP Fatal error
Uncaught Error: Class 'HpsPayPlanCustomerStatus' not found in wp-content/plugins/securesubmit/lib/src/Infrastructure/Enums/HpsPayPlanScheduleStatus.php:3
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: payment, buy now, gateway, heartland, donations...
securesubmit/SecureSubmit.php 92% from 13 tests
Analyzing the main PHP file in "WP SecureSubmit" version 1.5.14
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("securesubmit.php" instead of "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 plugin11,770 lines of code in 200 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 190 | 1,845 | 2,677 | 10,086 |
CSS | 3 | 101 | 3 | 665 |
Markdown | 3 | 180 | 0 | 420 |
JavaScript | 3 | 62 | 20 | 330 |
HTML | 1 | 17 | 0 | 269 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 226.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 183 | |
▷ Abstract classes | 21 | 11.48% |
▷ Concrete classes | 162 | 88.52% |
▷ Final classes | 0 | 0.00% |
Methods | 535 | |
▷ Static methods | 66 | 12.34% |
▷ Public methods | 378 | 70.65% |
▷ Protected methods | 95 | 17.76% |
▷ Private methods | 62 | 11.59% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 175 | |
▷ Global constants | 3 | 1.71% |
▷ Class constants | 172 | 98.29% |
▷ Public constants | 172 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.31MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 38.84KB | 22.11KB | ▼ 43.08% |
assets/logo.png | 2.13KB | 1.25KB | ▼ 41.33% |
assets/screenshot-1.png | 89.06KB | 45.78KB | ▼ 48.59% |
shield.png | 0.46KB | 0.30KB | ▼ 34.55% |
assets/screenshot-3.png | 72.75KB | 35.33KB | ▼ 51.44% |