93% keendelivery-woocommerce-koppeling

Code Review | KeenDelivery - WooCommerce plugin

WordPress plugin KeenDelivery - WooCommerce plugin scored 93% from 54 tests.

About plugin

  • Plugin page: keendelivery-wooc...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6.1
  • WordPress version: 5.8.1
  • First release: Dec 27, 2016
  • Latest release: Feb 5, 2021
  • Number of updates: 32
  • Update frequency: every 46.8 days
  • Top authors: jetverzendt01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active / 2,886 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by KeenDelivery - WooCommerce plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.73 ▲5.06
Dashboard /wp-admin3.07 ▲0.0163.82 ▲9.51
Posts /wp-admin/edit.php3.12 ▲0.0157.93 ▲3.60
Add New Post /wp-admin/post-new.php5.42 ▼0.01133.84 ▼553.70
Media Library /wp-admin/upload.php3.01 ▲0.0147.88 ▲7.79

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for KeenDelivery - WooCommerce plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲11715.90 ▲0.2512.88 ▲2.7942.34 ▼14.46
Dashboard /wp-admin2,970 ▲375.91 ▼0.10160.70 ▼12.29126.75 ▲5.58
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.1179.61 ▲8.9497.33 ▲0.63
Add New Post /wp-admin/post-new.php1,615 ▼021.41 ▲0.40342.30 ▲45.07121.72 ▼34.92
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.01174.03 ▲8.10128.23 ▲10.78

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/keendelivery-woocommerce-koppeling/woocommerce-keendelivery-shipping.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (17 tag instead of maximum 10)
The official readme.txt might help

keendelivery-woocommerce-koppeling/woocommerce-keendelivery-shipping.php 85% from 13 tests

Analyzing the main PHP file in "KeenDelivery - WooCommerce plugin" version 1.0.7
Please take the time to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.0")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("keendelivery-woocommerce-koppeling.php" instead of "woocommerce-keendelivery-shipping.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,397 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP93592731,015
JavaScript11191310
CSS119072

PHP code Passed 2 tests

This is a short overview 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.54
Average class complexity42.25
▷ Minimum class complexity1.00
▷ Maximum class complexity123.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods4797.92%
▷ Protected methods00.00%
▷ Private methods12.08%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin