94% chat-room

Code Review | Chat Room

WordPress plugin Chat Room scored 94% from 53 tests.

About plugin

  • Plugin page: chat-room
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7
  • WordPress version: 5.8.1
  • First release: Oct 5, 2012
  • Latest release: Mar 11, 2017
  • Number of updates: 19
  • Update frequency: every 85.1 days
  • Top authors: ericlewis (63.16%)tw2113 (42.11%)

Code review

53 tests

User reviews

13 reviews

Install metrics

400+ active / 47,435 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼264.63ms] Passed 4 tests

A check of server-side resources used by Chat Room
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1827.08 ▲6.06
Dashboard /wp-admin3.12 ▲0.0742.54 ▲9.33
Posts /wp-admin/edit.php3.18 ▲0.0739.05 ▼2.15
Add New Post /wp-admin/post-new.php5.48 ▲0.0592.01 ▼1,049.04
Media Library /wp-admin/upload.php3.06 ▲0.0628.05 ▼13.37
Add New /wp-admin/post-new.php?post_type=chat-room3.1134.34
All Chat Rooms /wp-admin/edit.php?post_type=chat-room3.1133.71

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Chat Room
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,712 ▲10616.20 ▲0.318.26 ▼0.7351.61 ▲0.73
Dashboard /wp-admin2,955 ▲995.90 ▲0.05171.95 ▲29.26110.31 ▲6.52
Posts /wp-admin/edit.php2,741 ▲382.70 ▲0.0168.92 ▲1.4597.37 ▲1.77
Add New Post /wp-admin/post-new.php1,676 ▲2318.80 ▲0.03389.11 ▲14.12124.63 ▲11.39
Media Library /wp-admin/upload.php1,807 ▲355.02 ▼0.02143.51 ▼10.55114.19 ▼17.46
Add New /wp-admin/post-new.php?post_type=chat-room1,8903.2695.2580.31
All Chat Rooms /wp-admin/edit.php?post_type=chat-room1,4082.6371.0265.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 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)
Good news, no errors were detected

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/chat-room/chat-room.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === chat-room === )
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (An example of a chat room in use within the Twenty Eleven theme.), #2 (The chat rooms are easily modifiable in the admin interface.), #3 (Chat rooms only require a title.)
You can take inspiration from this readme.txt

chat-room/chat-room.php Passed 13 tests

The main file in "Chat Room" v. 0.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
23 characters long description:
Chat Room for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected248 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12220179
JavaScript14062
CSS1197

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png64.17KB23.18KB▼ 63.88%
screenshot-1.png96.42KB40.31KB▼ 58.19%
screenshot-2.png71.11KB26.94KB▼ 62.12%