83% qlicknpay

Code Review | QlicknPay for WooCommerce

WordPress plugin QlicknPay for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: qlicknpay
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 28, 2019
  • Latest release: Jul 25, 2023
  • Number of updates: 25
  • Update frequency: every 53.4 days
  • Top authors: shahrulpaydirect (64%)shahrul1995 (40%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,712 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.84ms] Passed 4 tests

Analyzing server-side resources used by QlicknPay for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.56 ▲6.92
Dashboard /wp-admin3.31 ▼0.0341.37 ▼19.74
Posts /wp-admin/edit.php3.37 ▲0.0143.92 ▼1.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.68 ▼5.86
Media Library /wp-admin/upload.php3.24 ▲0.0135.74 ▼0.31

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for QlicknPay for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.23 ▼0.141.65 ▼0.1642.98 ▲1.21
Dashboard /wp-admin2,198 ▲245.62 ▲0.0189.81 ▲0.9037.97 ▲0.81
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0534.59 ▼1.2630.19 ▼8.24
Add New Post /wp-admin/post-new.php1,528 ▼123.14 ▲0.17599.44 ▲2.8982.08 ▲11.94
Media Library /wp-admin/upload.php1,397 ▼34.24 ▲0.12101.05 ▼2.9242.21 ▼3.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • 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)
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/qlicknpay/src/Qlicknpay.php:6

User-side errors Passed 1 test

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

Optimizations

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 to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #2, #3, #4, #6, #7, #8, #9 in qlicknpay/assets to your readme.txt
You can look at the official readme.txt

qlicknpay/index.php 85% from 13 tests

The entry point to "QlicknPay for WooCommerce" version 1.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("qlicknpay.php" instead of "index.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.3" instead of "2.6.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected517 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP211641517

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity95.00
▷ Minimum class complexity95.00
▷ Maximum class complexity95.00
Average method complexity12.75
▷ Minimum method complexity1.00
▷ Maximum method complexity91.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin