Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.05ms] Passed 4 tests
An overview of server-side resources used by Viva Wallet Smart Checkout for your WooCommerce store
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.03 ▼2.95 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.74 ▼9.83 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.18 ▼4.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.30 ▼0.37 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.59 ▼3.35 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Viva Wallet Smart Checkout for your WooCommerce store
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.15 ▼1.23 | 1.90 ▲0.06 | 39.92 ▼1.41 |
Dashboard /wp-admin | 2,206 ▲18 | 5.81 ▲0.93 | 101.13 ▼13.58 | 41.07 ▲2.86 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.02 | 39.29 ▼1.24 | 36.48 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.36 ▲0.77 | 614.75 ▼71.00 | 54.64 ▼3.09 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.24 ▲0.06 | 97.05 ▼1.18 | 45.36 ▲3.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vivawallet-woocommerce-gateway/wc-vivawallet.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: payment gateway, payment request, smart checkout, payments, credit card...
vivawallet-woocommerce-gateway/wc-vivawallet.php 85% from 13 tests
Analyzing the main PHP file in "Viva Wallet Smart Checkout for your WooCommerce store" version 3.6.8
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("vivawallet-woocommerce-gateway.php" instead of "wc-vivawallet.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin958 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 75 | 62 | 588 |
PO File | 4 | 124 | 248 | 370 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 78.00 |
▷ Minimum class complexity | 78.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 8.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cards-wallets-transfers-more.png | 1.45KB | 1.07KB | ▼ 25.74% |
vivawallet.png | 2.32KB | 1.67KB | ▼ 27.99% |