83% manycontacts-bar

Code Review | WhatsApp 🚀 click to chat

WordPress plugin WhatsApp 🚀 click to chat scored83%from 54 tests.

About plugin

  • Plugin page: manycontacts-bar
  • Plugin version: 3.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-6.1.1
  • WordPress version: 6.3.1
  • First release: May 24, 2013
  • Latest release: Dec 30, 2022
  • Number of updates: 45
  • Update frequency: every 77.9 days
  • Top authors: woorank (66.67%)manycontacts (35.56%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /13,991 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by WhatsApp 🚀 click to chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.01 ▼6.44
Dashboard /wp-admin3.31 ▲0.0146.91 ▼1.19
Posts /wp-admin/edit.php3.37 ▲0.0148.20 ▼0.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.17 ▲4.21
Media Library /wp-admin/upload.php3.24 ▲0.0141.73 ▲7.42

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WhatsApp 🚀 click to chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8014.47 ▲0.111.76 ▼0.2338.79 ▼9.47
Dashboard /wp-admin2,224 ▲364.94 ▲0.05103.01 ▼2.2885.62 ▲42.67
Posts /wp-admin/edit.php2,107 ▲181.98 ▼0.0838.37 ▼1.2135.32 ▲1.11
Add New Post /wp-admin/post-new.php1,530 ▲323.31 ▲0.13658.99 ▼2.2846.80 ▼4.60
Media Library /wp-admin/upload.php1,406 ▲184.16 ▼0.1097.46 ▼2.1393.81 ▲45.95

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/manycontacts-bar/manycontacts-bar-admin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/manycontacts-bar/manycontacts-bar.php:31
    • > PHP Notice
      Undefined index: manycontacts_bar_opt_hidden in wp-content/plugins/manycontacts-bar/manycontacts-bar-admin.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (How the widget is shown in your website.), #2 (The widget contact form in Desktop.), #3 (ManyContacts allow you to manage hundreds of WhatsApp conversations with your customers.), #4 (The ManyContacts plugin interface.)
Please take inspiration from this readme.txt

manycontacts-bar/manycontacts-bar.php 92% from 13 tests

The main file in "WhatsApp 🚀 click to chat" v. 3.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 175 characters long)

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
There were no executable files found in this plugin58 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2172758

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 1.99MB with 1.46MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png410.06KB115.44KB▼ 71.85%
screenshot-3.png886.45KB258.21KB▼ 70.87%
img/manycontacts-icon.png1.05KB0.18KB▼ 83.15%
screenshot-2.png738.19KB243.40KB▼ 67.03%