67% wuunder-dynamic-checkout

Code Review | Wuunder Dynamic Checkout

WordPress plugin Wuunder Dynamic Checkout scored 67% from 54 tests.

About plugin

  • Plugin page: wuunder-dynamic-c...
  • Plugin version: 3.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2023
  • Latest release: Feb 21, 2023
  • Number of updates: 20
  • Update frequency: every 11.8 days
  • Top authors: wuunder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 694 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.23MB] [CPU: ▼7.90ms] Passed 4 tests

Analyzing server-side resources used by Wuunder Dynamic Checkout
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2242.56 ▲4.49
Dashboard /wp-admin3.57 ▲0.2645.38 ▼3.79
Posts /wp-admin/edit.php3.62 ▲0.2644.51 ▼12.06
Add New Post /wp-admin/post-new.php6.11 ▲0.2286.09 ▼19.27
Media Library /wp-admin/upload.php3.43 ▲0.2036.84 ▲3.52

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 10 new options
New WordPress options
wuunder_plugin_environment
wuunder_plugin_status
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
wuunder_plugin_version
db_upgraded
wuunder_checkout_status
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Wuunder Dynamic Checkout
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲18413.96 ▼0.275.59 ▲3.9239.02 ▼6.99
Dashboard /wp-admin2,210 ▲194.82 ▼0.07115.20 ▲4.9943.29 ▼4.70
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0236.09 ▼3.5935.73 ▼2.89
Add New Post /wp-admin/post-new.php1,518 ▼1517.72 ▼5.49735.29 ▲88.2358.46 ▼3.93
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.12100.95 ▼5.6042.79 ▼4.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/wuunder-dynamic-checkout/includes/class-wuunder-deactivator.php+54
    Trying to access array offset on value of type null
  • Zombie WordPress options detected upon uninstall: 8 options
    • wuunder_plugin_version
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • wuunder_checkout_status
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wuunder-dynamic-checkout/public/partials/wuunder-public-display.php
    • > /wp-content/plugins/wuunder-dynamic-checkout/admin/partials/wuunder-admin-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wuunder-dynamic-checkout/includes/wuunder-setup.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Wuunder ontzorgt), #2 (Wuunder vervoert), #3 (Verzenden en ontvangen), #4 (Pick-up of zelf brengen), #5 (Meerdere boekingen in 1x), #6 (Volg zendingen en retouren), #7 (Eenvoudig labels printen)
The official readme.txt might help

wuunder-dynamic-checkout/wuunder.php 85% from 13 tests

This is the main PHP file of "Wuunder Dynamic Checkout" version 3.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wuunder-dynamic-checkout.php" instead of "wuunder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,642 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP183146651,545
CSS210965
PO File17621
JavaScript222711

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.36
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods51
▷ Static methods1121.57%
▷ Public methods4486.27%
▷ Protected methods00.00%
▷ Private methods713.73%
Functions38
▷ Named functions3592.11%
▷ Anonymous functions37.89%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/images/.!35200!wuunder_logo.png0.00KB0.00KB0.00%
assets/images/wuunder_logo.png7.62KB3.92KB▼ 48.64%
(invalid) assets/images/.!53149!wuunder_logo.png0.00KB0.00KB0.00%
(invalid) assets/images/.!43778!wuunder_logo.png0.00KB0.00KB0.00%