84% chat-orders-for-woo

Code Review | Order Chat for WooCommerce

WordPress plugin Order Chat for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: chat-orders-for-woo
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5.1
  • WordPress version: 6.3.1
  • First release: Mar 9, 2021
  • Latest release: Mar 9, 2021
  • Number of updates: 2
  • Update frequency: every 68.5 days
  • Top authors: fuentes7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,299 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.78ms] Passed 4 tests

This is a short check of server-side resources used by Order Chat for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.63 ▼4.42
Dashboard /wp-admin3.35 ▲0.0054.45 ▼9.56
Posts /wp-admin/edit.php3.40 ▲0.0453.13 ▲0.21
Add New Post /wp-admin/post-new.php5.95 ▲0.06109.67 ▲8.79
Media Library /wp-admin/upload.php3.27 ▲0.0438.25 ▲2.66
Woo Orders WhatsApp /wp-admin/options-general.php?page=settings-icons-chat3.2232.12

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Order Chat for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲4114.70 ▲0.151.76 ▼0.3144.31 ▼0.78
Dashboard /wp-admin2,218 ▲415.84 ▲0.1991.49 ▼7.6641.41 ▼0.57
Posts /wp-admin/edit.php2,131 ▲312.31 ▲0.2841.31 ▲3.0834.05 ▲0.45
Add New Post /wp-admin/post-new.php1,543 ▲1823.06 ▼0.07672.30 ▼1.9137.73 ▼32.64
Media Library /wp-admin/upload.php1,423 ▲264.50 ▲0.30105.16 ▼0.6044.78 ▲1.82
Woo Orders WhatsApp /wp-admin/options-general.php?page=settings-icons-chat9932.3546.1529.76

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=settings-icons-chat
    • > Notice in wp-content/plugins/chat-orders-for-woo/order-woo-chat.php+116
    Trying to access array offset on value of type bool

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% 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
4 plugin tags: whatsapp, cart woocommerce, woocommerce, orders woocommerce

chat-orders-for-woo/order-woo-chat.php 92% from 13 tests

Analyzing the main PHP file in "Order Chat for WooCommerce" version 1.0
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 ("chat-orders-for-woo.php" instead of "order-woo-chat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected182 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13615176
JavaScript1015
SVG1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected