83% chikkili-google-pay-for-woocommerce

Code Review | Chikkili- Google Pay India for Woocommerce

WordPress plugin Chikkili- Google Pay India for Woocommerce scored83%from 54 tests.

About plugin

  • Plugin page: chikkili-google-p...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 26, 2021
  • Latest release: Nov 7, 2023
  • Number of updates: 18
  • Update frequency: every 43.0 days
  • Top authors: sarankumar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /8,752 total downloads


Plugin footprint 83% from 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.09MB] [CPU: ▼5.19ms] Passed 4 tests

This is a short check of server-side resources used by Chikkili- Google Pay India for Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0939.60 ▼4.94
Dashboard /wp-admin3.40 ▲0.1049.15 ▼5.10
Posts /wp-admin/edit.php3.52 ▲0.1649.32 ▼4.12
Add New Post /wp-admin/post-new.php5.98 ▲0.0994.45 ▼6.58
Media Library /wp-admin/upload.php3.33 ▲0.0935.39 ▲3.49

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Chikkili- Google Pay India for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.22 ▼0.161.77 ▲0.0941.52 ▼2.78
Dashboard /wp-admin2,198 ▲205.57 ▼0.0693.33 ▼24.7142.00 ▼3.26
Posts /wp-admin/edit.php2,097 ▼31.97 ▲0.0139.27 ▼1.3436.39 ▲2.71
Add New Post /wp-admin/post-new.php1,526 ▼023.12 ▼0.11608.97 ▼93.8143.16 ▼22.08
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.0294.51 ▼8.6240.83 ▼3.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 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 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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/chikkili-google-pay-for-woocommerce/includes/class-chikkili-payment-gateway.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_wc_endpoint_url() in wp-content/plugins/chikkili-google-pay-for-woocommerce/public/partials/chikkili-public-display.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sevengits\\is_admin() in wp-content/plugins/chikkili-google-pay-for-woocommerce/plugin-deactivation-survey/deactivate-feedback-form.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 94% 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
These attributes need your attention: The official readme.txt is a good inspiration

chikkili-google-pay-for-woocommerce/chikkili.php 85% from 13 tests

"Chikkili- Google Pay India for Woocommerce" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("chikkili-google-pay-for-woocommerce.php" instead of "chikkili.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,378 lines of code in 24 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 are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.78
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
▷ Static methods35.88%
▷ Public methods3568.63%
▷ Protected methods815.69%
▷ Private methods815.69%
▷ Named functions571.43%
▷ Anonymous functions228.57%
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/gpay.png33.35KB12.19KB▼ 63.45%