83% kwik-delivery-for-wcommerce

Code Review | Kwik Delivery for Woocommerce

WordPress plugin Kwik Delivery for Woocommerce scored83%from 54 tests.

About plugin

  • Plugin page: kwik-delivery-for...
  • Plugin version: 2.2.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6+
  • WordPress version: 6.3.1
  • First release: Oct 30, 2020
  • Latest release: Aug 21, 2023
  • Number of updates: 45
  • Update frequency: every 23.8 days
  • Top authors: rplellig (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /1,943 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Kwik Delivery for Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.25 ▼7.27
Dashboard /wp-admin3.31 ▲0.0046.12 ▼0.76
Posts /wp-admin/edit.php3.36 ▲0.0049.02 ▲1.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.19 ▼25.25
Media Library /wp-admin/upload.php3.23 ▲0.0034.11 ▼0.58

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Kwik Delivery for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.69 ▲0.321.64 ▼0.4141.73 ▲0.31
Dashboard /wp-admin2,206 ▲215.90 ▲0.98109.66 ▲7.6041.55 ▼4.26
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0740.16 ▼1.1934.85 ▼2.16
Add New Post /wp-admin/post-new.php1,533 ▲1123.42 ▲0.35670.45 ▼4.5055.90 ▲0.22
Media Library /wp-admin/upload.php1,388 ▲34.31 ▲0.1094.11 ▼12.2141.54 ▼4.64

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/kwik-delivery-for-wcommerce/kwik-delivery-for-wcommerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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: Please take inspiration from this readme.txt

kwik-delivery-for-wcommerce/kwik-delivery-for-wcommerce.php Passed 13 tests

The main PHP file in "Kwik Delivery for Woocommerce" ver. 2.2.2 adds more information about the plugin and also serves as the entry point for this plugin
51 characters long description:
A plugin to handle order shipping via kwik delivery

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
There were no executable files found in this plugin933 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6275424933

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity17.80
▷ Minimum class complexity13.00
▷ Maximum class complexity30.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods57
▷ Static methods35.26%
▷ Public methods5087.72%
▷ Protected methods712.28%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 2.84MB with 0.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/kwik1.png4.86KB4.86KB0.00%
assets/banner-772x250.png2,339.09KB1,763.92KB▼ 24.59%
images/kwik.png4.86KB4.86KB0.00%
assets/banner-772x2502.png212.16KB59.63KB▼ 71.90%
assets/screenshot-3.png83.40KB33.54KB▼ 59.78%