83% komfortkasse-for-woocommerce

Code Review | Komfortkasse for WooCommerce

WordPress plugin Komfortkasse for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: komfortkasse-for-...
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.4-6.4
  • WordPress version: 6.3.1
  • First release: Aug 3, 2015
  • Latest release: Nov 8, 2023
  • Number of updates: 90
  • Update frequency: every 33.6 days
  • Top authors: komfortkasse (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /4,920 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.73ms] Passed 4 tests

An overview of server-side resources used by Komfortkasse for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0346.65 ▲8.23
Dashboard /wp-admin3.34 ▲0.0348.73 ▼1.03
Posts /wp-admin/edit.php3.39 ▲0.0345.76 ▼7.00
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.77 ▼20.49
Media Library /wp-admin/upload.php3.26 ▲0.0335.91 ▲1.60

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Komfortkasse for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.67 ▼0.041.84 ▼0.1144.16 ▲1.41
Dashboard /wp-admin2,198 ▲215.62 ▼0.0397.05 ▲0.7241.87 ▼3.89
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0636.00 ▼0.9231.75 ▼1.95
Add New Post /wp-admin/post-new.php1,529 ▲323.30 ▲0.07604.27 ▼54.2162.25 ▲9.39
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0196.32 ▼0.6741.86 ▼6.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/komfortkasse-for-woocommerce/woo-komfortkasse.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in komfortkasse-for-woocommerce/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt is a good inspiration

komfortkasse-for-woocommerce/woo-komfortkasse.php 85% from 13 tests

The main file in "Komfortkasse for WooCommerce" v. 1.4.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("komfortkasse-for-woocommerce.php" instead of "woo-komfortkasse.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "2.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected263 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12616258
XML1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions1285.71%
▷ Anonymous functions214.29%
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
PNG images were not found in this plugin