73% easy-whatsapp-contact

Code Review | Easy Contact Chat

WordPress plugin Easy Contact Chat scored73%from 54 tests.

About plugin

  • Plugin page: easy-whatsapp-con...
  • Plugin version: 1.5.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-5.5
  • WordPress version: 6.3.1
  • First release: Jul 18, 2019
  • Latest release: Sep 29, 2020
  • Number of updates: 83
  • Update frequency: every 5.3 days
  • Top authors: squaresfere (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

800+ active /7,782 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼1.93MB] [CPU: ▼50.63ms] Passed 4 tests

A check of server-side resources used by Easy Contact Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.47 ▼37.04
Dashboard /wp-admin2.07 ▼1.236.37 ▼39.94
Posts /wp-admin/edit.php2.07 ▼1.285.85 ▼39.94
Add New Post /wp-admin/post-new.php2.07 ▼3.815.99 ▼85.59
Media Library /wp-admin/upload.php2.07 ▼1.155.87 ▼27.84

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

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

Browser metrics Passed 4 tests

Easy Contact Chat: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,137 ▲38013.79 ▼0.5810.86 ▲8.8842.74 ▼4.05
Dashboard /wp-admin2,258 ▲704.87 ▼0.02111.43 ▲11.0337.88 ▼6.80
Posts /wp-admin/edit.php2,138 ▲492.07 ▲0.0739.10 ▲3.7135.39 ▲0.31
Add New Post /wp-admin/post-new.php1,529 ▲117.75 ▼0.76593.33 ▼53.7054.51 ▼0.03
Media Library /wp-admin/upload.php1,441 ▲504.24 ▲0.0493.81 ▼3.6837.87 ▼4.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wact-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-whatsapp-contact/easy_whatsapp_contact.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #4 (Admin panel) image not found
  • Contributors: Plugin contributors field is missing
  • Screenshots: Please a description for screenshot #2 in easy-whatsapp-contact/assets to your readme.txt
The official readme.txt is a good inspiration

easy-whatsapp-contact/easy_whatsapp_contact.php 92% from 13 tests

The main PHP file in "Easy Contact Chat" ver. 1.5.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-whatsapp-contact.php" instead of "easy_whatsapp_contact.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,964 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP414410702
SVG21011589
CSS1670425
PO File15556141
JavaScript1220107

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
resources/img/whatsapp-logo.png2.23KB1.63KB▼ 26.55%