83% pure-chat

Code Review | Pure Chat - Live Chat Plugin & More!

WordPress plugin Pure Chat - Live Chat Plugin & More! scored83%from 54 tests.

About plugin

  • Plugin page: pure-chat
  • Plugin version: 2.22
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Sep 23, 2014
  • Latest release: Dec 7, 2021
  • Number of updates: 63
  • Update frequency: every 41.8 days
  • Top authors: pure-chat (100%)

Code review

54 tests

User reviews

44 reviews

Install metrics

7,000+ active /228,903 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.43ms] Passed 4 tests

This is a short check of server-side resources used by Pure Chat - Live Chat Plugin & More!
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0445.14 ▲5.67
Dashboard /wp-admin3.33 ▲0.0361.37 ▲11.86
Posts /wp-admin/edit.php3.39 ▲0.0351.55 ▼1.77
Add New Post /wp-admin/post-new.php5.91 ▲0.0394.82 ▼10.51
Media Library /wp-admin/upload.php3.26 ▲0.0340.58 ▲4.87

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
purechat_plugin_ver
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Pure Chat - Live Chat Plugin & More!
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.77 ▲0.471.96 ▲0.1544.49 ▲1.57
Dashboard /wp-admin2,221 ▲335.86 ▼0.05107.30 ▲1.4272.30 ▲31.97
Posts /wp-admin/edit.php2,104 ▲122.02 ▲0.0237.62 ▼2.8133.41 ▼3.69
Add New Post /wp-admin/post-new.php1,536 ▲323.23 ▲0.19729.83 ▲70.6051.92 ▼6.47
Media Library /wp-admin/upload.php1,394 ▲64.20 ▼0.0496.22 ▼15.3076.92 ▲29.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/pure-chat/purechat.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Chat widget), #2 (Operator dashboard), #3 (Native iOS and Android apps.)
  • Tags: Please reduce the number of tags, currently 28 tag instead of maximum 10
Please take inspiration from this readme.txt

pure-chat/purechat.php 85% from 13 tests

"Pure Chat - Live Chat Plugin & More!" version 2.22's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pure-chat.php" instead of "purechat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected156 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33246126
CSS14029
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods333.33%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions0
▷ Named functions00.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

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.51MB with 0.36MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png162.25KB49.43KB▼ 69.53%
screenshot-3.png140.73KB37.91KB▼ 73.06%
logo.png24.63KB8.58KB▼ 65.17%
screenshot-2.png193.32KB52.82KB▼ 72.68%