83% wp-whatsapp-share

Code Review | Share by Chat Message (Pages & Posts)

WordPress plugin Share by Chat Message (Pages & Posts) scored 83% from 54 tests.

About plugin

  • Plugin page: wp-whatsapp-share
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.4-5.3.2
  • WordPress version: 6.3.1
  • First release: Sep 2, 2018
  • Latest release: May 13, 2020
  • Number of updates: 36
  • Update frequency: every 17.2 days
  • Top authors: desparza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,027 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.57ms] Passed 4 tests

This is a short check of server-side resources used by Share by Chat Message (Pages & Posts)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.57 ▼5.67
Dashboard /wp-admin3.31 ▲0.0145.65 ▼6.83
Posts /wp-admin/edit.php3.36 ▲0.0146.66 ▼0.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.90 ▼20.51
Media Library /wp-admin/upload.php3.23 ▲0.0132.47 ▼1.25
Share Chat Message /wp-admin/admin.php?page=scm-sharemessage-add-settings3.2031.67
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu3.2026.00

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

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

Browser metrics Passed 4 tests

Share by Chat Message (Pages & Posts): an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5613.25 ▼1.061.80 ▼0.3842.25 ▼2.54
Dashboard /wp-admin2,231 ▲535.87 ▲0.88109.89 ▼10.6853.33 ▼6.04
Posts /wp-admin/edit.php2,114 ▲222.03 ▼0.0236.91 ▲1.6337.96 ▲6.03
Add New Post /wp-admin/post-new.php1,549 ▲1623.24 ▲4.99635.36 ▲15.4765.33 ▲8.94
Media Library /wp-admin/upload.php1,410 ▲224.30 ▲0.09101.73 ▲5.2945.99 ▲2.68
Share Chat Message /wp-admin/admin.php?page=scm-sharemessage-add-settings8222.0328.7831.49
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu8022.0526.9630.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-whatsapp-share/wp-share-chat-message.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 75% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Requires php: Invalid version format
  • Contributors: The plugin tags were not defined
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Contributors: The plugin contributors field is not present
Please take inspiration from this readme.txt

wp-whatsapp-share/wp-share-chat-message.php 85% from 13 tests

The principal PHP file in "Share by Chat Message (Pages & Posts)" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-whatsapp-share.php" instead of "wp-share-chat-message.php")

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 plugin136 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2192680
SVG10148
CSS2238

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.19
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected