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.02MB] [CPU: ▼5.46ms] Passed 4 tests
A check of server-side resources used by Payment Gateway via ValitorPay for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.02 ▲0.29 |
Dashboard /wp-admin | 3.33 ▼0.01 | 46.12 ▼15.05 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.06 ▲1.29 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 81.19 ▼6.43 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.69 ▼0.64 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Payment Gateway via ValitorPay for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲65 | 14.13 ▼0.58 | 1.80 ▲0.08 | 44.34 ▲0.46 |
Dashboard /wp-admin | 2,209 ▲28 | 5.63 ▼0.07 | 93.12 ▼8.19 | 39.91 ▼2.83 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.00 ▲0.03 | 43.45 ▲4.56 | 36.24 ▲3.81 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.51 ▲0.16 | 643.85 ▼63.86 | 59.36 ▼2.03 |
Media Library /wp-admin/upload.php | 1,414 ▲17 | 4.20 ▲0.03 | 100.11 ▼4.20 | 41.94 ▼2.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #3 is missing in valitorpay-payment-gateway-for-woocommerce/assets to your readme.txt
valitorpay-payment-gateway-for-woocommerce/valitorpay-payment-gateway-for-woocommerce.php Passed 13 tests
Analyzing the main PHP file in "Payment Gateway via ValitorPay for WooCommerce" version 1.2.15
45 characters long description:
Extends WooCommerce with a ValitorPay gateway
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
No dangerous file extensions were detected1,470 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 260 | 641 | 1,425 |
CSS | 1 | 0 | 0 | 26 |
JavaScript | 1 | 1 | 0 | 19 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 36.86 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 3 | 4.11% |
▷ Public methods | 60 | 82.19% |
▷ Protected methods | 9 | 12.33% |
▷ Private methods | 4 | 5.48% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
No PNG images were found in this plugin