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.01MB] [CPU: ▼10.81ms] Passed 4 tests
This is a short check of server-side resources used by Payment Gateway via Valitor for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.22 ▼4.28 |
Dashboard /wp-admin | 3.33 ▼0.02 | 48.74 ▼18.51 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.29 ▲1.76 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.56 ▼20.00 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 34.89 ▼0.44 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Payment Gateway via Valitor for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.18 ▼0.54 | 1.77 ▲0.08 | 43.35 ▼3.95 |
Dashboard /wp-admin | 2,198 ▲18 | 5.58 ▼0.07 | 89.69 ▼7.54 | 39.78 ▲0.31 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.94 ▼0.00 | 38.90 ▼0.68 | 34.45 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,535 ▲8 | 25.27 ▲2.19 | 641.62 ▲1.55 | 70.72 ▲9.79 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.23 ▼0.06 | 95.58 ▼0.12 | 45.51 ▲3.82 |
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
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- 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
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
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/payment-gateway-via-valitor-for-woocommerce/valitor.php:17
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/payment-gateway-via-valitor-for-woocommerce/includes/class-wc-gateway-valitor.php:3
- > PHP Warning
The use statement with non-compound name 'Exception' has no effect in wp-content/plugins/payment-gateway-via-valitor-for-woocommerce/includes/class-payment-method-valitor-registration.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: valitor, gateway, credit card, woocommerce
payment-gateway-via-valitor-for-woocommerce/valitor.php 77% from 13 tests
The entry point to "Payment Gateway via Valitor for WooCommerce" version 1.9.35 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("payment-gateway-via-valitor-for-woocommerce.php" instead of "valitor.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin924 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 100 | 237 | 719 |
PO File | 1 | 68 | 77 | 178 |
JavaScript | 2 | 6 | 14 | 27 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 30 | |
▷ Static methods | 1 | 3.33% |
▷ Public methods | 18 | 60.00% |
▷ Protected methods | 11 | 36.67% |
▷ Private methods | 1 | 3.33% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cards.png | 5.49KB | 2.76KB | ▼ 49.80% |