78% wasa-kredit-checkout

Code Review | Wasa Kredit Checkout

WordPress plugin Wasa Kredit Checkout scored78%from 54 tests.

About plugin

  • Plugin page: wasa-kredit-checkout
  • Plugin version: 2.5.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 8, 2018
  • Latest release: Nov 28, 2023
  • Number of updates: 50
  • Update frequency: every 40.0 days
  • Top authors: aos06wasakredit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,074 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Wasa Kredit Checkout
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.12 ▼3.49
Dashboard /wp-admin3.34 ▲0.0449.73 ▲1.65
Posts /wp-admin/edit.php3.39 ▲0.0349.23 ▲2.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.21 ▼1.51
Media Library /wp-admin/upload.php3.26 ▲0.0333.29 ▼0.09

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Wasa Kredit Checkout: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.17 ▼0.181.81 ▲0.2041.10 ▼6.94
Dashboard /wp-admin2,195 ▲215.56 ▲0.0591.51 ▼10.3141.40 ▼3.71
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0638.87 ▲1.7735.59 ▼0.71
Add New Post /wp-admin/post-new.php1,526 ▼523.61 ▲0.63641.40 ▲19.8059.83 ▲13.02
Media Library /wp-admin/upload.php1,400 ▲34.22 ▼0.0493.49 ▼3.8739.78 ▼2.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% 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 0% 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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wasa-kredit-checkout/admin/partials/wasa-kredit-checkout-admin-display.php
    • > /wp-content/plugins/wasa-kredit-checkout/public/partials/wasa-kredit-checkout-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wasa-kredit-checkout/classes/class-wasa-kredit-checkout-callbacks.php:24

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: e-commerce, ecommerce, checkout, woocommerce

wasa-kredit-checkout/wasa-kredit-checkout.php 92% from 13 tests

The entry point to "Wasa Kredit Checkout" version 2.5.5 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 ("4.0.0" instead of "5.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,004 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP375351,3012,363
CSS2639374
PO File16492163
JavaScript3132104

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.27
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes30
▷ Abstract classes310.00%
▷ Concrete classes2790.00%
▷ Final classes00.00%
Methods152
▷ Static methods85.26%
▷ Public methods10569.08%
▷ Protected methods4126.97%
▷ Private methods63.95%
Functions9
▷ Named functions555.56%
▷ Anonymous functions444.44%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/wasa-kredit-logo-left.png18.49KB5.20KB▼ 71.89%
assets/images/wasa-kredit-icon.png2.81KB0.30KB▼ 89.35%