89% ws-multi-location-intelligent-order-for-woocommerce

Code Review | WS Multi-Location Intelligent Order for Woocommerce

WordPress plugin WS Multi-Location Intelligent Order for Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: ws-multi-location...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 9, 2020
  • Latest release: Jan 9, 2020
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: websitesection (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /461 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.43ms] Passed 4 tests

This is a short check of server-side resources used by WS Multi-Location Intelligent Order for Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.25 ▼3.10
Dashboard /wp-admin3.31 ▲0.0143.76 ▼3.56
Posts /wp-admin/edit.php3.37 ▲0.0150.10 ▲1.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.40 ▼13.73
Media Library /wp-admin/upload.php3.24 ▲0.0133.88 ▼1.33

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WS Multi-Location Intelligent Order for Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.29 ▼1.371.63 ▼0.2938.88 ▼2.78
Dashboard /wp-admin2,206 ▲185.85 ▲0.96107.08 ▼5.4040.28 ▼1.83
Posts /wp-admin/edit.php2,089 ▲32.05 ▼0.0136.55 ▼1.7232.33 ▼8.19
Add New Post /wp-admin/post-new.php1,519 ▼1423.13 ▲0.31654.47 ▼5.6166.34 ▼7.20
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0696.39 ▼1.4139.98 ▼2.93

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 were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid URI found ("paypal.me/wskonstantinos")
You can look at the official readme.txt

ws-multi-location-intelligent-order-for-woocommerce/ws-woo-multi-location-intelligent-order.php 92% from 13 tests

The main file in "WS Multi-Location Intelligent Order for Woocommerce" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ws-multi-location-intelligent-order-for-woocommerce.php" instead of "ws-woo-multi-location-intelligent-order.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191044

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin