10% admin-and-client-message-after-order-for-woocommerce

Code Review | WooCommerce Vendors and Customers Conversation

WordPress plugin WooCommerce Vendors and Customers Conversation scored 10% from 54 tests.

About plugin

  • Plugin page: admin-and-client-...
  • Plugin version: 7.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.8
  • WordPress version: 5.9.2
  • First release: Mar 15, 2017
  • Latest release: Mar 25, 2022
  • Number of updates: 66
  • Update frequency: every 27.8 days
  • Top authors: nmedia (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

700+ active / 19,015 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/admin-and-client-message-after-order-for-woocommerce/classes/plugin.class.php+1098
    Trying to access array offset on value of type null

Server metrics [RAM: ▲0.42MB] [CPU: ▼287.76ms] Passed 4 tests

A check of server-side resources used by WooCommerce Vendors and Customers Conversation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.4454.14 ▲5.27
Dashboard /wp-admin3.84 ▲0.4236.39 ▲3.88
Posts /wp-admin/edit.php4.06 ▲0.4238.38 ▲3.83
Add New Post /wp-admin/post-new.php7.36 ▲0.3993.07 ▼1,161.01
Media Library /wp-admin/upload.php3.78 ▲0.4826.84 ▲2.25
WooConvo /wp-admin/admin.php?page=wooconvo-settings3.7326.22

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 97 new files
Database: 1 new table, 1 new option
New tables
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Vendors and Customers Conversation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,905 ▲18317.56 ▲1.7816.88 ▲10.772.27 ▼0.12
Dashboard /wp-admin2,907 ▲496.69 ▲0.55119.31 ▼29.03153.53 ▼13.24
Posts /wp-admin/edit.php2,707 ▲132.98 ▼0.2670.55 ▲7.38149.26 ▲1.97
Add New Post /wp-admin/post-new.php1,678 ▼4115.89 ▼7.03448.30 ▲29.92148.31 ▼5.63
Media Library /wp-admin/upload.php1,717 ▲225.94 ▲0.43127.63 ▼7.23182.79 ▲0.15
WooConvo /wp-admin/admin.php?page=wooconvo-settings1,1072.9168.31115.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_nm_wooconvo
  • Zombie WordPress options were found after uninstall: 1 option
    • nm_plugin_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/admin-and-client-message-after-order-for-woocommerce/templates/admin/settings.php:7
    • > PHP Notice
      Trying to get property 'order_valid' of non-object in wp-content/plugins/admin-and-client-message-after-order-for-woocommerce/templates/load-order-convo.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/admin-and-client-message-after-order-for-woocommerce/templates/send-message.php:10
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_user_convos() on null in wp-content/plugins/admin-and-client-message-after-order-for-woocommerce/templates/wooconvo-inbox.php:73
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_order_convos() on null in wp-content/plugins/admin-and-client-message-after-order-for-woocommerce/templates/convo-history.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/admin-and-client-message-after-order-for-woocommerce/nm-wooconvo.php:14
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_user_convos() on null in wp-content/plugins/admin-and-client-message-after-order-for-woocommerce/templates/wooconvo-form.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/admin-and-client-message-after-order-for-woocommerce/templates/load-order-convo.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'NM_PLUGIN_WooConvo' not found in wp-content/plugins/admin-and-client-message-after-order-for-woocommerce/classes/admin.class.php:7
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/admin-and-client-message-after-order-for-woocommerce/index.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 86% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed: Please take inspiration from this readme.txt

admin-and-client-message-after-order-for-woocommerce/nm-wooconvo.php 77% from 13 tests

The main file in "WooCommerce Vendors and Customers Conversation" v. 7.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.5" instead of "3.0.0")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("admin-and-client-message-after-order-for-woocommerce.php" instead of "nm-wooconvo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin16,227 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
PO File2196208546

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity48.50
▷ Minimum class complexity10.00
▷ Maximum class complexity164.00
Average method complexity4.39
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods22.38%
▷ Public methods8398.81%
▷ Protected methods00.00%
▷ Private methods11.19%
▷ Named functions18100.00%
▷ Anonymous functions00.00%
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/down_16.png3.21KB0.51KB▼ 84.10%
images/delete.png5.62KB1.78KB▼ 68.26%
images/file.png0.41KB0.26KB▼ 34.94%
images/delete_16.png3.30KB0.54KB▼ 83.61%
images/delete_32.png4.37KB1.43KB▼ 67.31%