100% ccavenue-payment-gateway-woocommerce-integration-kit

Code Review | CCAvenue Payment Gateway Integration Kit for WooCommerce

WordPress plugin CCAvenue Payment Gateway Integration Kit for WooCommerce scored 100% from 53 tests.

About plugin

  • Plugin page: ccavenue-payment-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 5.8.1
  • First release: Apr 29, 2016
  • Latest release: Apr 29, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: saifeer (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 1,301 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼272.06ms] Passed 4 tests

Analyzing server-side resources used by CCAvenue Payment Gateway Integration Kit for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1531.01 ▲8.41
Dashboard /wp-admin3.09 ▲0.0444.21 ▲10.72
Posts /wp-admin/edit.php3.14 ▲0.0441.11 ▼0.74
Add New Post /wp-admin/post-new.php5.46 ▲0.0389.39 ▼1,085.01
Media Library /wp-admin/upload.php3.03 ▲0.0328.33 ▼10.89

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CCAvenue Payment Gateway Integration Kit for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲6815.83 ▲0.237.89 ▼1.4945.11 ▼3.89
Dashboard /wp-admin2,931 ▲815.89 ▼0.12131.75 ▼3.8397.48 ▼8.12
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0065.65 ▲3.1583.19 ▼6.82
Add New Post /wp-admin/post-new.php1,653 ▲17418.83 ▲1.69354.03 ▲1.39107.50 ▲1.71
Media Library /wp-admin/upload.php1,772 ▼05.01 ▲0.03145.07 ▼10.75113.91 ▲0.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: woocommerce payment, payment gateway, ccavenue

ccavenue-payment-gateway-woocommerce-integration-kit/index.php 92% from 13 tests

This is the main PHP file of "CCAvenue Payment Gateway Integration Kit for WooCommerce" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ccavenue-payment-gateway-woocommerce-integration-kit.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin428 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
▷ Static methods14.35%
▷ Public methods1356.52%
▷ Protected methods1043.48%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin