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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.81ms] Passed 4 tests
Server-side resources used by Yaad Sarig Payment Gateway For WC
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 37.79 ▼3.97 |
Dashboard /wp-admin | 3.42 ▲0.12 | 43.15 ▼4.36 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 46.23 ▲0.90 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 92.24 ▼2.41 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 29.54 ▼4.48 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Yaad Sarig Payment Gateway For WC
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.79 ▲0.41 | 1.75 ▲0.00 | 41.64 ▼0.37 |
Dashboard /wp-admin | 2,206 ▲15 | 4.90 ▲0.01 | 108.18 ▲6.31 | 42.58 ▼0.29 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.00 | 39.70 ▲0.97 | 36.00 ▼3.59 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 22.88 ▼0.25 | 589.77 ▼58.02 | 51.09 ▼2.48 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.17 ▼0.02 | 94.80 ▼7.00 | 40.22 ▼4.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 28× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'tb_infra_1_0_11\\tb_wc_item' not found in wp-content/plugins/yaad-sarig-payment-gateway-for-wc/10bit-woocommerce-infra/class_tb_wc_item_v7.php:24
- > PHP Fatal error
Uncaught Error: Class 'tb_infra_1_0_11\\tb_wc_product' not found in wp-content/plugins/yaad-sarig-payment-gateway-for-wc/10bit-woocommerce-infra/class_tb_wc_product_v6.php:26
- > PHP Fatal error
Uncaught Error: Class 'tb_infra_1_0_11\\tb_wc_order' not found in wp-content/plugins/yaad-sarig-payment-gateway-for-wc/10bit-woocommerce-infra/class_tb_wc_order_v2.php:26
- > PHP Fatal error
Uncaught Error: Class 'tb_infra_1_0_11\\tb_wc_item' not found in wp-content/plugins/yaad-sarig-payment-gateway-for-wc/10bit-woocommerce-infra/class_tb_wc_item_v2.php:23
- > PHP Fatal error
Uncaught Error: Class 'tb_infra_1_0_11\\tb_wc_product' not found in wp-content/plugins/yaad-sarig-payment-gateway-for-wc/10bit-woocommerce-infra/class_tb_wc_product_v3.php:26
- > PHP Fatal error
Uncaught Error: Class 'tb_infra_1_0_11\\tb_wc_order' not found in wp-content/plugins/yaad-sarig-payment-gateway-for-wc/10bit-woocommerce-infra/class_tb_wc_order_v7.php:26
- > PHP Fatal error
Uncaught Error: Class 'tb_infra_1_0_11\\tb_wc_product' not found in wp-content/plugins/yaad-sarig-payment-gateway-for-wc/10bit-woocommerce-infra/class_tb_wc_product_v8.php:26
- > PHP Fatal error
Uncaught Error: Class 'tb_infra_1_0_11\\tb_wc_object' not found in wp-content/plugins/yaad-sarig-payment-gateway-for-wc/10bit-woocommerce-infra/class_tb_wc_order.php:27
- > PHP Fatal error
Uncaught Error: Class 'tb_infra_1_0_11\\tb_wc_product' not found in wp-content/plugins/yaad-sarig-payment-gateway-for-wc/10bit-woocommerce-infra/class_tb_wc_product_v5.php:26
- > PHP Fatal error
Uncaught Error: Class 'tb_infra_1_0_11\\tb_wc_order' not found in wp-content/plugins/yaad-sarig-payment-gateway-for-wc/10bit-woocommerce-infra/class_tb_wc_order_v3.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
yaad-sarig-payment-gateway-for-wc/woocommerce-gateway-yaadpay.php 85% from 13 tests
"Yaad Sarig Payment Gateway For WC" version 2.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("yaad-sarig-payment-gateway-for-wc.php" instead of "woocommerce-gateway-yaadpay.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.0" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,825 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 890 | 1,214 | 3,324 |
PO File | 1 | 137 | 236 | 239 |
JavaScript | 2 | 13 | 2 | 146 |
CSS | 2 | 7 | 0 | 116 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 9.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 5 | 16.67% |
▷ Concrete classes | 25 | 83.33% |
▷ Final classes | 2 | 8.00% |
Methods | 354 | |
▷ Static methods | 8 | 2.26% |
▷ Public methods | 317 | 89.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 37 | 10.45% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 32 | |
▷ Global constants | 4 | 12.50% |
▷ Class constants | 28 | 87.50% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/WWW.png | 1.44KB | 1.42KB | ▼ 1.08% |
assets/images/Facebook.png | 1.12KB | 1.10KB | ▼ 1.31% |
assets/images/YouTube.png | 1.32KB | 1.37KB | 0.00% |
assets/images/email.png | 3.42KB | 0.63KB | ▼ 81.68% |