83% wstoolsnl-chat

Code Review | Plugin Name: WStools.nl - Chat

WordPress plugin Plugin Name: WStools.nl - Chatscored83%from 54 tests.

About plugin

  • Plugin page: wstoolsnl-chat
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2014
  • Latest release: Nov 6, 2014
  • Number of updates: 7
  • Update frequency: every 80.0 days
  • Top authors: WStools (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /968 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
Installer ran successfully

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

Analyzing server-side resources used by Plugin Name: WStools.nl - Chat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0066.89 ▼3.55
Dashboard /wp-admin3.31 ▲0.0079.52 ▼20.84
Posts /wp-admin/edit.php3.36 ▲0.0073.66 ▼14.98
Add New Post /wp-admin/post-new.php5.89 ▲0.00140.43 ▲2.54
Media Library /wp-admin/upload.php3.23 ▲0.0059.34 ▼24.24

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Name: WStools.nl - Chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲9014.42 ▲0.393.95 ▲0.5971.44 ▼3.95
Dashboard /wp-admin2,200 ▲125.88 ▲1.03192.31 ▼1.1384.15 ▼4.29
Posts /wp-admin/edit.php2,092 ▼02.05 ▲0.0562.71 ▼23.5170.57 ▼3.28
Add New Post /wp-admin/post-new.php1,421 ▲2917.32 ▼0.91921.00 ▼75.8277.13 ▼1.25
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.07176.88 ▼9.0894.91 ▼5.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wstoolsnl-chat/wstools-chat.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Live chat op uw website), #2 (Naam invoeren), #3 (Beginnen met de chat)
  • Plugin Name: Please specify the plugin name on the first line ( === Plugin Name: WStools.nl - Chat=== )
The official readme.txt is a good inspiration

wstoolsnl-chat/wstools-chat.php 92% from 13 tests

The primary PHP file in "Plugin Name: WStools.nl - Chat" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wstoolsnl-chat.php" instead of "wstools-chat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin10 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP20910

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 1.26MB with 0.75MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png432.13KB176.78KB▼ 59.09%
screenshot-3.png443.96KB176.10KB▼ 60.33%
screenshot-1.png415.95KB172.09KB▼ 58.63%