74% crowdhandler-virtual-waiting-room

Code Review | CrowdHandler virtual waiting room

WordPress plugin CrowdHandler virtual waiting room scored74%from 54 tests.

About plugin

  • Plugin page: crowdhandler-virt...
  • Plugin version: 1.1.12
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 10, 2021
  • Latest release: Apr 3, 2023
  • Number of updates: 21
  • Update frequency: every 27.5 days
  • Top authors: crowdhandlerqueue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,246 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▲0.04ms] Passed 4 tests

This is a short check of server-side resources used by CrowdHandler virtual waiting room
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1440.94 ▲5.50
Dashboard /wp-admin3.52 ▲0.2156.89 ▲10.46
Posts /wp-admin/edit.php3.57 ▲0.2150.31 ▲1.48
Add New Post /wp-admin/post-new.php6.05 ▲0.1687.46 ▼7.52
Media Library /wp-admin/upload.php3.38 ▲0.1434.61 ▲0.70

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

CrowdHandler virtual waiting room: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲4814.10 ▼0.461.99 ▲0.0945.16 ▲6.59
Dashboard /wp-admin2,215 ▲355.51 ▼0.1598.86 ▲13.2543.37 ▼0.38
Posts /wp-admin/edit.php2,123 ▲232.02 ▲0.0133.17 ▼2.9432.91 ▼0.85
Add New Post /wp-admin/post-new.php1,543 ▲1723.67 ▲0.65641.43 ▼0.6464.98 ▲13.73
Media Library /wp-admin/upload.php1,423 ▲294.17 ▲0.0192.37 ▼4.8239.62 ▼4.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall correctly, leaving 53 files (0.13MB) in the plugin directory
    • (new file) admin/class-crowdhandler-admin.php
    • (new file) admin/css/crowdhandler-admin.css
    • (new file) README.txt
    • (new file) composer.json
    • (new file) consts.php
    • (new file) crowdhandler.php
    • (new file) composer.lock
    • (new file) LICENSE.txt
    • (new file) admin/js/crowdhandler-admin.js
    • (new file) admin/index.php
    • ...
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require(../../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/crowdhandler-virtual-waiting-room/vendor/crowdhandler/sdk/examples/slim-framework-psr/web/index.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'CrowdHandler\\Client' not found in wp-content/plugins/crowdhandler-virtual-waiting-room/vendor/crowdhandler/sdk/src/PublicClient.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CrowdHandler\\Client' not found in wp-content/plugins/crowdhandler-virtual-waiting-room/vendor/crowdhandler/sdk/src/PrivateClient.php:5
    • > PHP Warning
      require_once(../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/crowdhandler-virtual-waiting-room/vendor/crowdhandler/sdk/examples/flat-php/advanced.php on line 8
    • > PHP Fatal error
      require_once(): Failed opening required '../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/crowdhandler-virtual-waiting-room/vendor/crowdhandler/sdk/examples/flat-php/basic.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required '../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/crowdhandler-virtual-waiting-room/vendor/crowdhandler/sdk/examples/flat-php/advanced.php on line 8
    • > PHP Warning
      require_once(../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/crowdhandler-virtual-waiting-room/vendor/crowdhandler/sdk/examples/flat-php/basic.php on line 3
    • > PHP Fatal error
      require(): Failed opening required '../../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/crowdhandler-virtual-waiting-room/vendor/crowdhandler/sdk/examples/slim-framework-psr/web/index.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: waiting room, ecommerce, crowdhandler, queue management, traffic management

crowdhandler-virtual-waiting-room/crowdhandler.php 85% from 13 tests

The principal PHP file in "CrowdHandler virtual waiting room" v. 1.1.12 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("crowdhandler-virtual-waiting-room.php" instead of "crowdhandler.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
There were no executable files found in this plugin1,876 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP343849571,639
JSON400136
Markdown162090
CSS1148
JavaScript12273

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods117
▷ Static methods2017.09%
▷ Public methods10186.32%
▷ Protected methods00.00%
▷ Private methods1613.68%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants13
▷ Global constants646.15%
▷ Class constants753.85%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected