90% woo-izettle-integration

Code Review | WooCommerce Zettle Integration

WordPress plugin WooCommerce Zettle Integration scored90%from 54 tests.

About plugin

  • Plugin page: woo-izettle-integ...
  • Plugin version: 7.8.8
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 27, 2018
  • Latest release: Nov 8, 2023
  • Number of updates: 162
  • Update frequency: every 11.0 days
  • Top authors: bjorntech (87.65%)carlericsson (12.96%)

Code review

54 tests

User reviews

18 reviews

Install metrics

1,000+ active /58,464 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.58MB] [CPU: ▼2.75ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce Zettle Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.08 ▲0.6152.63 ▲5.57
Dashboard /wp-admin3.89 ▲0.5551.62 ▼4.42
Posts /wp-admin/edit.php3.95 ▲0.5951.11 ▲3.12
Add New Post /wp-admin/post-new.php6.48 ▲0.5986.06 ▼15.25
Media Library /wp-admin/upload.php3.82 ▲0.5942.05 ▲7.47

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Zettle Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3514.67 ▲0.321.90 ▼0.2342.26 ▼5.33
Dashboard /wp-admin2,196 ▲165.56 ▼0.0690.55 ▼4.5341.74 ▲1.28
Posts /wp-admin/edit.php2,107 ▲41.97 ▼0.0041.02 ▼3.9738.40 ▲2.55
Add New Post /wp-admin/post-new.php1,537 ▲823.16 ▼0.14681.63 ▲65.3752.15 ▼2.58
Media Library /wp-admin/upload.php1,410 ▲104.27 ▲0.0799.32 ▼1.7144.04 ▲2.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: zettle, i-zettle, card, woocommerce, integration...

woo-izettle-integration/woo-izettle-integration.php 92% from 13 tests

The main PHP file in "WooCommerce Zettle Integration" ver. 7.8.8 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.9" instead of "4.0")

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 plugin9,729 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP412,9831,0169,246
JavaScript45053318
CSS2323165

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity58.56
▷ Minimum class complexity1.00
▷ Maximum class complexity304.00
Average method complexity4.42
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods396
▷ Static methods8822.22%
▷ Public methods35188.64%
▷ Protected methods20.51%
▷ Private methods4310.86%
Functions17
▷ Named functions952.94%
▷ Anonymous functions847.06%
Constants23
▷ Global constants313.04%
▷ Class constants2086.96%
▷ Public constants20100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin