Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲2.05MB] [CPU: ▲11.16ms] Passed 4 tests
A check of server-side resources used by Heartland Management Terminal
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.50 ▲2.04 | 52.62 ▲12.58 |
Dashboard /wp-admin | 5.37 ▲2.06 | 59.50 ▲1.50 |
Posts /wp-admin/edit.php | 5.48 ▲2.12 | 62.14 ▲12.83 |
Add New Post /wp-admin/post-new.php | 7.95 ▲2.06 | 104.56 ▲21.92 |
Media Library /wp-admin/upload.php | 5.28 ▲2.05 | 50.80 ▲17.71 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 221 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Heartland Management Terminal
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.29 ▼0.98 | 4.92 ▲3.05 | 44.07 ▼4.44 |
Dashboard /wp-admin | 2,225 ▲36 | 5.85 ▲0.90 | 103.70 ▼26.95 | 82.74 ▲39.58 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.03 ▲0.02 | 40.68 ▲5.12 | 36.52 ▲3.03 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 17.80 ▼5.34 | 713.97 ▲61.34 | 65.51 ▲7.43 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.23 ▲0.02 | 96.98 ▼3.79 | 46.06 ▲0.59 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/heartland-management-terminal/templates/admin/notice.php
- > /wp-content/plugins/heartland-management-terminal/templates/admin/footer.php
- 133× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HpsCardinalMPIResponse' not found in wp-content/plugins/heartland-management-terminal/classes/includes/src/Entities/AltPayment/HpsCardinalMPIAddOrderNumberResponse.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsTransaction' not found in wp-content/plugins/heartland-management-terminal/classes/includes/src/Entities/Check/HpsCheckResponse.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsBuilderAbstract' not found in wp-content/plugins/heartland-management-terminal/classes/includes/src/Services/Fluent/Gateway/GiftCard/HpsGiftCardServiceRewardBuilder.php:13
- > PHP Fatal error
Uncaught Error: Class 'HpsSoapGatewayService' not found in wp-content/plugins/heartland-management-terminal/classes/includes/src/Services/Fluent/Gateway/HpsFluentCheckService.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsTransaction' not found in wp-content/plugins/heartland-management-terminal/classes/includes/src/Entities/Gift/HpsGiftCardActivate.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsBuilderAbstract' not found in wp-content/plugins/heartland-management-terminal/classes/includes/src/Services/Fluent/Gateway/Credit/HpsCreditServiceGetBuilder.php:9
- > PHP Fatal error
Uncaught Error: Class 'HpsException' not found in wp-content/plugins/heartland-management-terminal/classes/includes/src/Infrastructure/HpsProcessorException.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsCardinalMPIResponse' not found in wp-content/plugins/heartland-management-terminal/classes/includes/src/Entities/AltPayment/HpsCardinalMPILookupResponse.php:3
- > PHP Fatal error
Uncaught Error: Class 'HpsBuilderAbstract' not found in wp-content/plugins/heartland-management-terminal/classes/includes/src/Services/Fluent/Gateway/Credit/HpsCreditServiceReverseBuilder.php:15
- > PHP Fatal error
Uncaught Error: Class 'HpsCardinalMPIResponse' not found in wp-content/plugins/heartland-management-terminal/classes/includes/src/Entities/AltPayment/HpsCardinalMPIVoidResponse.php:3
- > 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
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: systems, tokenize, securesubmit, heartland, gateway...
heartland-management-terminal/heartland-terminal.php 92% from 13 tests
This is the main PHP file of "Heartland Management Terminal" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("heartland-management-terminal.php" instead of "heartland-terminal.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin9,998 lines of code in 203 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 200 | 1,810 | 2,893 | 9,535 |
Markdown | 3 | 141 | 0 | 463 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 184 | |
▷ Abstract classes | 21 | 11.41% |
▷ Concrete classes | 163 | 88.59% |
▷ Final classes | 0 | 0.00% |
Methods | 543 | |
▷ Static methods | 66 | 12.15% |
▷ Public methods | 373 | 68.69% |
▷ Protected methods | 109 | 20.07% |
▷ Private methods | 61 | 11.23% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 178 | |
▷ Global constants | 4 | 2.25% |
▷ Class constants | 174 | 97.75% |
▷ Public constants | 174 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 6.20KB | 2.92KB | ▼ 52.81% |
templates/admin/assets/ss.png | 7.18KB | 4.51KB | ▼ 37.23% |
templates/admin/assets/eventsmanager.png | 35.32KB | 15.88KB | ▼ 55.04% |
templates/admin/assets/h.png | 1.72KB | 0.34KB | ▼ 80.32% |
templates/admin/assets/faviconpng.png | 0.11KB | 0.10KB | ▼ 7.41% |