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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.27MB] [CPU: ▼6.30ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Victoriabank Payment Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 43.09 ▲2.28 |
Dashboard /wp-admin | 3.62 ▲0.28 | 54.99 ▼7.84 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 47.36 ▼0.34 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 94.51 ▼14.76 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 35.76 ▼2.26 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Victoriabank Payment Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.31 ▼0.26 | 2.06 ▲0.45 | 43.39 ▲2.06 |
Dashboard /wp-admin | 2,195 ▲26 | 5.47 ▼0.24 | 81.21 ▼19.81 | 38.74 ▼5.64 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.99 ▼0.03 | 33.69 ▲0.53 | 35.33 ▼1.92 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.16 ▲0.02 | 575.81 ▼130.02 | 49.50 ▼14.71 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.26 ▲0.11 | 95.92 ▼1.84 | 39.76 ▼3.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Fruitware\\VictoriaBankGateway\\VictoriaBank\\Request' not found in wp-content/plugins/wc-victoriabank/vendor/fruitware/victoria-bank-gateway/src/VictoriaBank/Completion/CompletionRequest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Fruitware\\VictoriaBankGateway\\VictoriaBank\\Response' not found in wp-content/plugins/wc-victoriabank/vendor/fruitware/victoria-bank-gateway/src/VictoriaBank/Completion/CompletionResponse.php:12
- > PHP Fatal error
Uncaught Error: Class 'Fruitware\\VictoriaBankGateway\\VictoriaBank\\Response' not found in wp-content/plugins/wc-victoriabank/vendor/fruitware/victoria-bank-gateway/src/VictoriaBank/Reversal/ReversalResponse.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wc-victoriabank/vendor/fruitware/victoria-bank-gateway/Tests/VictoriaBankGatewayTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'Fruitware\\VictoriaBankGateway\\VictoriaBank\\Response' not found in wp-content/plugins/wc-victoriabank/vendor/fruitware/victoria-bank-gateway/src/VictoriaBank/Authorization/AuthorizationResponse.php:12
- > PHP Fatal error
Uncaught Error: Class 'Fruitware\\VictoriaBankGateway\\VictoriaBank\\Request' not found in wp-content/plugins/wc-victoriabank/vendor/fruitware/victoria-bank-gateway/src/VictoriaBank/Reversal/ReversalRequest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Fruitware\\VictoriaBankGateway\\VictoriaBank\\Request' not found in wp-content/plugins/wc-victoriabank/vendor/fruitware/victoria-bank-gateway/src/VictoriaBank/Authorization/AuthorizationRequest.php:15
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/wc-victoriabank/vendor/fruitware/victoria-bank-gateway/Tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wc-victoriabank/vendor/fruitware/victoria-bank-gateway/Tests/bootstrap.php on line 3
- > PHP Warning
require_once(wp-content/plugins/wc-victoriabank/vendor/fruitware/victoria-bank-gateway/Tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wc-victoriabank/vendor/fruitware/victoria-bank-gateway/Tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Fruitware\\VictoriaBankGateway\\VictoriaBank\\ResponseInterface' not found in wp-content/plugins/wc-victoriabank/vendor/fruitware/victoria-bank-gateway/src/VictoriaBank/Response.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
10 plugin tags: bank, gateway, credit card, vb, moldova...
wc-victoriabank/wc-victoriabank.php Passed 13 tests
The principal PHP file in "WooCommerce Victoriabank Payment Gateway" v. 1.3.8 is loaded by WordPress automatically on each request
104 characters long description:
Accept Visa and Mastercard directly on your store with the Victoriabank payment gateway for WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,908 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 583 | 1,103 | 2,737 |
PO File | 2 | 194 | 198 | 531 |
XML | 14 | 4 | 0 | 325 |
JSON | 3 | 0 | 0 | 154 |
Markdown | 1 | 64 | 0 | 138 |
YAML | 3 | 6 | 1 | 21 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 18.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 2 | 11.76% |
▷ Concrete classes | 15 | 88.24% |
▷ Final classes | 0 | 0.00% |
Methods | 177 | |
▷ Static methods | 44 | 24.86% |
▷ Public methods | 120 | 67.80% |
▷ Protected methods | 54 | 30.51% |
▷ Private methods | 3 | 1.69% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 92 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 92 | 100.00% |
▷ Public constants | 92 | 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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/card-visa.png | 0.82KB | 0.85KB | 0.00% |
assets/img/victoriabank.png | 6.49KB | 3.46KB | ▼ 46.64% |
assets/img/paymentsystems.png | 5.16KB | 2.90KB | ▼ 43.86% |
assets/img/card-mastercard.png | 3.87KB | 2.16KB | ▼ 44.22% |