Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.18MB] [CPU: ▼8.95ms] Passed 4 tests
Server-side resources used by WooCommerce MilliKart Payment
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▼0.62 | 25.15 ▼11.69 |
Dashboard /wp-admin | 3.33 ▲0.02 | 42.71 ▼0.71 |
Posts /wp-admin/edit.php | 3.19 ▼0.16 | 31.32 ▼13.90 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.76 ▼9.50 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.44 ▲1.54 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_woocommerce_millikart |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
millikart_db_version |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
WooCommerce MilliKart Payment: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,456 ▼315 | 14.44 ▲0.16 | 0.47 ▼1.57 | 15.22 ▼27.16 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▼0.18 | 112.70 ▼1.39 | 41.80 ▲1.69 |
Posts /wp-admin/edit.php | 45 ▼2,044 | 0.44 ▼1.57 | 0.07 ▼41.38 | 9.74 ▼29.32 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 23.21 ▲5.64 | 625.51 ▲26.10 | 65.82 ▲13.58 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.16 ▼0.01 | 94.07 ▼11.74 | 43.08 ▼1.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_woocommerce_millikart
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- millikart_db_version
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-millikart-payment/class-woocommerce-millikart-payment.php:2
- > 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 Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: payment, millikart, woocommerce, woocommerce payment, payment gateways...
woo-millikart-payment/woocommerce-millikart-payment.php 85% from 13 tests
The principal PHP file in "WooCommerce MilliKart Payment" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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 ("woo-millikart-payment.php" instead of "woocommerce-millikart-payment.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 plugin314 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 8 | 32 | 195 |
PO File | 2 | 42 | 44 | 119 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin