Benchmarks
Plugin footprint 83% from 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: ▼10.96ms] Passed 4 tests
Analyzing server-side resources used by Walletdoc Payment Gateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.46 ▲0.87 |
Dashboard /wp-admin | 3.31 ▲0.00 | 39.52 ▼29.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.46 ▲2.79 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 74.97 ▼12.81 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.69 ▼2.67 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Walletdoc Payment Gateway for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲8 | 14.73 ▲0.17 | 1.73 ▼0.34 | 37.54 ▼6.45 |
Dashboard /wp-admin | 2,203 ▲23 | 5.62 ▼0.06 | 95.21 ▼4.22 | 43.95 ▲0.14 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 1.99 ▼0.03 | 40.18 ▲4.29 | 38.43 ▲0.80 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.16 ▲0.11 | 636.43 ▼58.73 | 52.50 ▼0.47 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.23 ▲0.14 | 97.33 ▼3.60 | 42.31 ▼4.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Gateway_Walletdoc' not found in wp-content/plugins/wc-walletdoc-payment-gateway/payment_token.php:7
- > PHP Fatal error
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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: walletdoc, credit card, woocommerce, debit card, eft...
wc-walletdoc-payment-gateway/woocoomerce-walletdoc.php 77% from 13 tests
Analyzing the main PHP file in "Walletdoc Payment Gateway for WooCommerce" version 1.5.1
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- 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: The principal plugin file should be the same as the plugin slug ("wc-walletdoc-payment-gateway.php" instead of "woocoomerce-walletdoc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,320 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 1,252 | 344 | 2,018 |
JavaScript | 3 | 721 | 89 | 292 |
CSS | 2 | 1 | 0 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.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 | 67 | |
▷ Static methods | 4 | 5.97% |
▷ Public methods | 67 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon.png | 8.30KB | 3.84KB | ▼ 53.68% |
assets/icon11.png | 9.15KB | 3.51KB | ▼ 61.60% |