89% chat-me-now

Code Review | chat-me-now

WordPress plugin chat-me-now scored89%from 54 tests.

About plugin

  • Plugin page: chat-me-now
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7.2
  • WordPress version: 6.3.1
  • First release: May 7, 2021
  • Latest release: May 22, 2021
  • Number of updates: 17
  • Update frequency: every 0.9 days
  • Top authors: dfrankortiz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

7,000+ active /31,162 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by chat-me-now
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.61 ▼0.55
Dashboard /wp-admin3.32 ▲0.0247.59 ▼2.25
Posts /wp-admin/edit.php3.38 ▲0.0247.10 ▼1.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.56 ▼7.31
Media Library /wp-admin/upload.php3.25 ▲0.0232.69 ▼0.64

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

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

Browser metrics Passed 4 tests

A check of browser resources used by chat-me-now
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8014.44 ▼0.131.70 ▼0.3241.98 ▼0.20
Dashboard /wp-admin2,224 ▲324.98 ▼0.0196.88 ▼12.1069.83 ▲25.94
Posts /wp-admin/edit.php2,104 ▲151.97 ▼0.0938.11 ▼1.6935.74 ▼0.63
Add New Post /wp-admin/post-new.php1,545 ▲2518.53 ▼4.55649.95 ▲32.5961.54 ▲4.99
Media Library /wp-admin/upload.php1,406 ▲214.23 ▲0.0697.98 ▼3.1272.34 ▲29.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

chat-me-now/chat-me-now.php 77% from 13 tests

The main file in "chat-me-now" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: Please prefix the domain path with a forward slash character ("//")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "4.7")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin350 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP46633319
CSS12031

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity18.00
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/wmn-icon.png0.93KB0.89KB▼ 4.30%