10% website-toolbox-chat-rooms

Code Review | Website Toolbox Chat Room

WordPress plugin Website Toolbox Chat Room scored10%from 54 tests.

About plugin

  • Plugin page: website-toolbox-c...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.9
  • WordPress version: 6.3.1
  • First release: Jun 28, 2015
  • Latest release: Feb 10, 2022
  • Number of updates: 33
  • Update frequency: every 73.3 days
  • Top authors: websitetoolbox (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /9,004 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.17MB] [CPU: ▼4.45ms] Passed 4 tests

This is a short check of server-side resources used by Website Toolbox Chat Room
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1342.93 ▲2.10
Dashboard /wp-admin3.51 ▲0.1750.96 ▼3.32
Posts /wp-admin/edit.php3.61 ▲0.2150.39 ▼0.92
Add New Post /wp-admin/post-new.php6.19 ▲0.2679.75 ▼9.07
Media Library /wp-admin/upload.php3.45 ▲0.1835.57 ▼4.50

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
wtbChatRoomPageid
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Website Toolbox Chat Room: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.36 ▲0.011.79 ▲0.1242.97 ▲1.80
Dashboard /wp-admin2,189 ▲95.59 ▼0.0299.92 ▲9.2542.44 ▲0.34
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0335.22 ▼0.5935.67 ▲0.75
Add New Post /wp-admin/post-new.php1,525 ▼322.52 ▼0.52676.45 ▼19.3851.17 ▼2.69
Media Library /wp-admin/upload.php1,403 ▲94.16 ▼0.0495.71 ▼32.6340.55 ▼10.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • wtbChatRoomPageid
    • widget_recent-comments
    • db_upgraded

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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/website-toolbox-chat-rooms/websitetoolboxChatRoom.php:467
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/website-toolbox-chat-rooms/chatHook.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

website-toolbox-chat-rooms/websitetoolboxChatRoom.php 92% from 13 tests

Analyzing the main PHP file in "Website Toolbox Chat Room" version 1.1.5
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("website-toolbox-chat-rooms.php" instead of "websitetoolboxChatRoom.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected683 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP291198683

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
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
PNG images were not found in this plugin