78% video-conferencing-daily-co

Code Review | Video Conferencing Daily.co

WordPress plugin Video Conferencing Daily.co scored78%from 54 tests.

About plugin

  • Plugin page: video-conferencin...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Aug 25, 2020
  • Latest release: Aug 25, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: qfnetwork (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /621 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.80MB] [CPU: ▼0.79ms] Passed 4 tests

An overview of server-side resources used by Video Conferencing Daily.co
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.23 ▲0.7744.49 ▲4.62
Dashboard /wp-admin4.15 ▲0.8550.10 ▲0.37
Posts /wp-admin/edit.php4.20 ▲0.8451.75 ▲3.62
Add New Post /wp-admin/post-new.php6.68 ▲0.7989.24 ▼11.76
Media Library /wp-admin/upload.php4.01 ▲0.7843.32 ▲12.76
Add New Room /wp-admin/post-new.php?post_type=dailyco_room4.1350.96
Dashboard /wp-admin/plugins.php?page=meta-box4.1037.91
Settings /wp-admin/edit.php?post_type=dailyco_room&page=dailyco_settings3.9836.02
Rooms /wp-admin/edit.php?post_type=dailyco_room4.0542.79

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Video Conferencing Daily.co
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.68 ▼0.811.81 ▲0.2245.59 ▲4.98
Dashboard /wp-admin2,236 ▲484.94 ▼0.94100.05 ▲0.8377.15 ▲33.85
Posts /wp-admin/edit.php2,116 ▲271.98 ▼0.0334.13 ▼6.1634.63 ▲0.41
Add New Post /wp-admin/post-new.php1,545 ▲3122.81 ▲5.09720.57 ▲58.0356.47 ▲3.92
Media Library /wp-admin/upload.php1,418 ▲304.12 ▼0.08108.66 ▲10.4945.21 ▲1.43
Add New Room /wp-admin/post-new.php?post_type=dailyco_room1,8483.4158.8068.28
Dashboard /wp-admin/plugins.php?page=meta-box1,3352.0724.4045.76
Settings /wp-admin/edit.php?post_type=dailyco_room&page=dailyco_settings8382.0330.2129.56
Rooms /wp-admin/edit.php?post_type=dailyco_room1,0891.9332.2430.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/templates/upload.php
    • > /wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/templates/image-advanced.php
    • > /wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/templates/video.php
    • > /wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/templates/audio.php
    • > /wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/templates/media.php
  • 65× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Number_Field' not found in wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/fields/range.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/fields/number.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Choice_Field' not found in wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/fields/object-choice.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Media_Field' not found in wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/fields/file-upload.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_File_Field' not found in wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/fields/media.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/functions.php:333
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/fields/custom-html.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/fields/map.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Choice_Field' not found in wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/fields/button-group.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/video-conferencing-daily-co/vendor/wpmetabox/meta-box/inc/about/sections/upgrade.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: course, audio, form, lms, dailyco...

video-conferencing-daily-co/video-conferencing-dailyco.php 85% from 13 tests

This is the main PHP file of "Video Conferencing Daily.co" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("video-conferencing-daily-co.php" instead of "video-conferencing-dailyco.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected10,888 lines of code in 246 files:
LanguageFilesBlank linesComment linesLines of code
PHP1091,2434,3916,434
JavaScript965284492,194
CSS381471211,988
PO File196107223
JSON10044
SVG1005

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.02
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes89
▷ Abstract classes66.74%
▷ Concrete classes8393.26%
▷ Final classes00.00%
Methods484
▷ Static methods29260.33%
▷ Public methods43189.05%
▷ Protected methods306.20%
▷ Private methods234.75%
Functions21
▷ Named functions1571.43%
▷ Anonymous functions628.57%
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.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
vendor/wpmetabox/meta-box/img/jqueryui/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%