89% kassa-at-for-woocommerce

Code Review | KASSA.AT For WooCommerce

WordPress plugin KASSA.AT For WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: kassa-at-for-wooc...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.0-5.9
  • WordPress version: 6.3.1
  • First release: Jan 5, 2021
  • Latest release: Jan 26, 2022
  • Number of updates: 7
  • Update frequency: every 56.0 days
  • Top authors: manuelschultz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /518 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.20MB] [CPU: ▲0.09ms] Passed 4 tests

This is a short check of server-side resources used by KASSA.AT For WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2044.36 ▲3.36
Dashboard /wp-admin3.50 ▲0.2045.64 ▼4.18
Posts /wp-admin/edit.php3.62 ▲0.2650.02 ▲1.32
Add New Post /wp-admin/post-new.php6.09 ▲0.2092.18 ▲3.72
Media Library /wp-admin/upload.php3.43 ▲0.2036.76 ▼0.13
Options /wp-admin/admin.php?page=kaw3.3935.87
Logs /wp-admin/admin.php?page=kaw_logs3.4036.10

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
logging-info
db_upgraded
kaw-message-active

Browser metrics Passed 4 tests

Checking browser requirements for KASSA.AT For WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲9314.26 ▼0.091.52 ▼0.1736.54 ▼6.68
Dashboard /wp-admin2,260 ▲835.62 ▼0.0685.36 ▼15.3379.47 ▲36.41
Posts /wp-admin/edit.php2,169 ▲692.14 ▲0.1140.09 ▲2.9736.10 ▼4.60
Add New Post /wp-admin/post-new.php1,735 ▲19922.28 ▼0.73681.26 ▲3.2547.05 ▼14.25
Media Library /wp-admin/upload.php1,468 ▲714.19 ▼0.0095.25 ▼6.7075.40 ▲28.29
Options /wp-admin/admin.php?page=kaw8441.6927.4129.42
Logs /wp-admin/admin.php?page=kaw_logs1,0731.6926.2628.96

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 detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • logging-info
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (KASSA.AT menu before connecting to your KASSA.AT account.), #2 (KASSA.AT menu after connecting to your KASSA.AT account. Now, you have unlimited power.)
The official readme.txt might help

kassa-at-for-woocommerce/kassa-at-for-woocommerce.php 92% from 13 tests

The entry point to "KASSA.AT For WooCommerce" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.7" instead of "5.4.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 detected2,438 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PO File103693991,333
PHP41372201,105

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.39
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%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon.png19.26KB0.21KB▼ 98.91%
kaw_screenshot_1.png63.96KB26.43KB▼ 58.69%
kaw_screenshot_2.png108.84KB44.35KB▼ 59.25%