74% woo-millikart-payment

Code Review | WooCommerce MilliKart Payment

WordPress plugin WooCommerce MilliKart Payment scored74%from 54 tests.

About plugin

  • Plugin page: woo-millikart-pay...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.5
  • WordPress version: 6.3.1
  • First release: Jun 6, 2017
  • Latest release: Jun 6, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: hmammadov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /866 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.85 ▼0.6225.15 ▼11.69
Dashboard /wp-admin3.33 ▲0.0242.71 ▼0.71
Posts /wp-admin/edit.php3.19 ▼0.1631.32 ▼13.90
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.76 ▼9.50
Media Library /wp-admin/upload.php3.25 ▲0.0234.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,456 ▼31514.44 ▲0.160.47 ▼1.5715.22 ▼27.16
Dashboard /wp-admin2,209 ▲214.86 ▼0.18112.70 ▼1.3941.80 ▲1.69
Posts /wp-admin/edit.php45 ▼2,0440.44 ▼1.570.07 ▼41.389.74 ▼29.32
Add New Post /wp-admin/post-new.php1,519 ▲523.21 ▲5.64625.51 ▲26.1065.82 ▲13.58
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.0194.07 ▼11.7443.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP2832195
PO File24244119

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 code0.14
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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