84% video-chat-for-cisco-and-fusionpbx-callcenters

Code Review | Video Chat for Cisco and FusionPBX Callcenters

WordPress plugin Video Chat for Cisco and FusionPBX Callcenters scored84%from 54 tests.

About plugin

  • Plugin page: video-chat-for-ci...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9
  • WordPress version: 6.3.1
  • First release: Jan 18, 2022
  • Latest release: Feb 14, 2022
  • Number of updates: 15
  • Update frequency: every 1.8 days
  • Top authors: hashmatkhan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,801 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 gracefully, with no errors

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

An overview of server-side resources used by Video Chat for Cisco and FusionPBX Callcenters
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1247.01 ▲3.23
Dashboard /wp-admin3.42 ▲0.0350.31 ▼19.64
Posts /wp-admin/edit.php3.53 ▲0.1348.87 ▼2.32
Add New Post /wp-admin/post-new.php6.00 ▲0.0792.19 ▼6.26
Media Library /wp-admin/upload.php3.34 ▲0.0737.28 ▼0.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Video Chat for Cisco and FusionPBX Callcenters
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,467 ▲1,70614.33 ▼0.1219.32 ▲17.4694.93 ▲50.14
Dashboard /wp-admin2,207 ▲275.62 ▼0.0588.33 ▼14.4241.15 ▼2.41
Posts /wp-admin/edit.php2,112 ▲121.95 ▲0.0136.17 ▲0.7833.57 ▲0.57
Add New Post /wp-admin/post-new.php1,536 ▲1023.12 ▼0.00655.24 ▼74.4859.46 ▲3.13
Media Library /wp-admin/upload.php1,412 ▲124.19 ▲0.0296.51 ▼11.2544.66 ▼2.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-chat-for-cisco-and-fusionpbx-callcenters/index.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: You can look at the official readme.txt

video-chat-for-cisco-and-fusionpbx-callcenters/index.php 92% from 13 tests

"Video Chat for Cisco and FusionPBX Callcenters" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("video-chat-for-cisco-and-fusionpbx-callcenters.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin18,488 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript37576,50115,927
CSS31911372,123
PHP12710438

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin