Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.91ms] Passed 4 tests
A check of server-side resources used by Fena Payment Gateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.35 ▼0.72 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.40 ▼4.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.09 ▼4.53 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.50 ▼2.30 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.09 ▲2.75 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fena Payment Gateway for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.38 ▲0.11 | 1.73 ▲0.04 | 42.94 ▼2.28 |
Dashboard /wp-admin | 2,199 ▲22 | 5.56 ▼0.06 | 83.66 ▼3.17 | 39.10 ▲0.02 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.04 | 34.28 ▼0.59 | 33.44 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.11 ▲0.15 | 679.52 ▲30.27 | 58.29 ▼0.19 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.19 ▲0.01 | 109.87 ▲9.28 | 48.12 ▲3.34 |
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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- 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
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
Almost there! Just fix the following items
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fena-ecommerce/vendor/fena/php-payment-sdk/tests/ConnectionTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fena-ecommerce/vendor/fena/php-payment-sdk/tests/ProviderTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/fena-ecommerce/src/FenaPaymentGateway.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fena-ecommerce/fena-commerce-gateway.php:26
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fena-ecommerce/vendor/fena/php-payment-sdk/tests/DeliveryAddressTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fena-ecommerce/vendor/fena/php-payment-sdk/tests/PaymentTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fena-ecommerce/vendor/fena/php-payment-sdk/tests/NotificationHandlerTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fena-ecommerce/vendor/fena/php-payment-sdk/tests/ErrorTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fena-ecommerce/vendor/fena/php-payment-sdk/tests/UserTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fena-ecommerce/vendor/fena/php-payment-sdk/tests/ItemTest.php:10
- > 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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
fena-ecommerce/fena-commerce-gateway.php 85% from 13 tests
The entry point to "Fena Payment Gateway for WooCommerce" version 1.2.0 is a PHP file that has certain tags in its header comment area
Please take the time 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: It is recommended to name the main PHP file as the plugin slug ("fena-ecommerce.php" instead of "fena-commerce-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,610 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 542 | 699 | 2,392 |
JSON | 3 | 0 | 0 | 98 |
Markdown | 2 | 27 | 0 | 78 |
SVG | 1 | 0 | 0 | 22 |
XML | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 2 | 6.67% |
Methods | 173 | |
▷ Static methods | 37 | 21.39% |
▷ Public methods | 158 | 91.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 8.67% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected