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
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.99ms] Passed 4 tests
A check of server-side resources used by Dusupay Woocommerce Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.02 ▼3.84 |
Dashboard /wp-admin | 3.31 ▼0.03 | 51.72 ▼16.68 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 55.75 ▲4.17 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.89 ▼8.81 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.74 ▼6.62 |
Server storage [IO: ▲3.52MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Dusupay Woocommerce Gateway: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.39 ▲0.19 | 5.28 ▲3.73 | 90.54 ▲47.66 |
Dashboard /wp-admin | 2,200 ▲23 | 5.58 ▲0.07 | 81.84 ▼9.60 | 38.71 ▼3.85 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.18 ▲0.17 | 36.16 ▼1.60 | 31.46 ▼6.87 |
Add New Post /wp-admin/post-new.php | 1,528 ▼7 | 23.13 ▲5.12 | 666.39 ▲44.61 | 55.40 ▼14.84 |
Media Library /wp-admin/upload.php | 1,396 ▼4 | 4.17 ▼0.15 | 99.47 ▼6.38 | 45.87 ▼1.48 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dusupay-payment-gateway-for-woocommerce/dusupay_js_css.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dusupay-payment-gateway-for-woocommerce/dusupay.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Installed Plugin.), #2 (Configure Woocommerce > Settings > Payments.), #3 (Checkout Page.)
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
dusupay-payment-gateway-for-woocommerce/dusupay.php 92% from 13 tests
The primary PHP file in "Dusupay Woocommerce Gateway" version 2.0.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("dusupay-payment-gateway-for-woocommerce.php" instead of "dusupay.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
Good job! No executable or dangerous file extensions detected5,527 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 6 | 0 | 0 | 2,886 |
JavaScript | 5 | 382 | 157 | 1,606 |
PHP | 2 | 134 | 43 | 696 |
CSS | 6 | 68 | 19 | 339 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 47.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/images/glassy.png | 8.12KB | 3.45KB | ▼ 57.46% |
img/dusupaybtn6.png | 4.55KB | 2.14KB | ▼ 53.04% |
img/logo.png | 18.44KB | 7.50KB | ▼ 59.35% |
img/payicon.png | 0.85KB | 1.02KB | 0.00% |