64% wootalk

Code Review | Wootalk Woocommerce Chat

WordPress plugin Wootalk Woocommerce Chat scored64%from 54 tests.

About plugin

  • Plugin page: wootalk
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Oct 25, 2019
  • Latest release: Nov 2, 2019
  • Number of updates: 11
  • Update frequency: every 0.7 days
  • Top authors: wpproduct (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /845 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.69MB] [CPU: ▼36.87ms] Passed 4 tests

A check of server-side resources used by Wootalk Woocommerce Chat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2242.04 ▲0.57
Dashboard /wp-admin3.26 ▼0.0824.76 ▼47.20
Posts /wp-admin/edit.php3.26 ▼0.0923.26 ▼18.68
Add New Post /wp-admin/post-new.php3.26 ▼2.6224.71 ▼72.42
Media Library /wp-admin/upload.php3.26 ▲0.0323.53 ▼9.19

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 36 new files
Database: 1 new table, 6 new options
New tables
wp_wootalk_conversation
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Wootalk Woocommerce Chat: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲18013.54 ▼0.999.66 ▲7.8242.98 ▼2.17
Dashboard /wp-admin2,245 ▲745.63 ▲0.0489.60 ▼15.1044.21 ▲2.63
Posts /wp-admin/edit.php2,150 ▲502.03 ▲0.0135.98 ▲0.8730.39 ▼3.12
Add New Post /wp-admin/post-new.php1,570 ▲4418.60 ▼4.93645.90 ▲0.0963.50 ▲5.36
Media Library /wp-admin/upload.php1,447 ▲474.25 ▲0.08102.11 ▲5.8641.92 ▲2.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_wootalk_conversation
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wootalk/inc/views/wootalk_form.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wootalk/inc/views/send-button.php:8
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_order_conversations() on null in wp-content/plugins/wootalk/inc/views/admin-chat-box.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wootalk/inc/views/email-template.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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
4 plugin tags: chat, wordpress chat, woocommerce chat, user chat

wootalk/wootalk.php 92% from 13 tests

"Wootalk Woocommerce Chat" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Requires at least: Required version must match the one declared in readme.txt ("4.9" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,745 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS3480243,237
PHP92912061,330
JavaScript2180178

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity46.00
▷ Minimum class complexity11.00
▷ Maximum class complexity100.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods64
▷ Static methods11.56%
▷ Public methods6398.44%
▷ Protected methods00.00%
▷ Private methods11.56%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.47MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png55.91KB21.13KB▼ 62.21%
inc/assets/icon/home.png0.79KB0.83KB0.00%
inc/assets/images/calendar.png0.61KB0.72KB0.00%
inc/assets/images/sidebar-icon.png0.86KB0.46KB▼ 47.06%
screenshot-4.png69.68KB25.66KB▼ 63.18%