10% mycommerce360-for-woocommerce

Code Review | MyCommerce360 - Intelligent Delivery Management System

WordPress plugin MyCommerce360 - Intelligent Delivery Management System scored10%from 54 tests.

About plugin

  • Plugin page: mycommerce360-for...
  • Plugin version: 1.0.47
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.7
  • WordPress version: 6.3.1
  • First release: Oct 28, 2017
  • Latest release: Mar 24, 2021
  • Number of updates: 78
  • Update frequency: every 16.0 days
  • Top authors: mycommerce360 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,605 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/mycommerce360-for-woocommerce/helpers/helpers.php+191
    Trying to access array offset on value of type null

Server metrics [RAM: ▼1.68MB] [CPU: ▲166.28ms] Passed 4 tests

A check of server-side resources used by MyCommerce360 - Intelligent Delivery Management System
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.27 ▼1.19223.52 ▲184.45
Dashboard /wp-admin2.33 ▼0.97234.97 ▲186.85
Posts /wp-admin/edit.php2.33 ▼1.02230.42 ▲179.58
Add New Post /wp-admin/post-new.php2.33 ▼3.55232.08 ▲129.31
Media Library /wp-admin/upload.php2.33 ▼0.90204.67 ▲171.77
MyCommerce360 /wp-admin/admin.php?page=mc3602.33258.03

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for MyCommerce360 - Intelligent Delivery Management System
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲5513.32 ▼1.061.69 ▲0.0142.09 ▼2.79
Dashboard /wp-admin2,206 ▲185.79 ▼0.1599.96 ▼6.0240.49 ▲1.70
Posts /wp-admin/edit.php2,089 ▲32.05 ▲0.0538.02 ▼1.4730.49 ▼7.18
Add New Post /wp-admin/post-new.php1,532 ▲421.13 ▲2.81663.14 ▲31.7855.29 ▼1.44
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.09103.38 ▲4.8144.55 ▲0.61
MyCommerce360 /wp-admin/admin.php?page=mc3607981.147.7226.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/mycommerce360-for-woocommerce/helpers/helpers.php+191
    Trying to access array offset on value of type null
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • _apiagents
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mc360
    • > Notice in wp-content/plugins/mycommerce360-for-woocommerce/helpers/helpers.php+191
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/admin.php?page=mc360
    • > Error in wp-content/plugins/mycommerce360-for-woocommerce/configurations/configurations.php+1317
    Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/mycommerce360-for-woocommerce/configurations/configurations.php:1317
    Stack trace:
    #0 wp-admin/includes/template.php(1824): mc360_display_order_status_form_element()
    #1 wp-admin/includes/template.php(1778): do_settings_fields()
    #2 wp-content/plugins/mycommerce360-for-woocommerce/configurations/configurations.php(225): do_settings_sections()
    #3 wp-includes/class-wp-hook.php(310): mc360_options_page()
    #4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #5 wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 wp-admin/admin.php(259): do_action()
    #7 {main}
    thrown

SRP 0% 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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mycommerce360-for-woocommerce/configurations/configurations.php
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mycommerce360-for-woocommerce/classes/Commonfunctions.php:669
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mycommerce360-for-woocommerce/classes/Commonfunctions.php:669
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mycommerce360-for-woocommerce/classes/Commonfunctions.php:669
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mycommerce360-for-woocommerce/MC360.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mycommerce360-for-woocommerce/classes/Commonfunctions.php:669
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mycommerce360-for-woocommerce/classes/Commonfunctions.php:669
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mycommerce360-for-woocommerce/classes/Commonfunctions.php:669
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mycommerce360-for-woocommerce/classes/Commonfunctions.php:669
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mycommerce360-for-woocommerce/classes/Commonfunctions.php:669
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mycommerce360-for-woocommerce/classes/Commonfunctions.php:669

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: plugin, shipping, mycommerce360, udleveringssted, freigt...

mycommerce360-for-woocommerce/MC360.php 85% from 13 tests

This is the main PHP file of "MyCommerce360 - Intelligent Delivery Management System" version 1.0.47, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mycommerce360-for-woocommerce.php" instead of "MC360.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5,096 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP141,9002712,517
CSS32411,314
JavaScript22791371,117
PO File15773148

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity11.33
▷ Minimum class complexity8.00
▷ Maximum class complexity29.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods44
▷ Static methods00.00%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions87
▷ Named functions87100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/check_icon1.png2.86KB0.19KB▼ 93.38%
assets/img/arrow_img.png2.79KB0.16KB▼ 94.23%
configurations/arrow_img.png2.78KB0.16KB▼ 94.31%
assets/css/check_icon2n.png3.12KB0.45KB▼ 85.69%