Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▲1.04ms] Passed 4 tests
Server-side resources used by 1stPayGateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.71 ▲2.27 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.62 ▼1.07 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 53.68 ▲4.53 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 95.21 ▼1.36 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.94 ▲4.30 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by 1stPayGateway for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.10 | 1.82 ▲0.07 | 43.65 ▼0.09 |
Dashboard /wp-admin | 2,209 ▲35 | 4.83 ▼1.07 | 95.74 ▼12.26 | 39.80 ▼9.16 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.98 ▼0.02 | 39.64 ▼2.45 | 35.02 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 18.31 ▲0.80 | 642.18 ▼51.59 | 53.35 ▼0.77 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.16 ▼0.12 | 96.80 ▼10.41 | 42.50 ▼0.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
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
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: merchant, checkout, woocommerce, plugin, payment...
1stpaygateway-for-woocommerce/1stpaygateway.php 92% from 13 tests
"1stPayGateway for WooCommerce" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("1stpaygateway-for-woocommerce.php" instead of "1stpaygateway.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
There were no executable files found in this plugin1,159 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 156 | 247 | 1,059 |
Markdown | 1 | 23 | 0 | 50 |
JavaScript | 1 | 8 | 5 | 31 |
XML | 2 | 0 | 0 | 19 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 41.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 54 | 98.18% |
▷ Protected methods | 1 | 1.82% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 51 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 51 | 100.00% |
▷ Public constants | 51 | 100.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
3 PNG files occupy 0.35MB with 0.23MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/capture_checkout_form.PNG | 46.30KB | 16.00KB | ▼ 65.45% |
assets/capture_thankyou_page.PNG | 272.92KB | 64.21KB | ▼ 76.47% |
assets/capture_my_account.PNG | 43.77KB | 20.49KB | ▼ 53.19% |