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.18MB] [CPU: ▲1.27ms] Passed 4 tests
Analyzing server-side resources used by CashBill.pl - Płatności WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 41.01 ▼6.23 |
Dashboard /wp-admin | 3.52 ▲0.22 | 51.07 ▼1.24 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 54.63 ▲9.22 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 96.74 ▲6.81 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.59 ▲5.73 |
Server storage [IO: ▲0.17MB] [DB: ▲0.79MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for CashBill.pl - Płatności WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.24 ▼1.14 | 1.69 ▼0.06 | 39.98 ▼3.29 |
Dashboard /wp-admin | 2,237 ▲48 | 5.88 ▲0.96 | 98.80 ▼17.97 | 39.06 ▼4.77 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.06 ▲0.07 | 40.06 ▲5.18 | 35.29 ▲3.01 |
Add New Post /wp-admin/post-new.php | 1,542 ▲151 | 23.40 ▲5.00 | 612.98 ▲9.78 | 47.66 ▲1.10 |
Media Library /wp-admin/upload.php | 1,422 ▲40 | 4.21 ▲0.00 | 96.76 ▼1.01 | 42.28 ▼3.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.79MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CashBillChannelPayment' not found in wp-content/plugins/cashbill-payment-method/payment/CashBillInstallmentPayment.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cashbill-payment-method/view/admin/notice/success_save.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cashbill-payment-method/view/admin/option/basic.php:1
- > PHP Fatal error
Uncaught Error: Interface 'CashBill\\Payments\\Interfaces\\Data' not found in wp-content/plugins/cashbill-payment-method/lib/cashbill_sdk/Model/Options.php:20
- > PHP Fatal error
Uncaught Error: Class 'CashBillChannelPayment' not found in wp-content/plugins/cashbill-payment-method/payment/CashBillGooglePayPayment.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cashbill-payment-method/view/admin/notice/error_validation.php:1
- > PHP Fatal error
Uncaught Error: Class 'CashBillChannelPayment' not found in wp-content/plugins/cashbill-payment-method/payment/CashBillPaysafecardPayment.php:3
- > PHP Fatal error
Uncaught Error: Class 'CashBillChannelPayment' not found in wp-content/plugins/cashbill-payment-method/payment/CashBillTwistoPayment.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/cashbill-payment-method/payment/CashBillPaymentAbstract.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cashbill-payment-method/view/admin/notice/error_save.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in cashbill-payment-method/assets to your readme.txt
- Tags: You are using too many tags: 11 tag instead of maximum 10
cashbill-payment-method/woocommerce-cashbill.php 85% from 13 tests
Analyzing the main PHP file in "CashBill.pl - Płatności WooCommerce" version 2.3.1
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 244 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cashbill-payment-method.php" instead of "woocommerce-cashbill.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,514 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 240 | 381 | 1,372 |
CSS | 2 | 17 | 0 | 111 |
JavaScript | 1 | 2 | 0 | 21 |
SVG | 2 | 0 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 1 | 3.57% |
▷ Concrete classes | 27 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 18 | 19.15% |
▷ Public methods | 91 | 96.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.19% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
11 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/payment/logo_aliorraty_200x24.png | 5.86KB | 2.44KB | ▼ 58.32% |
img/payment/logo_blik_200x24.png | 3.47KB | 1.49KB | ▼ 56.96% |
img/payment/logo_paymentocc_200x24.png | 5.05KB | 2.34KB | ▼ 53.73% |
img/payment/logo_applepay_200x24.png | 2.84KB | 0.71KB | ▼ 75.13% |
img/payment/logo_paypal_200x24.png | 4.43KB | 2.13KB | ▼ 51.97% |