89% woo-minimum-order-limit

Code Review | Woocommerce-minimum-order-amount

WordPress plugin Woocommerce-minimum-order-amount scored89%from 54 tests.

About plugin

  • Plugin page: woo-minimum-order...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8.2
  • WordPress version: 6.3.1
  • First release: Feb 12, 2018
  • Latest release: Feb 12, 2018
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: getjuicy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /561 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by Woocommerce-minimum-order-amount
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.26 ▼2.22
Dashboard /wp-admin3.32 ▼0.0345.57 ▼15.39
Posts /wp-admin/edit.php3.37 ▲0.0152.49 ▲1.24
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.59 ▼5.15
Media Library /wp-admin/upload.php3.24 ▲0.0134.32 ▼0.96

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Woocommerce-minimum-order-amount
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.28 ▲1.041.51 ▼3.0342.06 ▼3.97
Dashboard /wp-admin2,211 ▲345.61 ▼0.0489.84 ▲3.5342.22 ▼0.23
Posts /wp-admin/edit.php2,113 ▲131.99 ▼0.0041.15 ▲4.0934.93 ▲1.88
Add New Post /wp-admin/post-new.php1,539 ▲1322.93 ▼0.16612.72 ▼73.3252.85 ▲1.15
Media Library /wp-admin/upload.php1,410 ▲134.18 ▲0.0292.43 ▼15.6842.44 ▼5.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("")
  • Screenshots: Screenshot #1 (This screenshot shows the admin options as described in the description. ’assets/MinOrderAdmin.png’) image missing
You can look at the official readme.txt

woo-minimum-order-limit/min-order-functions.php 92% from 13 tests

The main file in "Woocommerce-minimum-order-amount" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-minimum-order-limit.php" instead of "min-order-functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected116 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP29225116

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/MinOrderAdmin.png42.67KB11.60KB▼ 72.82%