78% digital-samba-embedded-video-conferencing

Code Review | Digital Samba Embedded Video Conferencing

WordPress plugin Digital Samba Embedded Video Conferencing scored78%from 54 tests.

About plugin

  • Plugin page: digital-samba-emb...
  • Plugin version: 5.5.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2023
  • Latest release: Nov 16, 2023
  • Number of updates: 36
  • Update frequency: every 6.7 days
  • Top authors: ConalMullan (88.89%)digitalsamba (13.89%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /226 total downloads

Benchmarks

Plugin footprint 82% 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.66MB] [CPU: ▲208.95ms] 75% from 4 tests

An overview of server-side resources used by Digital Samba Embedded Video Conferencing
Please take the time to fix the following items
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 208.95ms on /wp-admin/edit.php?post_type=digitalsamba_room&page=digitalsamba_settings)
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.63235.51 ▲194.74
Dashboard /wp-admin4.03 ▲0.69307.59 ▲251.04
Posts /wp-admin/edit.php4.07 ▲0.71274.80 ▲227.28
Add New Post /wp-admin/post-new.php6.55 ▲0.67312.65 ▲207.18
Media Library /wp-admin/upload.php3.89 ▲0.66239.53 ▲206.59
Dashboard /wp-admin/plugins.php?page=meta-box3.99268.03
Rooms /wp-admin/edit.php?post_type=digitalsamba_room3.92242.26
Add New Room /wp-admin/post-new.php?post_type=digitalsamba_room3.94265.07
Settings /wp-admin/edit.php?post_type=digitalsamba_room&page=digitalsamba_settings3.86234.59

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Digital Samba Embedded Video Conferencing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7014.07 ▼0.311.73 ▲0.1143.54 ▲3.15
Dashboard /wp-admin2,214 ▲335.59 ▼0.1193.48 ▼6.0787.13 ▲46.78
Posts /wp-admin/edit.php2,137 ▲371.94 ▼0.0739.52 ▲3.7637.03 ▲4.52
Add New Post /wp-admin/post-new.php1,571 ▲4521.70 ▼1.75650.01 ▼41.68102.86 ▲50.83
Media Library /wp-admin/upload.php1,436 ▲364.21 ▲0.02106.86 ▲0.9980.84 ▲36.52
Dashboard /wp-admin/plugins.php?page=meta-box1,7788.73265.2869.21
Rooms /wp-admin/edit.php?post_type=digitalsamba_room1,1071.9034.1531.13
Add New Room /wp-admin/post-new.php?post_type=digitalsamba_room1,4412.6449.7073.25
Settings /wp-admin/edit.php?post_type=digitalsamba_room&page=digitalsamba_settings8662.0022.7727.45

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/templates/image-advanced.php
    • > /wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/templates/media.php
    • > /wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/templates/audio.php
    • > /wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/templates/video.php
    • > /wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/templates/upload.php
  • 67× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Walker_Base' not found in wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/walkers/input-list.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/fields/button.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/fields/heading.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/fields/datetime.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/fields/wysiwyg.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/fields/number.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Choice_Field' not found in wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/fields/select.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/fields/key-value.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/fields/choice.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Image_Advanced_Field' not found in wp-content/plugins/digital-samba-embedded-video-conferencing/vendor/wpmetabox/meta-box/inc/fields/image-upload.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: webinar, video conference, integration, gdpr complaint

digital-samba-embedded-video-conferencing/digital-samba-embedded-video-conferencing.php Passed 13 tests

"Digital Samba Embedded Video Conferencing" version 5.5.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
Add video conferencing to your site quickly and easily with Digital Samba Embedded

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
Success! There were no dangerous files found in this plugin12,615 lines of code in 266 files:
LanguageFilesBlank linesComment linesLines of code
PHP1241,4303,4277,567
CSS411651172,451
JavaScript975464942,320
PO File196107223
JSON20049
SVG1005

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.19
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces1
Traits0
Classes96
▷ Abstract classes66.25%
▷ Concrete classes9093.75%
▷ Final classes00.00%
Methods542
▷ Static methods31658.30%
▷ Public methods47086.72%
▷ Protected methods366.64%
▷ Private methods366.64%
Functions23
▷ Named functions1356.52%
▷ Anonymous functions1043.48%
Constants10
▷ Global constants880.00%
▷ Class constants220.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
vendor/wpmetabox/meta-box/img/jqueryui/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%