90% essential-chat-support

Code Review | Essential Chat Support

WordPress plugin Essential Chat Support scored 90% from 54 tests.

About plugin

  • Plugin page: essential-chat-su...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 17, 2022
  • Latest release: Sep 20, 2023
  • Number of updates: 7
  • Update frequency: every 78.9 days
  • Top authors: wponlinesupport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 420 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲0.07ms] Passed 4 tests

Server-side resources used by Essential Chat Support
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.50 ▼0.30
Dashboard /wp-admin3.37 ▲0.0745.31 ▼1.71
Posts /wp-admin/edit.php3.42 ▲0.0746.72 ▲1.05
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.60 ▲1.23
Media Library /wp-admin/upload.php3.29 ▲0.0735.67 ▲2.58
Settings /wp-admin/edit.php?post_type=ecs_contacts&page=ecs-settings3.3131.44
All Contacts /wp-admin/edit.php?post_type=ecs_contacts3.3435.97
All Chat Widgets /wp-admin/edit.php?post_type=ecs_chat_widget3.3434.06
Add New Contact /wp-admin/post-new.php?post_type=ecs_contacts3.4448.79

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
ecs_options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Essential Chat Support: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲11314.80 ▲0.491.82 ▼0.3140.26 ▼8.83
Dashboard /wp-admin2,244 ▲565.85 ▲0.9598.90 ▼1.8339.55 ▼5.04
Posts /wp-admin/edit.php2,130 ▲412.04 ▲0.0339.75 ▲2.9535.76 ▲3.73
Add New Post /wp-admin/post-new.php1,566 ▲3823.28 ▲4.95670.44 ▲55.5662.09 ▲4.33
Media Library /wp-admin/upload.php1,426 ▲354.19 ▲0.0094.76 ▼2.7440.81 ▼2.00
Settings /wp-admin/edit.php?post_type=ecs_contacts&page=ecs-settings9341.9129.1627.33
All Contacts /wp-admin/edit.php?post_type=ecs_contacts1,1312.2533.7329.24
All Chat Widgets /wp-admin/edit.php?post_type=ecs_chat_widget1,1452.4740.0627.15
Add New Contact /wp-admin/post-new.php?post_type=ecs_contacts3,1313.9976.5037.22

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • ecs_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: whatsapp chat support, chat support, whatsapp chat, whatsapp group, chat...

essential-chat-support/essential-chat-support.php Passed 13 tests

The main file in "Essential Chat Support" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
136 characters long description:
Connect, Interact and Offer support to your customers directly as well as build trust and increase loyalty with WhatsApp from any where.

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
Everything looks great! No dangerous files found in this plugin5,193 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP275096562,162
JavaScript34919210
CSS41513150

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.41
Average class complexity45.33
▷ Minimum class complexity15.00
▷ Maximum class complexity64.00
Average method complexity6.78
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
3 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/person-placeholder.png29.00KB19.15KB▼ 33.96%
assets/images/whatsapp-bg.png61.25KB66.04KB0.00%
assets/images/group-id.png16.22KB8.57KB▼ 47.19%