Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼304.98ms] Passed 4 tests
This is a short check of server-side resources used by Fena Payment Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.12 | 57.13 ▲6.51 |
Dashboard /wp-admin | 3.46 ▲0.05 | 35.44 ▼41.16 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 43.58 ▲3.98 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 91.02 ▼1,188.98 |
Media Library /wp-admin/upload.php | 3.34 ▲0.05 | 32.65 ▲6.23 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Fena Payment Gateway for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,807 ▲63 | 15.23 ▼0.43 | 5.96 ▲0.03 | 2.46 ▲0.32 |
Dashboard /wp-admin | 2,907 ▲56 | 6.14 ▼0.06 | 118.48 ▼14.92 | 156.45 ▼6.17 |
Posts /wp-admin/edit.php | 2,701 ▲14 | 3.24 ▲0.01 | 93.96 ▲16.39 | 145.82 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,698 ▼54 | 21.18 ▲0.23 | 483.08 ▲6.29 | 200.44 ▲36.98 |
Media Library /wp-admin/upload.php | 1,704 ▲6 | 5.52 ▲0.01 | 164.83 ▲13.95 | 241.54 ▲45.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 items
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/faizpay-commerce/vendor/faizpay/php-payment-sdk/tests/ErrorTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/faizpay-commerce/vendor/faizpay/php-payment-sdk/tests/DeliveryAddressTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/faizpay-commerce/vendor/faizpay/php-payment-sdk/tests/ItemTest.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/faizpay-commerce/faizpay-commerce-gateway.php:25
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/faizpay-commerce/vendor/faizpay/php-payment-sdk/tests/ProviderTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/faizpay-commerce/vendor/faizpay/php-payment-sdk/tests/UserTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/faizpay-commerce/vendor/faizpay/php-payment-sdk/tests/NotificationHandlerTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/faizpay-commerce/vendor/faizpay/php-payment-sdk/tests/PaymentTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/faizpay-commerce/vendor/faizpay/php-payment-sdk/tests/ConnectionTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/faizpay-commerce/src/FaizPayPaymentGateway.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #1 is required in faizpay-commerce/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
faizpay-commerce/faizpay-commerce-gateway.php 77% from 13 tests
The principal PHP file in "Fena Payment Gateway for WooCommerce" v. 1.0.12 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("faizpay-commerce.php" instead of "faizpay-commerce-gateway.php")
- Git Repository: An alternative Git repository was detected
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
Good job! No executable or dangerous file extensions detected3,277 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 645 | 725 | 2,640 |
Markdown | 3 | 70 | 0 | 279 |
JSON | 4 | 0 | 0 | 188 |
SVG | 6 | 0 | 6 | 150 |
XML | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 36 | 100.00% |
▷ Final classes | 2 | 5.56% |
Methods | 185 | |
▷ Static methods | 52 | 28.11% |
▷ Public methods | 160 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 25 | 13.51% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 28 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 28 | 100.00% |
▷ Public constants | 28 | 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
PNG images were not found in this plugin