78% uwebchat

Code Review | uWebChat

WordPress plugin uWebChat scored78%from 54 tests.

About plugin

  • Plugin page: uwebchat
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2020
  • Latest release: Aug 18, 2022
  • Number of updates: 10
  • Update frequency: every 65.7 days
  • Top authors: uwebchatplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,512 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.18ms] Passed 4 tests

An overview of server-side resources used by uWebChat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0841.49 ▼3.42
Dashboard /wp-admin3.39 ▲0.0448.50 ▼12.00
Posts /wp-admin/edit.php3.50 ▲0.1447.58 ▼0.26
Add New Post /wp-admin/post-new.php5.99 ▲0.1080.01 ▼13.02
Media Library /wp-admin/upload.php3.31 ▲0.0835.92 ▲4.44
uWebChat /wp-admin/options-general.php?page=uWebChat3.2829.58

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

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

Browser metrics Passed 4 tests

Checking browser requirements for uWebChat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.53 ▼0.855.51 ▲2.9046.08 ▼2.78
Dashboard /wp-admin2,214 ▲265.84 ▲0.7695.85 ▼15.6738.30 ▼2.06
Posts /wp-admin/edit.php2,097 ▲82.02 ▼0.0135.03 ▼4.1532.40 ▼2.43
Add New Post /wp-admin/post-new.php1,526 ▼1723.30 ▲5.02693.71 ▲80.2947.63 ▼1.78
Media Library /wp-admin/upload.php1,396 ▲54.22 ▼0.08101.59 ▲3.1844.19 ▼0.03
uWebChat /wp-admin/options-general.php?page=uWebChat8462.0626.1125.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=uWebChat
    • > Notice in wp-content/plugins/uwebchat/admin/partials/uWebChat-admin-display.php+26
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/uwebchat/public/partials/uWebChat-public-display.php:16
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/uwebchat/public/partials/uWebChat-public-display.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/uwebchat/admin/partials/uWebChat-admin-display.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Enter both Customer ID and Group ID), #2 (Example of the button)
Please take inspiration from this readme.txt

uwebchat/uWebChat.php 85% from 13 tests

The entry point to "uWebChat" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("uwebchat.php" instead of "uWebChat.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
Good job! No executable or dangerous file extensions detected426 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12161482286
PO File4324134
JavaScript2406

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin