83% wp-whatsapp-message

Code Review | Chat Message Button

WordPress plugin Chat Message Button scored83%from 54 tests.

About plugin

  • Plugin page: wp-whatsapp-message
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.4-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 31, 2019
  • Latest release: May 13, 2020
  • Number of updates: 23
  • Update frequency: every 20.4 days
  • Top authors: desparza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /845 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.01MB] [CPU: ▼10.02ms] Passed 4 tests

Analyzing server-side resources used by Chat Message Button
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.98 ▼5.19
Dashboard /wp-admin3.32 ▼0.0244.50 ▼15.81
Posts /wp-admin/edit.php3.37 ▲0.0245.29 ▼1.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.42 ▼17.99
Media Library /wp-admin/upload.php3.24 ▲0.0232.70 ▲0.24
Chat Message Button /wp-admin/admin.php?page=cmb-message-settings3.2128.01
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu3.2131.46

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Chat Message Button
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10613.72 ▼1.021.97 ▲0.1841.69 ▼4.64
Dashboard /wp-admin2,231 ▲434.80 ▼1.10109.24 ▼7.3747.67 ▲1.62
Posts /wp-admin/edit.php2,111 ▲222.02 ▲0.0235.97 ▼0.5535.48 ▼0.10
Add New Post /wp-admin/post-new.php1,540 ▲1223.04 ▲4.72667.93 ▲65.1064.54 ▲4.70
Media Library /wp-admin/upload.php1,413 ▲224.22 ▲0.00100.07 ▼0.6144.51 ▲1.45
Chat Message Button /wp-admin/admin.php?page=cmb-message-settings8092.0326.2428.79
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu8022.0524.6529.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-whatsapp-message/wp-whatsapp-message.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Requires php: Invalid plugin version format
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

wp-whatsapp-message/wp-whatsapp-message.php 92% from 13 tests

The primary PHP file in "Chat Message Button" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 232 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin136 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2172681
SVG10148
CSS2227

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected