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 gracefully, with no errors
Server metrics [RAM: ▼0.04MB] [CPU: ▼12.33ms] Passed 4 tests
This is a short check of server-side resources used by Fiizy Pay Later Multi-lender Payment Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.75 ▼1.52 |
Dashboard /wp-admin | 3.33 ▲0.03 | 34.33 ▼18.04 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 39.96 ▼4.63 |
Add New Post /wp-admin/post-new.php | 5.57 ▼0.32 | 79.63 ▼22.26 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 30.58 ▼4.40 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 141 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
woocommerce_fiizy_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Fiizy Pay Later Multi-lender Payment Gateway for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.60 ▼0.64 | 4.38 ▲2.18 | 40.81 ▼11.35 |
Dashboard /wp-admin | 2,213 ▲22 | 5.86 ▼0.04 | 107.01 ▲5.41 | 40.03 ▲0.44 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.02 | 39.12 ▼1.33 | 38.97 ▲5.96 |
Add New Post /wp-admin/post-new.php | 1,551 ▲14 | 18.15 ▼4.95 | 589.63 ▼84.57 | 65.48 ▲9.04 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.06 | 98.22 ▼17.25 | 42.45 ▼9.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 30× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/fiizy-pay-later-multi-lender-payment-gateway-for-woocommerce/templates/hook/pay-with-fiizy.php:1
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\CacheException' not found in wp-content/plugins/fiizy-pay-later-multi-lender-payment-gateway-for-woocommerce/vendor/psr/simple-cache/src/InvalidArgumentException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/fiizy-pay-later-multi-lender-payment-gateway-for-woocommerce/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Fiizy\\Serializer\\SerializerInterface' not found in wp-content/plugins/fiizy-pay-later-multi-lender-payment-gateway-for-woocommerce/vendor/fiizy/fiizy-api-sdk/src/Serializer/SimpleSerializer.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/fiizy-pay-later-multi-lender-payment-gateway-for-woocommerce/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Fiizy\\Serializer\ormalizer\ormalizerInterface' not found in wp-content/plugins/fiizy-pay-later-multi-lender-payment-gateway-for-woocommerce/vendor/fiizy/fiizy-api-sdk/src/Serializer/Normalizer/ObjectNormalizer.php:8
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/fiizy-pay-later-multi-lender-payment-gateway-for-woocommerce/src/Gateway.php:47
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/fiizy-pay-later-multi-lender-payment-gateway-for-woocommerce/src/Logger.php:39
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\CacheInterface' not found in wp-content/plugins/fiizy-pay-later-multi-lender-payment-gateway-for-woocommerce/src/Util/Cache.php:44
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fiizy-pay-later-multi-lender-payment-gateway-for-woocommerce/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:15
- > 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 Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: payments, fiizy, woocommerce
fiizy-pay-later-multi-lender-payment-gateway-for-woocommerce/woocommerce-fiizy.php 77% from 13 tests
This is the main PHP file of "Fiizy Pay Later Multi-lender Payment Gateway for WooCommerce" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fiizy-pay-later-multi-lender-payment-gateway-for-woocommerce.php" instead of "woocommerce-fiizy.php")
- Description: The description should be shorter than 140 characters (currently 239 characters long)
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 detected5,740 lines of code in 130 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 1,282 | 4,505 | 4,883 |
JSON | 6 | 0 | 0 | 407 |
Markdown | 7 | 73 | 0 | 239 |
PO File | 1 | 65 | 81 | 177 |
SVG | 2 | 0 | 1 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 21 | |
Traits | 2 | |
Classes | 80 | |
▷ Abstract classes | 6 | 7.50% |
▷ Concrete classes | 74 | 92.50% |
▷ Final classes | 7 | 9.46% |
Methods | 431 | |
▷ Static methods | 41 | 9.51% |
▷ Public methods | 374 | 86.77% |
▷ Protected methods | 45 | 10.44% |
▷ Private methods | 12 | 2.78% |
Functions | 12 | |
▷ Named functions | 3 | 25.00% |
▷ Anonymous functions | 9 | 75.00% |
Constants | 73 | |
▷ Global constants | 6 | 8.22% |
▷ Class constants | 67 | 91.78% |
▷ Public constants | 67 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/fiizy_payment_method_icon.png | 0.35KB | 0.26KB | ▼ 25.14% |
assets/images/fiizy_payment_method.png | 1.24KB | 0.88KB | ▼ 29.62% |