73% kineticpay-for-woocommerce

Code Review | kineticPay for WooCommerce

WordPress plugin kineticPay for WooCommerce scored73%from 54 tests.

About plugin

  • Plugin page: kineticpay-for-wo...
  • Plugin version: 2.0.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.6.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Aug 8, 2021
  • Latest release: Oct 30, 2023
  • Number of updates: 21
  • Update frequency: every 38.9 days
  • Top authors: faizalbahasan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /953 total downloads

Benchmarks

Plugin footprint 65% 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.07MB] [CPU: ▼5.93ms] Passed 4 tests

This is a short check of server-side resources used by kineticPay for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.62 ▼1.20
Dashboard /wp-admin3.36 ▲0.0145.82 ▼19.47
Posts /wp-admin/edit.php3.47 ▲0.1248.10 ▲5.17
Add New Post /wp-admin/post-new.php5.49 ▼0.3973.05 ▼3.21
Media Library /wp-admin/upload.php3.28 ▲0.0535.96 ▲0.16

Server storage [IO: ▲1.63MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 81 new files
Database: 2 new tables, 8 new options
New tables
wp_rltknp_fields
wp_rltknp_meta
New WordPress options
widget_theysaidso_widget
recovery_mode_email_last_sent
widget_recent-comments
theysaidso_admin_options
db_upgraded
rltknp_settings
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for kineticPay for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.111.64 ▼0.0839.24 ▼3.03
Dashboard /wp-admin2,189 ▲115.56 ▼0.1886.13 ▼24.0238.92 ▼5.00
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0638.54 ▲0.7536.40 ▼1.01
Add New Post /wp-admin/post-new.php738 ▼7881.71 ▼21.2622.36 ▼561.815.93 ▼41.98
Media Library /wp-admin/upload.php1,400 ▼34.22 ▲0.03112.33 ▲12.4350.18 ▲9.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_rltknp_meta
    • wp_rltknp_fields
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • rltknp_settings
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(RLTKN_PLUGIN_DIRclasses/admin/class.kineticpay-checkout-fields.php): failed to open stream: No such file or directory in wp-content/plugins/kineticpay-for-woocommerce/classes/admin/view/view.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/kineticpay-for-woocommerce/src/kineticpay.php:8
    • > PHP Fatal error
      require_once(): Failed opening required 'RLTKN_PLUGIN_DIRclasses/admin/class.kineticpay-checkout-fields.php' (include_path='.:/usr/share/php') in wp-content/plugins/kineticpay-for-woocommerce/classes/admin/view/view.php on line 2
    • > PHP Warning
      Use of undefined constant RLTKN_PLUGIN_DIR - assumed 'RLTKN_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/kineticpay-for-woocommerce/classes/admin/view/view.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (screenshot-1.png (App Setup).) image not found
You can look at the official readme.txt

kineticpay-for-woocommerce/index.php 85% from 13 tests

This is the main PHP file of "kineticPay for WooCommerce" version 2.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "6.6.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kineticpay-for-woocommerce.php" instead of "index.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
No dangerous file extensions were detected29,937 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript153,1421,98318,257
PHP121,3283988,400
CSS10122922,376
PO File43891,519886
SVG10014
Markdown1004

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity69.12
▷ Minimum class complexity1.00
▷ Maximum class complexity258.00
Average method complexity6.13
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods100
▷ Static methods00.00%
▷ Public methods9393.00%
▷ Protected methods00.00%
▷ Private methods77.00%
Functions21
▷ Named functions1780.95%
▷ Anonymous functions419.05%
Constants3
▷ Global constants3100.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
11 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/kineticpay.png3.14KB1.92KB▼ 38.88%
src/assets/kineticpay-logo-all.png22.82KB24.08KB0.00%
assets/admin/images/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
assets/admin/images/icon-help-circled.png3.06KB0.57KB▼ 81.36%
assets/admin/images/black_list.png6.45KB3.64KB▼ 43.58%