83% wp-whatsapp-product-request

Code Review | Product Request by Chat

WordPress plugin Product Request by Chat scored83%from 54 tests.

About plugin

  • Plugin page: wp-whatsapp-produ...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.4-5.3.2
  • WordPress version: 6.3.1
  • First release: Jun 12, 2019
  • Latest release: May 13, 2020
  • Number of updates: 25
  • Update frequency: every 13.4 days
  • Top authors: desparza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /804 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Product Request by Chat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.10 ▼2.47
Dashboard /wp-admin3.31 ▲0.0140.86 ▼10.60
Posts /wp-admin/edit.php3.36 ▲0.0145.36 ▲3.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.85 ▲7.23
Media Library /wp-admin/upload.php3.24 ▲0.0133.19 ▲0.02
Product Request Chat /wp-admin/admin.php?page=product-request-chat-settings3.2029.39
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu3.2029.97

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Product Request by Chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.34 ▼0.011.74 ▲0.2638.22 ▼1.17
Dashboard /wp-admin2,223 ▲435.64 ▲0.0291.58 ▲4.2050.01 ▲11.90
Posts /wp-admin/edit.php2,122 ▲252.03 ▼0.0739.25 ▲0.7138.57 ▲3.53
Add New Post /wp-admin/post-new.php1,548 ▲2223.09 ▼0.52635.19 ▼60.8251.12 ▼13.10
Media Library /wp-admin/upload.php1,422 ▲224.14 ▼0.0997.93 ▼5.9047.03 ▲3.04
Product Request Chat /wp-admin/admin.php?page=product-request-chat-settings9051.9622.7229.37
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu8142.0024.6729.50

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-whatsapp-product-request/wp-whatsapp-product-request.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Requires php: The plugin version is formatted incorrectly
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-whatsapp-product-request/wp-whatsapp-product-request.php 92% from 13 tests

Analyzing the main PHP file in "Product Request by Chat" version 1.0
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 255 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected159 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22127100
SVG10148
CSS23411

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin