84% easy-chat-button

Code Review | Easy Chat Button

WordPress plugin Easy Chat Button scored84%from 54 tests.

About plugin

  • Plugin page: easy-chat-button
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: May 17, 2023
  • Latest release: May 31, 2023
  • Number of updates: 8
  • Update frequency: every 1.9 days
  • Top authors: mxideas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /110 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

This is a short check of server-side resources used by Easy Chat Button
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.59 ▲0.26
Dashboard /wp-admin3.31 ▲0.0146.67 ▼0.17
Posts /wp-admin/edit.php3.36 ▲0.0145.75 ▼2.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.90 ▼13.80
Media Library /wp-admin/upload.php3.24 ▲0.0135.74 ▲2.05
Easy Chat Button /wp-admin/options-general.php?page=easy_chat-button-settings3.2030.01

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

How much does this plugin use your filesystem and database?
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
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Chat Button
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲17315.55 ▲1.1810.07 ▲8.4040.63 ▼2.41
Dashboard /wp-admin2,210 ▲244.84 ▼0.09108.18 ▼3.7439.39 ▼5.11
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0235.51 ▼0.6431.62 ▼5.00
Add New Post /wp-admin/post-new.php1,522 ▼1123.37 ▲0.06665.79 ▲25.5954.23 ▼5.84
Media Library /wp-admin/upload.php1,392 ▲74.17 ▼0.0593.28 ▼6.8841.31 ▼2.27
Easy Chat Button /wp-admin/options-general.php?page=easy_chat-button-settings8142.0323.9524.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-chat-button/easy-chat-button.php:55

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: whatsapp, woocommerce whatsapp, communication, messaging, chat bbutton...

easy-chat-button/easy-chat-button.php 92% from 13 tests

The entry point to "Easy Chat Button" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin91 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1211085
CSS1206

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.07
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.35MB with 0.25MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot1.png359.64KB105.45KB▼ 70.68%