Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.16ms] Passed 4 tests
Server-side resources used by Yotta Pay Payment Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 41.19 ▲3.37 |
Dashboard /wp-admin | 3.37 ▲0.02 | 48.39 ▼12.45 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.78 ▲2.29 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.06 | 90.40 ▼18.60 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 31.89 ▲0.13 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Yotta Pay Payment Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲60 | 14.27 ▼0.08 | 2.03 ▲0.24 | 45.31 ▲7.47 |
Dashboard /wp-admin | 2,205 ▲27 | 5.62 ▼0.09 | 90.00 ▼27.06 | 39.88 ▼7.41 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▼0.02 | 38.31 ▲0.96 | 37.05 ▲2.60 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 22.70 ▼0.94 | 582.95 ▼99.04 | 45.83 ▼8.31 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.26 ▲0.05 | 100.64 ▼0.56 | 44.30 ▲0.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: payment request, yotta pay, woocommerce, online banking, ecommerce...
yottapay-payment-gateway/yottapay-payment-gateway.php Passed 13 tests
The main PHP script in "Yotta Pay Payment Gateway" version 2.0.0 is automatically included on every request by WordPress
84 characters long description:
Yotta Pay is the fastest and most secure way to accept payments via UK bank account.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin3,147 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 489 | 499 | 3,035 |
JavaScript | 3 | 12 | 16 | 112 |
PHP code Passed 2 tests
An short overview of 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.41 |
Average class complexity | 32.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 82 | 85.42% |
▷ Public methods | 59 | 61.46% |
▷ Protected methods | 1 | 1.04% |
▷ Private methods | 36 | 37.50% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon.png | 0.96KB | 1.12KB | 0.00% |
assets/logo_mobile_banking.png | 44.04KB | 18.33KB | ▼ 58.37% |
assets/icon_white.png | 2.83KB | 1.71KB | ▼ 39.82% |
assets/logo_card_payment.png | 44.26KB | 18.90KB | ▼ 57.30% |