84% kkiapay-woocommerce

Code Review | KKiapay WooCommerce Plugin

WordPress plugin KKiapay WooCommerce Plugin scored84%from 54 tests.

About plugin

  • Plugin page: kkiapay-woocommerce
  • Plugin version: 2.3.14
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7.2
  • WordPress version: 6.3.1
  • First release: Feb 26, 2019
  • Latest release: Apr 11, 2023
  • Number of updates: 27
  • Update frequency: every 55.7 days
  • Top authors: shadaiali (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /12,839 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.78ms] Passed 4 tests

Server-side resources used by KKiapay WooCommerce Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.53 ▼4.35
Dashboard /wp-admin3.32 ▲0.0149.61 ▼0.76
Posts /wp-admin/edit.php3.37 ▲0.0146.43 ▼3.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.30 ▲1.03
Media Library /wp-admin/upload.php3.24 ▲0.0140.08 ▲2.16

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 141 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for KKiapay WooCommerce Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.54 ▼1.101.81 ▼0.4042.61 ▼0.18
Dashboard /wp-admin2,206 ▲185.89 ▲0.01107.46 ▲0.5343.34 ▼0.16
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0538.36 ▼4.7434.78 ▼0.64
Add New Post /wp-admin/post-new.php1,533 ▼021.16 ▲0.14734.01 ▲66.3269.39 ▼6.66
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.04102.57 ▼4.8545.85 ▲0.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • 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)
Even though everything seems fine, this is not an exhaustive test

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 items
  • 44× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/promises/src/TaskQueue.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/psr7/src/Response.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/psr7/src/Request.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/kkiapay-woocommerce/vendor/psr/http-message/src/ServerRequestInterface.php:43
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/guzzle/src/Client.php:25

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Screenshot #5 (KkiaPay checkout modal.) image not found
The official readme.txt might help

kkiapay-woocommerce/kkiapay-woocommerce-plugin.php 92% from 13 tests

Analyzing the main PHP file in "KKiapay WooCommerce Plugin" version 2.3.14
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kkiapay-woocommerce.php" instead of "kkiapay-woocommerce-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin14,565 lines of code in 129 files:
LanguageFilesBlank linesComment linesLines of code
PHP1011,8505,0808,784
Markdown121,04203,281
JavaScript43446,4731,393
JSON800550
SVG100351
PO File14956169
CSS18028
make1409

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity13.74
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces10
Interfaces14
Traits2
Classes68
▷ Abstract classes00.00%
▷ Concrete classes68100.00%
▷ Final classes1014.71%
Methods679
▷ Static methods8312.22%
▷ Public methods55882.18%
▷ Protected methods40.59%
▷ Private methods11717.23%
Functions146
▷ Named functions5839.73%
▷ Anonymous functions8860.27%
Constants63
▷ Global constants00.00%
▷ Class constants63100.00%
▷ Public constants63100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin