Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.17MB] [CPU: ▼14.08ms] Passed 4 tests
An overview of server-side resources used by Events Manager Pro SecureSubmit Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.88 ▼2.56 |
Dashboard /wp-admin | 3.20 ▼0.11 | 32.02 ▼19.80 |
Posts /wp-admin/edit.php | 3.26 ▼0.09 | 33.81 ▼9.95 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.45 | 70.23 ▼24.02 |
Media Library /wp-admin/upload.php | 3.20 ▼0.03 | 29.79 ▼0.65 |
Server storage [IO: ▲0.54MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 206 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Events Manager Pro SecureSubmit Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 14.48 ▼0.08 | 1.92 ▲0.12 | 36.93 ▼8.46 |
Dashboard /wp-admin | 2,206 ▲18 | 5.87 ▲1.00 | 110.25 ▲6.51 | 43.83 ▲0.59 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.03 | 36.93 ▲0.50 | 35.02 ▲2.79 |
Add New Post /wp-admin/post-new.php | 1,540 ▲20 | 23.26 ▲0.07 | 645.31 ▼6.24 | 49.54 ▼5.16 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▲0.01 | 93.66 ▼1.47 | 41.39 ▼0.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/events-manager-pro-securesubmit-gateway/events-manager-securesubmit.php
- 126× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HpsException' not found in wp-content/plugins/events-manager-pro-securesubmit-gateway/hps/src/Infrastructure/HpsCheckException.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsBuilderAbstract' not found in wp-content/plugins/events-manager-pro-securesubmit-gateway/hps/src/Services/Fluent/Gateway/GiftCard/HpsGiftCardServiceSaleBuilder.php:13
- > PHP Fatal error
Uncaught Error: Class 'HpsException' not found in wp-content/plugins/events-manager-pro-securesubmit-gateway/hps/src/Infrastructure/HpsCreditException.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsAuthorization' not found in wp-content/plugins/events-manager-pro-securesubmit-gateway/hps/src/Entities/Debit/HpsDebitReturn.php:3
- > PHP Fatal error
Uncaught Error: Class 'EM_Gateway' not found in wp-content/plugins/events-manager-pro-securesubmit-gateway/class-events-manager-securesubmit.php:18
- > PHP Fatal error
Uncaught Error: Class 'HpsAltPaymentService' not found in wp-content/plugins/events-manager-pro-securesubmit-gateway/hps/src/Services/Gateway/AltPayment/HpsPayPalService.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsAuthorization' not found in wp-content/plugins/events-manager-pro-securesubmit-gateway/hps/src/Entities/Credit/HpsRecurringBilling.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsPayPlanResourceAbstract' not found in wp-content/plugins/events-manager-pro-securesubmit-gateway/hps/src/Entities/PayPlan/HpsPayPlanPaymentMethod.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsBuilderAbstract' not found in wp-content/plugins/events-manager-pro-securesubmit-gateway/hps/src/Services/Fluent/Gateway/Check/HpsCheckServiceSaleBuilder.php:13
- > PHP Fatal error
Uncaught Error: Class 'HpsAuthorization' not found in wp-content/plugins/events-manager-pro-securesubmit-gateway/hps/src/Entities/AltPayment/HpsAltPaymentAddToBatch.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (The SecureSubmit Plugin Configuration Screen.), #2 (A view of the plugin in action.)
- Tags: Please delete some tags, you are using 24 tag instead of maximum 10
events-manager-pro-securesubmit-gateway/events-manager-securesubmit.php 85% from 13 tests
The main file in "Events Manager Pro SecureSubmit Gateway" v. 1.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("events-manager-pro-securesubmit-gateway.php" instead of "events-manager-securesubmit.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected9,004 lines of code in 196 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 192 | 1,650 | 2,873 | 8,522 |
Markdown | 3 | 75 | 0 | 272 |
JavaScript | 1 | 49 | 20 | 210 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.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 | 533 | |
▷ Static methods | 66 | 12.38% |
▷ Public methods | 375 | 70.36% |
▷ Protected methods | 95 | 17.82% |
▷ Private methods | 63 | 11.82% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 173 | |
▷ Global constants | 3 | 1.73% |
▷ Class constants | 170 | 98.27% |
▷ Public constants | 170 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 31.34KB | 11.88KB | ▼ 62.09% |
assets/icon-128x128.png | 13.52KB | 5.25KB | ▼ 61.14% |