Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.94ms] Passed 4 tests
A check of server-side resources used by LatPay Direct Payment Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.52 ▼11.75 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.96 ▼3.85 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.58 ▲5.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.47 ▼2.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.85 ▼2.05 |
Server storage [IO: ▲0.51MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by LatPay Direct Payment Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.32 ▼1.12 | 4.18 ▲2.32 | 38.93 ▼3.12 |
Dashboard /wp-admin | 2,209 ▲21 | 5.88 ▼0.03 | 104.28 ▼9.83 | 39.06 ▼6.43 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.05 | 39.48 ▲5.92 | 35.24 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,542 ▲13 | 18.84 ▼4.02 | 577.52 ▼64.30 | 69.01 ▲17.15 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.02 | 98.96 ▲2.30 | 41.94 ▼3.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/latpay-direct-payment/hps-checkout-gateway.php
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5 in latpay-direct-payment/assets to your readme.txt
latpay-direct-payment/hps-checkout-gateway.php 92% from 13 tests
The main file in "LatPay Direct Payment Gateway" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be 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
There were no executable files found in this plugin542 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
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.36MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Get-Started/screenshot-5.png | 39.11KB | 15.22KB | ▼ 61.07% |
images/logo.png | 4.57KB | 1.61KB | ▼ 64.74% |
Get-Started/screenshot-2.png | 80.25KB | 30.58KB | ▼ 61.90% |
Get-Started/screenshot-4.png | 74.86KB | 27.32KB | ▼ 63.50% |
Get-Started/screenshot-3.png | 62.32KB | 23.55KB | ▼ 62.22% |