83% channelize-io-real-time-messaging-and-video-calling

Code Review | Real-time User-to-User Chat, Video & Voice Calling for WordPress

WordPress plugin Real-time User-to-User Chat, Video & Voice Calling for WordPress scored83%from 54 tests.

About plugin

  • Plugin page: channelize-io-rea...
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Nov 20, 2020
  • Latest release: Nov 20, 2020
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: channelizeio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,326 total downloads

Benchmarks

Plugin footprint 83% from 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.10MB] [CPU: ▼11.38ms] Passed 4 tests

An overview of server-side resources used by Real-time User-to-User Chat, Video & Voice Calling for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1937.09 ▼2.09
Dashboard /wp-admin3.57 ▲0.2752.75 ▼1.45
Posts /wp-admin/edit.php3.62 ▲0.2753.89 ▲2.55
Add New Post /wp-admin/post-new.php4.80 ▼1.0949.39 ▼44.51
Media Library /wp-admin/upload.php3.43 ▲0.2140.24 ▲4.46
User Role Setting /wp-admin/admin.php?page=channelize_user_role_settings3.4036.24
General /wp-admin/admin.php?page=channelize-settings3.4036.10
Migration /wp-admin/admin.php?page=channelize_migraton_settings3.4134.34

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
channelize
db_upgraded
widget_recent-posts
widget_recent-comments
widget_channelize_widget
channelize_userrole
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Real-time User-to-User Chat, Video & Voice Calling for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲12913.57 ▼0.811.85 ▲0.2640.83 ▲2.74
Dashboard /wp-admin2,266 ▲604.86 ▼0.24109.45 ▲2.0842.31 ▼5.91
Posts /wp-admin/edit.php2,145 ▲452.03 ▲0.0540.71 ▲2.9438.28 ▼1.42
Add New Post /wp-admin/post-new.php1,562 ▲1517.59 ▼5.41706.65 ▲47.4841.11 ▼13.27
Media Library /wp-admin/upload.php1,442 ▲424.26 ▲0.0799.32 ▼1.3145.45 ▲3.37
User Role Setting /wp-admin/admin.php?page=channelize_user_role_settings9662.0336.1754.64
General /wp-admin/admin.php?page=channelize-settings8952.0724.3627.51
Migration /wp-admin/admin.php?page=channelize_migraton_settings9531.9429.1040.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • channelize
    • widget_recent-posts
    • widget_channelize_widget
    • db_upgraded
    • widget_theysaidso_widget
    • channelize_userrole
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PrimeMessenger\\Primemessenger\\Exceptions\\BaseApiException' not found in wp-content/plugins/channelize-io-real-time-messaging-and-video-calling/libraries/channelize-php/lib/Primemessenger/Exceptions/ValidationFailException.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PrimeMessenger\\Primemessenger\\Resource' not found in wp-content/plugins/channelize-io-real-time-messaging-and-video-calling/libraries/channelize-php/lib/Primemessenger/Message.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PrimeMessenger\\Primemessenger\\Resource' not found in wp-content/plugins/channelize-io-real-time-messaging-and-video-calling/libraries/channelize-php/lib/Primemessenger/PushNotificationSettings.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PrimeMessenger\\Primemessenger\\Exceptions\\BaseApiException' not found in wp-content/plugins/channelize-io-real-time-messaging-and-video-calling/libraries/channelize-php/lib/Primemessenger/Exceptions/UnauthorizedException.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PrimeMessenger\\Primemessenger\\Exceptions\\BaseApiException' not found in wp-content/plugins/channelize-io-real-time-messaging-and-video-calling/libraries/channelize-php/lib/Primemessenger/Exceptions/ForbiddenException.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PrimeMessenger\\Primemessenger\\Resource' not found in wp-content/plugins/channelize-io-real-time-messaging-and-video-calling/libraries/channelize-php/lib/Primemessenger/User.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'PrimeMessenger\\Primemessenger\\Exceptions\\BaseApiException' not found in wp-content/plugins/channelize-io-real-time-messaging-and-video-calling/libraries/channelize-php/lib/Primemessenger/Exceptions/InternalServerException.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PrimeMessenger\\Primemessenger\\Resource' not found in wp-content/plugins/channelize-io-real-time-messaging-and-video-calling/libraries/channelize-php/lib/Primemessenger/Conversation.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PrimeMessenger\\Primemessenger\\Exceptions\\BaseException' not found in wp-content/plugins/channelize-io-real-time-messaging-and-video-calling/libraries/channelize-php/lib/Primemessenger/Exceptions/BaseApiException.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PrimeMessenger\\Primemessenger\\Exceptions\\BaseApiException' not found in wp-content/plugins/channelize-io-real-time-messaging-and-video-calling/libraries/channelize-php/lib/Primemessenger/Exceptions/NoRecordFoundException.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: chat, audio call, video call, calling, real-time chat

channelize-io-real-time-messaging-and-video-calling/channelize-io-real-time-messaging-and-video-calling.php 85% from 13 tests

"Real-time User-to-User Chat, Video & Voice Calling for WordPress" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 277 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,912 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP333456511,571
JavaScript5924157
CSS51023144
JSON20028
YAML10012

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.60
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods126
▷ Static methods97.14%
▷ Public methods11389.68%
▷ Protected methods53.97%
▷ Private methods86.35%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants12
▷ Global constants18.33%
▷ Class constants1191.67%
▷ Public constants11100.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 0.49MB with 0.35MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/screenshots/docked.png62.32KB18.20KB▼ 70.80%
admin/screenshots/full.png346.67KB100.84KB▼ 70.91%
admin/screenshots/Overview.png94.09KB26.88KB▼ 71.43%