Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.73ms] Passed 4 tests
Server-side resources used by FedaPay Gateway for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.04 ▼5.68 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.83 ▼3.44 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.51 ▲1.03 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 78.62 ▼14.84 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.21 ▲5.06 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 47 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_wc_fedapay_orders_transactions |
New WordPress options |
---|
wc_fedapay_gateway_bootstrap_warning_message |
widget_theysaidso_widget |
widget_recent-comments |
wc_fedapay_db_version |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FedaPay Gateway for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.23 ▼1.43 | 1.69 ▼0.24 | 43.18 ▼1.43 |
Dashboard /wp-admin | 2,229 ▲38 | 5.90 ▲1.07 | 98.51 ▼8.17 | 39.17 ▼5.49 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.02 ▼0.03 | 42.20 ▲4.62 | 35.53 ▼3.40 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 23.63 ▲6.12 | 667.99 ▼20.49 | 50.37 ▼7.98 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.15 ▼0.04 | 99.87 ▼1.52 | 43.55 ▼1.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- wc_fedapay_gateway_bootstrap_warning_message
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FedaPay\\Resource' not found in wp-content/plugins/woo-gateway-fedapay/vendor/fedapay-php/lib/ApiKey.php:16
- > PHP Fatal error
Uncaught Error: Class 'FedaPay\\Error\\Base' not found in wp-content/plugins/woo-gateway-fedapay/vendor/fedapay-php/lib/Error/SignatureVerification.php:10
- > PHP Fatal error
Uncaught Error: Interface 'FedaPay\\HttpClient\\ClientInterface' not found in wp-content/plugins/woo-gateway-fedapay/vendor/fedapay-php/lib/HttpClient/CurlClient.php:32
- > PHP Fatal error
Uncaught Error: Class 'FedaPay\\FedaPayObject' not found in wp-content/plugins/woo-gateway-fedapay/vendor/fedapay-php/lib/Resource.php:13
- > PHP Fatal error
Uncaught Error: Class 'FedaPay\\Resource' not found in wp-content/plugins/woo-gateway-fedapay/vendor/fedapay-php/lib/Event.php:19
- > PHP Fatal error
Uncaught Error: Class 'FedaPay\\Error\\Base' not found in wp-content/plugins/woo-gateway-fedapay/vendor/fedapay-php/lib/Error/ApiConnection.php:10
- > PHP Fatal error
Uncaught Error: Class 'FedaPay\\Resource' not found in wp-content/plugins/woo-gateway-fedapay/vendor/fedapay-php/lib/Account.php:18
- > PHP Fatal error
Uncaught Error: Class 'FedaPay\\Error\\Base' not found in wp-content/plugins/woo-gateway-fedapay/vendor/fedapay-php/lib/Error/InvalidRequest.php:10
- > PHP Fatal error
Uncaught Error: Class 'FedaPay\\Resource' not found in wp-content/plugins/woo-gateway-fedapay/vendor/fedapay-php/lib/Customer.php:18
- > PHP Fatal error
Uncaught Error: Class 'FedaPay\\Resource' not found in wp-content/plugins/woo-gateway-fedapay/vendor/fedapay-php/lib/Log.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #4 in woo-gateway-fedapay/assets to your readme.txt
- Screenshots: Please add an image for screenshot #5 (Choose payment mode.)
woo-gateway-fedapay/woo-gateway-fedapay.php Passed 13 tests
The primary PHP file in "FedaPay Gateway for WooCommerce" version 0.3.4 is used by WordPress to initiate all plugin functionality
71 characters long description:
Take credit card and mobile money payments on your store using Fedapay.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
These items require your attention
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/woo-gateway-fedapay/vendor/fedapay-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 466 | 951 | 2,021 |
PO File | 1 | 53 | 61 | 180 |
JavaScript | 2 | 31 | 10 | 112 |
SVG | 1 | 0 | 1 | 43 |
XML | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 7 | |
Classes | 25 | |
▷ Abstract classes | 5 | 20.00% |
▷ Concrete classes | 20 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 53 | 36.05% |
▷ Public methods | 117 | 79.59% |
▷ Protected methods | 12 | 8.16% |
▷ Private methods | 18 | 12.24% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 11 | |
▷ Global constants | 4 | 36.36% |
▷ Class constants | 7 | 63.64% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin