84% ilogistic-fulfillment-order-and-product-sync

Code Review | iLogistic Fulfillment WooCommerce Plugin

WordPress plugin iLogistic Fulfillment WooCommerce Plugin scored84%from 54 tests.

About plugin

  • Plugin page: ilogistic-fulfill...
  • Plugin version: 4.3.3
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Apr 27, 2023
  • Latest release: Nov 21, 2023
  • Number of updates: 8
  • Update frequency: every 26.0 days
  • Top authors: ilogdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,079 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by iLogistic Fulfillment WooCommerce Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.87 ▼5.68
Dashboard /wp-admin3.31 ▲0.0048.22 ▼3.32
Posts /wp-admin/edit.php3.36 ▲0.0045.52 ▼1.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.14 ▼13.57
Media Library /wp-admin/upload.php3.23 ▲0.0033.95 ▼0.20

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for iLogistic Fulfillment WooCommerce Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.04 ▼0.691.68 ▼0.3340.26 ▼6.70
Dashboard /wp-admin2,198 ▲245.65 ▲0.0796.20 ▼7.1244.39 ▼1.52
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0736.25 ▼3.1031.22 ▼5.45
Add New Post /wp-admin/post-new.php1,526 ▼023.26 ▼0.12620.06 ▼20.6453.10 ▲0.31
Media Library /wp-admin/upload.php1,403 ▲94.17 ▼0.0896.53 ▼1.8242.52 ▲1.47

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/ilogistic-fulfillment-order-and-product-sync/src/Model/Order.php on line 29
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Log_Handler_File' not found in wp-content/plugins/ilogistic-fulfillment-order-and-product-sync/src/Logfmt_Log_Handler_File.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: ilogistic, fulfillment, woocommerce

ilogistic-fulfillment-order-and-product-sync/ilogistic.php 85% from 13 tests

The main PHP script in "iLogistic Fulfillment WooCommerce Plugin" version 4.3.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.6.0" instead of "4.0.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("ilogistic-fulfillment-order-and-product-sync.php" instead of "ilogistic.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 detected1,688 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP122663421,542
Markdown2980146

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity16.27
▷ Minimum class complexity2.00
▷ Maximum class complexity43.00
Average method complexity3.01
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods75
▷ Static methods4762.67%
▷ Public methods5877.33%
▷ Protected methods11.33%
▷ Private methods1621.33%
Functions12
▷ Named functions00.00%
▷ Anonymous functions12100.00%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants110.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin