Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.21ms] Passed 4 tests
An overview of server-side resources used by VellaPay Payment Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 41.34 ▼5.03 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.99 ▼2.34 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.67 ▼0.87 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.83 ▼12.58 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.59 ▲1.70 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for VellaPay Payment Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.28 ▼1.31 | 1.62 ▼0.30 | 43.14 ▼1.13 |
Dashboard /wp-admin | 2,214 ▲23 | 5.88 ▼0.02 | 112.28 ▲10.05 | 44.51 ▲3.42 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.02 | 37.99 ▲1.38 | 33.95 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,522 ▲8 | 17.71 ▲0.15 | 658.46 ▼2.68 | 51.73 ▼0.11 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.22 ▲0.01 | 97.83 ▼4.24 | 42.83 ▲1.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Requires at least: The plugin version is formatted incorrectly
vellapay-payment-gateway/woo-vella-pay.php 77% from 13 tests
The main PHP script in "VellaPay Payment Gateway" version 1.0.5 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "5.2 or higher")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("vellapay-payment-gateway.php" instead of "woo-vella-pay.php")
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
No dangerous file extensions were detected834 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 297 | 361 | 685 |
JavaScript | 1 | 22 | 9 | 115 |
SVG | 1 | 0 | 0 | 26 |
CSS | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 100.00 |
▷ Minimum class complexity | 100.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 90.91% |
▷ Protected methods | 2 | 9.09% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 PNG file occupies 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/vella-pay-icon.png | 94.55KB | 39.76KB | ▼ 57.95% |