10% ace-social-chat

Code Review | Ace Social Chat

WordPress plugin Ace Social Chat scored 10% from 54 tests.

About plugin

  • Plugin page: ace-social-chat
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 5.8.1
  • First release: Mar 23, 2021
  • Latest release: Apr 8, 2021
  • Number of updates: 17
  • Update frequency: every 0.9 days
  • Top authors: acewebx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 280 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 did not install without errors
    • > Warning in wp-includes/class-wp-hook.php+303
    call_user_func_array() expects parameter 1 to be a valid callback, function 'activate_whatsapp_chat_multi_agent' not found or invalid function name

Server metrics [RAM: ▼0.09MB] [CPU: ▼166.48ms] Passed 4 tests

A check of server-side resources used by Ace Social Chat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0215.97 ▼11.43
Dashboard /wp-admin3.03 ▼0.0323.93 ▼21.78
Posts /wp-admin/edit.php3.09 ▼0.0123.17 ▼11.44
Add New Post /wp-admin/post-new.php5.10 ▼0.3362.26 ▼621.25
Media Library /wp-admin/upload.php3.06 ▲0.0619.57 ▼5.46
All Agents /wp-admin/edit.php?post_type=ace_whatsapp_agent3.0821.28
Setting /wp-admin/edit.php?post_type=ace_whatsapp_agent&page=ace_whatsapp_style3.0219.03
Add Agent /wp-admin/post-new.php?post_type=ace_whatsapp_agent3.1431.92

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 1 new option
New WordPress options
awm_users_sortable_

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ace Social Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,778 ▲12715.56 ▼0.077.35 ▼1.56139.87 ▲62.36
Dashboard /wp-admin2,979 ▲845.96 ▼0.21118.08 ▼20.6173.02 ▼98.70
Posts /wp-admin/edit.php2,787 ▲473.22 ▲0.0065.52 ▲2.7371.80 ▼65.38
Add New Post /wp-admin/post-new.php3,685 ▼1419.13 ▲0.59461.50 ▲23.61121.67 ▼41.82
Media Library /wp-admin/upload.php1,795 ▲405.48 ▼0.05142.58 ▲2.55138.46 ▼45.90
All Agents /wp-admin/edit.php?post_type=ace_whatsapp_agent1,4953.0959.8756.31
Setting /wp-admin/edit.php?post_type=ace_whatsapp_agent&page=ace_whatsapp_style1,4662.3654.9784.29
Add Agent /wp-admin/post-new.php?post_type=ace_whatsapp_agent4,6425.4699.7268.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+303
    call_user_func_array() expects parameter 1 to be a valid callback, function 'deactivate_whatsapp_chat_multi_agent' not found or invalid function name
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • awm_users_sortable_

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ace_whatsapp_agent
    • > Warning in wp-includes/class-wp-hook.php+303
    call_user_func_array() expects parameter 1 to be a valid callback, class 'ace_social_chat_multi_Admin' does not have a method 'enqueue_scripts'
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ace_whatsapp_agent&page=ace_whatsapp_style
    • > Notice in wp-content/plugins/ace-social-chat/admin/partials/whatsapp-chat-multi-agent-admin-settings.php+65
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ace-social-chat/admin/partials/whatsapp-chat-multi-agent-admin-display.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ace-social-chat/public/partials/whatsapp_member_width.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ace-social-chat/admin/partials/whatsapp-chat-multi-agent-admin-settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ace-social-chat/public/partials/whatsapp-chat-multi-agent-public-display.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ace-social-chat/admin/class-whatsapp-chat-multi-agent-admin.php:449

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=ace_whatsapp_agent&page=ace_whatsapp_style
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?post_type=ace_whatsapp_agent&page=ace_whatsapp_style 197 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/edit.php?post_type=ace_whatsapp_agent&page=ace_whatsapp_style
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?post_type=ace_whatsapp_agent&page=ace_whatsapp_style 208 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (**Installation** - Search Ace Social Chat & Install Ace Social Chat Plugin.), #2 (**Activation** - Activate Ace Social Chat Plugin.), #3 (**Whatsapp Chat Menu** - Check Your Dashboard And here's your Whatsapp chat menu By Plugin.), #4 (**Add Agents** - Add Multiple Agents For your Website through Whatsapp Chat menu.), #5 (**Added Details** - Add All Details of Agents whose Whatsapp contact to be Shared for whatsapp chat.), #6 (**Settings** - Make Customization in settings according your requirements. Button Color, Background color, text colour, Display options, Woocommerce.), #7 (**Whatsapp on Page** - On your page whatsapp icon display, click on icon and see agent name and details with message.), #8 (**Whatsapp Web** - Login with Whatsapp and start Conversation.), #9 (**Shortcodes** - Also get shoctcodes of added Agents, that can applied in multiple section according to the requirements.)
You can look at the official readme.txt

ace-social-chat/ace-social-chat.php 85% from 13 tests

"Ace Social Chat" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)

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
No dangerous file extensions were detected1,929 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS3157431,096
PHP14237543825
JavaScript24298

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.43
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.53MB with 0.26MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/mOnline.png2.06KB1.03KB▼ 49.93%
admin/images/mOnline.png2.06KB1.03KB▼ 49.93%
public/images/whatsapp-bkg.png534.52KB277.49KB▼ 48.09%