83% talkm-chat-widget

Code Review | TalkM Chat Widget

WordPress plugin TalkM Chat Widget scored83%from 54 tests.

About plugin

  • Plugin page: talkm-chat-widget
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 21, 2018
  • Latest release: Nov 27, 2018
  • Number of updates: 13
  • Update frequency: every 0.5 days
  • Top authors: producttalkm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /605 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.96ms] Passed 4 tests

A check of server-side resources used by TalkM Chat Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.35 ▲0.10
Dashboard /wp-admin3.39 ▲0.0948.53 ▼2.29
Posts /wp-admin/edit.php3.50 ▲0.1549.13 ▼0.24
Add New Post /wp-admin/post-new.php5.97 ▲0.0897.63 ▲1.34
Media Library /wp-admin/upload.php3.31 ▲0.0836.71 ▼1.41
TalkM /wp-admin/options-general.php?page=talkm_plugin3.3034.00

Server storage [IO: ▲0.03MB] [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, 13 new options
New WordPress options
db_upgraded
talkm-embed-widget-company-id
talkm-embed-widget-username-id
widget_recent-posts
talkm-embed-widget-expire-id
widget_recent-comments
talkm-embed-widget-password-id
can_compress_scripts
talkm-visibility-options
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for TalkM Chat Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.45 ▼0.111.84 ▲0.0341.14 ▼3.89
Dashboard /wp-admin2,225 ▲195.87 ▲0.97112.60 ▲7.8842.03 ▲2.44
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0040.19 ▲0.8237.40 ▼1.70
Add New Post /wp-admin/post-new.php1,549 ▲923.43 ▲0.26624.96 ▼71.9359.32 ▼6.58
Media Library /wp-admin/upload.php1,404 ▲104.24 ▼0.0398.70 ▼0.4044.99 ▼1.35
TalkM /wp-admin/options-general.php?page=talkm_plugin9481.8824.8228.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/talkm-chat-widget/talkm.php:465

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% 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:
  • Donate link: Invalid url: ""
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: Add descriptions for screenshots #4, #5 in talkm-chat-widget/assets to your readme.txt
The official readme.txt might help

talkm-chat-widget/talkm.php 85% from 13 tests

"TalkM Chat Widget" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("talkm-chat-widget.php" instead of "talkm.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected755 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP310658478
CSS1100223
JavaScript13554

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity18.00
▷ Minimum class complexity17.00
▷ Maximum class complexity19.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin