Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼298.16ms] Passed 4 tests
Server-side resources used by 8Pay Payment Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 51.88 ▼0.52 |
Dashboard /wp-admin | 3.43 ▲0.02 | 33.84 ▼0.22 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 39.76 ▲2.16 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.07 | 94.73 ▼1,194.05 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 25.24 ▲2.68 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for 8Pay Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,775 ▲21 | 15.63 ▲0.03 | 5.70 ▼0.24 | 2.27 ▼0.62 |
Dashboard /wp-admin | 2,900 ▲39 | 6.01 ▼0.19 | 116.81 ▼35.46 | 155.71 ▼6.39 |
Posts /wp-admin/edit.php | 2,667 ▼21 | 3.24 ▲0.01 | 65.35 ▲2.79 | 143.70 ▲7.43 |
Add New Post /wp-admin/post-new.php | 1,766 ▲105 | 21.37 ▲4.84 | 474.84 ▲51.25 | 155.80 ▼3.66 |
Media Library /wp-admin/upload.php | 1,710 ▲9 | 5.50 ▼0.02 | 147.28 ▲9.16 | 194.57 ▲2.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: 8pay, crypto, payment
8pay-payment-gateway/8pay-payment-gateway.php Passed 13 tests
"8Pay Payment Gateway" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
Take crypto payments on your store using 8Pay.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin948 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 152 | 279 | 818 |
SVG | 10 | 0 | 2 | 90 |
CSS | 1 | 6 | 0 | 32 |
JavaScript | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 13 | 33.33% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 13 | |
▷ Global constants | 5 | 38.46% |
▷ Class constants | 8 | 61.54% |
▷ Public constants | 8 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/icon.png | 1.70KB | 1.51KB | ▼ 11.47% |