83% chat-in

Code Review | Chat-In Inc

WordPress plugin Chat-In Inc scored83%from 54 tests.

About plugin

  • Plugin page: chat-in
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Feb 6, 2018
  • Latest release: Nov 2, 2018
  • Number of updates: 5
  • Update frequency: every 53.8 days
  • Top authors: cteamcom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /905 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.80ms] Passed 4 tests

This is a short check of server-side resources used by Chat-In Inc
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.54 ▼3.76
Dashboard /wp-admin3.32 ▲0.0249.79 ▼1.85
Posts /wp-admin/edit.php3.37 ▲0.0250.32 ▲3.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.55 ▼15.11
Media Library /wp-admin/upload.php3.25 ▲0.0234.46 ▼2.46
Chat-In /wp-admin/options-general.php?page=chat-in-opciones3.2133.52

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Chat-In Inc
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲20713.51 ▼1.0715.32 ▲13.5244.00 ▲3.03
Dashboard /wp-admin2,190 ▲105.55 ▼0.0784.35 ▼5.6541.36 ▼5.23
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0035.84 ▼2.5834.24 ▼2.31
Add New Post /wp-admin/post-new.php1,549 ▲1823.23 ▲0.15667.35 ▲13.8050.15 ▼1.91
Media Library /wp-admin/upload.php1,407 ▲74.16 ▼0.0698.91 ▼8.1546.04 ▲2.12
Chat-In /wp-admin/options-general.php?page=chat-in-opciones8172.0326.4828.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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 | 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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chat-in/chatin.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: "www.chat-in.net"
The official readme.txt is a good inspiration

chat-in/chatin.php 85% from 13 tests

The entry point to "Chat-In Inc" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.3" instead of "4.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("chat-in.php" instead of "chatin.php")

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
There were no executable files found in this plugin57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101357

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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