73% personal-chat-room

Code Review | Personal Chat room

WordPress plugin Personal Chat room scored73%from 54 tests.

About plugin

  • Plugin page: personal-chat-room
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2+
  • WordPress version: 6.3.1
  • First release: Apr 18, 2013
  • Latest release: Aug 13, 2013
  • Number of updates: 7
  • Update frequency: every 16.9 days
  • Top authors: lordlinus (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,637 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.64ms] Passed 4 tests

This is a short check of server-side resources used by Personal Chat room
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.46 ▼9.35
Dashboard /wp-admin3.32 ▼0.0345.72 ▼17.41
Posts /wp-admin/edit.php3.37 ▲0.0145.70 ▼0.28
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.95 ▼5.93
Media Library /wp-admin/upload.php3.24 ▲0.0132.65 ▼5.88

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: 3 new tables, 6 new options
New tables
cs_profiles
cs_messages
cs_val_tab
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Personal Chat room
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.22 ▼1.191.58 ▼0.1937.82 ▼5.94
Dashboard /wp-admin2,222 ▲344.84 ▼1.06112.63 ▼8.6142.33 ▼1.55
Posts /wp-admin/edit.php2,108 ▲192.01 ▲0.0239.20 ▲1.2336.26 ▲1.86
Add New Post /wp-admin/post-new.php1,548 ▲3123.13 ▲5.25585.29 ▼85.1463.56 ▲0.65
Media Library /wp-admin/upload.php1,407 ▲224.16 ▼0.0794.84 ▼1.4741.83 ▼1.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie tables detected upon uninstall: 3 tables
    • cs_val_tab
    • cs_profiles
    • cs_messages
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/personal-chat-room/personal-chat-room.php:14
    • > PHP Notice
      Undefined index: MySQL in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php on line 17
    • > PHP Notice
      Trying to get property 'sDbName' of non-object in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to a member function query() on null in wp-content/plugins/personal-chat-room/install-script.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mysql_connect() in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mysql_connect() in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php:20
    • > PHP Notice
      Undefined index: MySQL in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php on line 15
    • > PHP Notice
      Trying to get property 'sDbUser' of non-object in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php on line 17
    • > PHP Notice
      Trying to get property 'sDbHost' of non-object in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php on line 15
    • > PHP Notice
      Undefined index: MySQL in wp-content/plugins/personal-chat-room/chat/classes/CMySQL.php on line 18

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

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === personal-chat-room === )
  • Screenshots: Add images for these screenshots: #1 (Wordpress Admin Setting), #2 (Wordpress Front Page Display), #3 (After clicking on the Live chat button, you will be redirected to this page)
Please take inspiration from this readme.txt

personal-chat-room/personal-chat-room.php 92% from 13 tests

This is the main PHP file of "Personal Chat room" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 151 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,073 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP7186338771
CSS154181
HTML415088
JavaScript12133

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity27.17
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity6.61
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png18.41KB6.21KB▼ 66.26%
screenshot-2.png21.81KB9.59KB▼ 56.03%
screenshot-1.png27.58KB12.31KB▼ 55.35%