Benchmarks
Plugin footprint 83% from 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.00MB] [CPU: ▼4.76ms] Passed 4 tests
An overview of server-side resources used by Payment Gateway through MilaCoins on WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.34 ▲0.10 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.62 ▼6.88 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.20 ▼5.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.50 ▼6.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.18 ▲0.25 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Payment Gateway through MilaCoins on WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.19 ▼1.18 | 1.58 ▼0.22 | 43.48 ▼3.19 |
Dashboard /wp-admin | 2,203 ▲12 | 5.79 ▼0.11 | 103.23 ▼3.87 | 38.26 ▼9.84 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.17 ▲0.13 | 38.65 ▲1.61 | 35.17 ▲2.10 |
Add New Post /wp-admin/post-new.php | 1,524 ▲5 | 23.19 ▲0.07 | 650.68 ▼37.94 | 68.09 ▲12.04 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.24 ▲0.09 | 97.08 ▼2.82 | 39.83 ▼7.83 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/payment-gateway-for-milacoins-on-woocommerce/includes/class-wc-milacoins-gateway.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/payment-gateway-for-milacoins-on-woocommerce/woocommerce-gateway-milacoins.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% 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
5 plugin tags: gateway, payment gateway, woocommerce payments, crypto, payments
payment-gateway-for-milacoins-on-woocommerce/woocommerce-gateway-milacoins.php 85% from 13 tests
Analyzing the main PHP file in "Payment Gateway through MilaCoins on WooCommerce" version 1.0.2
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("payment-gateway-for-milacoins-on-woocommerce.php" instead of "woocommerce-gateway-milacoins.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 436 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,132 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 20 | 4 | 569 |
PHP | 2 | 31 | 12 | 311 |
JavaScript | 3 | 13 | 54 | 205 |
CSS | 1 | 6 | 0 | 47 |
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 | 14.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin