94% skyweb-wc-iiko

Code Review | iikoCloud for WooCommerce

WordPress plugin iikoCloud for WooCommerce scored 94% from 54 tests.

About plugin

  • Plugin page: skyweb-wc-iiko
  • Plugin version: 1.3.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.7
  • WordPress version: 5.8.1
  • First release: Mar 7, 2021
  • Latest release: Jun 17, 2021
  • Number of updates: 21
  • Update frequency: every 5.0 days
  • Top authors: makspostal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 592 total downloads

Benchmarks

Plugin footprint Passed 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.05MB] [CPU: ▼141.85ms] Passed 4 tests

Server-side resources used by iikoCloud for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0641.92 ▲5.72
Dashboard /wp-admin3.12 ▲0.0651.77 ▼0.18
Posts /wp-admin/edit.php3.23 ▲0.1252.47 ▲4.49
Add New Post /wp-admin/post-new.php5.48 ▲0.0487.86 ▼569.15
Media Library /wp-admin/upload.php3.06 ▲0.0635.25 ▼2.54

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 60 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by iikoCloud for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,715 ▲14315.87 ▲0.379.15 ▲1.9350.67 ▼2.21
Dashboard /wp-admin2,982 ▲455.84 ▼0.08157.49 ▲1.74113.05 ▼10.55
Posts /wp-admin/edit.php2,752 ▲162.69 ▲0.0173.35 ▲4.5087.92 ▼7.22
Add New Post /wp-admin/post-new.php1,693 ▲1018.79 ▲0.41400.10 ▼20.46115.19 ▼0.49
Media Library /wp-admin/upload.php1,820 ▲135.04 ▲0.04155.27 ▼20.39122.88 ▼2.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/skyweb-wc-iiko/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/skyweb-wc-iiko/vendor/deliciousbrains/wp-background-processing/wp-background-processing.php:20

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)
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: woocommerce, restaurant, delivery, iiko

skyweb-wc-iiko/skyweb-wc-iiko.php 92% from 13 tests

"iikoCloud for WooCommerce" version 1.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 155 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin5,078 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP391,4941,5583,897
JavaScript522784510
PO File1150165371
Markdown1600112
CSS22215103
JSON30084
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity17.43
▷ Minimum class complexity1.00
▷ Maximum class complexity111.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes30
▷ Abstract classes26.67%
▷ Concrete classes2893.33%
▷ Final classes00.00%
Methods224
▷ Static methods7232.14%
▷ Public methods15669.64%
▷ Protected methods5122.77%
▷ Private methods177.59%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants3
▷ Global constants3100.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