100% elkmipo

Code Review | ELK Minimum Items per Order for WooCommerce

WordPress plugin ELK Minimum Items per Order for WooCommerce scored 100% from 54 tests.

About plugin

  • Plugin page: elkmipo
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 5.8.1
  • First release: Feb 5, 2020
  • Latest release: May 14, 2020
  • Number of updates: 4
  • Update frequency: every 24.7 days
  • Top authors: elklab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 231 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼141.56ms] Passed 4 tests

Server-side resources used by ELK Minimum Items per Order for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1229.04 ▲2.45
Dashboard /wp-admin3.06 ▲0.0045.71 ▲0.77
Posts /wp-admin/edit.php3.11 ▲0.0046.51 ▲2.23
Add New Post /wp-admin/post-new.php5.42 ▼0.0289.02 ▼567.64
Media Library /wp-admin/upload.php3.01 ▲0.0029.75 ▼1.58

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ELK Minimum Items per Order for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.97 ▲0.3211.16 ▼1.6952.19 ▲1.93
Dashboard /wp-admin2,967 ▲335.92 ▼0.01134.57 ▼9.65113.06 ▼6.47
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0167.01 ▼1.3697.50 ▲14.06
Add New Post /wp-admin/post-new.php1,872 ▲19419.14 ▲0.36373.25 ▼4.98102.33 ▼9.50
Media Library /wp-admin/upload.php1,807 ▼05.04 ▼0.06142.79 ▼3.06127.83 ▲14.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: e-commerce, items, products, shop, min...

elkmipo/elkmipo.php Passed 13 tests

This is the main PHP file of "ELK Minimum Items per Order for WooCommerce" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
This simple plugin allows to set a minimum number of items per order

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected231 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File23030141
PHP1131890

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin