Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼300.49ms] Passed 4 tests
This is a short check of server-side resources used by LatPay Direct Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.08 | 55.07 ▲2.68 |
Dashboard /wp-admin | 3.48 ▲0.07 | 35.41 ▲1.66 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 37.23 ▼2.89 |
Add New Post /wp-admin/post-new.php | 6.98 ▼0.02 | 96.91 ▼1,201.05 |
Media Library /wp-admin/upload.php | 3.36 ▲0.07 | 24.43 ▲0.31 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
LatPay Direct Payment Gateway: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 16.24 ▲0.57 | 5.75 ▼0.53 | 2.27 ▼0.24 |
Dashboard /wp-admin | 2,895 ▲34 | 6.11 ▼0.08 | 123.51 ▼13.57 | 158.62 ▼8.17 |
Posts /wp-admin/edit.php | 2,688 ▼2 | 3.24 ▲0.01 | 63.89 ▼2.86 | 139.97 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,668 ▲7 | 18.07 ▲1.55 | 418.00 ▼7.33 | 159.90 ▲6.79 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.50 ▼0.02 | 145.58 ▲4.30 | 190.40 ▲0.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/latpay-direct-payment/hps-checkout-gateway.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in latpay-direct-payment/assets to your readme.txt
latpay-direct-payment/hps-checkout-gateway.php 92% from 13 tests
This is the main PHP file of "LatPay Direct Payment Gateway" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("latpay-direct-payment.php" instead of "hps-checkout-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected542 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 99 | 37 | 495 |
SVG | 3 | 0 | 2 | 47 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 0.36MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Get-Started/screenshot-3.png | 62.32KB | 23.55KB | ▼ 62.22% |
Get-Started/screenshot-2.png | 80.25KB | 30.58KB | ▼ 61.90% |
images/cards.png | 7.69KB | 2.57KB | ▼ 66.59% |
Get-Started/screenshot-5.png | 39.11KB | 15.22KB | ▼ 61.07% |
Get-Started/screenshot-1.png | 98.80KB | 40.10KB | ▼ 59.41% |