84% wemake-chat

Code Review | Wemake WhatsApp

WordPress plugin Wemake WhatsApp scored84%from 54 tests.

About plugin

  • Plugin page: wemake-chat
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 20, 2022
  • Latest release: Sep 4, 2022
  • Number of updates: 3
  • Update frequency: every 16.0 days
  • Top authors: wemakeil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.74ms] Passed 4 tests

This is a short check of server-side resources used by Wemake WhatsApp
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.77 ▼27.30
Dashboard /wp-admin3.32 ▲0.0247.66 ▼0.83
Posts /wp-admin/edit.php3.37 ▲0.0146.95 ▼13.94
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.57 ▲4.17
Media Library /wp-admin/upload.php3.24 ▲0.0135.77 ▲3.13
Wemake Chat /wp-admin/options-general.php?page=wm-chat3.2131.33

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Wemake WhatsApp
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,001 ▲25514.06 ▼0.198.92 ▲6.2870.54 ▲9.84
Dashboard /wp-admin2,232 ▲444.95 ▲0.04108.49 ▲6.1440.01 ▼0.56
Posts /wp-admin/edit.php2,121 ▲352.26 ▲0.2842.62 ▲4.9535.67 ▲2.04
Add New Post /wp-admin/post-new.php1,528 ▲1523.52 ▼0.00717.06 ▲143.2463.96 ▲13.94
Media Library /wp-admin/upload.php1,417 ▲264.30 ▲0.06101.31 ▲0.5043.15 ▲0.03
Wemake Chat /wp-admin/options-general.php?page=wm-chat1,1981.9531.9141.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wemake-chat/inc/action.php:118
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wemake-chat/wemake-chat.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: whatsapp, chat, call

wemake-chat/wemake-chat.php Passed 13 tests

The main PHP script in "Wemake WhatsApp" version 1.1 is automatically included on every request by WordPress
20 characters long description:
WhatsApp chat button

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,195 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
SVG3001,510
Sass5753929
PHP612257467
JavaScript39136157
PO File25462130
CSS2022

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions20
▷ Named functions1260.00%
▷ Anonymous functions840.00%
Constants9
▷ Global constants9100.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
7 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png36.61KB14.79KB▼ 59.59%
assets/img/devil.png2.48KB1.61KB▼ 35.34%
screenshot-3.png76.77KB29.34KB▼ 61.78%
assets/img/flags.png1.32KB0.45KB▼ 65.63%
assets/img/form-pic-bt.png2.23KB0.80KB▼ 64.07%