78% livewebinar

Code Review | LiveWebinar

WordPress plugin LiveWebinar scored78%from 54 tests.

About plugin

  • Plugin page: livewebinar
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.4-6.3.2
  • WordPress version: 6.3.1
  • First release: Aug 8, 2022
  • Latest release: Nov 2, 2023
  • Number of updates: 18
  • Update frequency: every 25.3 days
  • Top authors: livewebinar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /721 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.56MB] [CPU: ▲1,229.09ms] 50% from 4 tests

This is a short check of server-side resources used by LiveWebinar
The following require your attention
  • CPU: You should keep total CPU usage under 500.00ms (currently 2,781.92ms on /wp-admin/post-new.php?post_type=livewebinar-post)
  • Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 1,229.09ms on /wp-admin/post-new.php?post_type=livewebinar-post)
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.581,305.66 ▲1,264.74
Dashboard /wp-admin3.88 ▲0.531,585.52 ▲1,519.40
Posts /wp-admin/edit.php3.91 ▲0.551,256.56 ▲1,203.41
Add New Post /wp-admin/post-new.php6.57 ▲0.671,310.95 ▲1,201.61
Media Library /wp-admin/upload.php3.80 ▲0.571,281.94 ▲1,246.60
All events /wp-admin/edit.php?post_type=livewebinar-post3.851,527.93
Settings /wp-admin/edit.php?post_type=livewebinar-post&page=livewebinar-settings3.831,251.50
Add new /wp-admin/post-new.php?post_type=livewebinar-post6.602,781.92

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

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

Browser metrics Passed 4 tests

Checking browser requirements for LiveWebinar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,963 ▲21714.11 ▼0.245.92 ▲4.0450.10 ▲6.83
Dashboard /wp-admin2,254 ▲735.20 ▼0.5295.07 ▼3.5971.88 ▲32.37
Posts /wp-admin/edit.php2,169 ▲662.40 ▲0.4135.46 ▼3.6433.29 ▼2.74
Add New Post /wp-admin/post-new.php1,712 ▲18620.86 ▼2.06616.70 ▼14.6939.49 ▼10.18
Media Library /wp-admin/upload.php1,534 ▲1344.98 ▲0.80114.91 ▲15.9082.90 ▲35.89
All events /wp-admin/edit.php?post_type=livewebinar-post1,2489.83202.1324.63
Settings /wp-admin/edit.php?post_type=livewebinar-post&page=livewebinar-settings1,0422.4829.8428.11
Add new /wp-admin/post-new.php?post_type=livewebinar-post9,37926.75850.6764.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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 fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/livewebinar/includes/views/blocks/embed-room.php
    • > /wp-content/plugins/livewebinar/includes/views/blocks/image.php
    • > /wp-content/plugins/livewebinar/includes/views/blocks/room-info.php
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/livewebinar/vendor/select2/select2/docs/plugins/problems/problems.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/livewebinar/vendor/select2/select2/docs/plugins/simplesearch/simplesearch.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/livewebinar/vendor/select2/select2/docs/plugins/anchors/anchors.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/livewebinar/vendor/select2/select2/docs/plugins/error/error.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Grav\\Common\\Theme' not found in wp-content/plugins/livewebinar/vendor/select2/select2/docs/themes/learn2/learn2.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/livewebinar/includes/views/settings.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Grav\\Console\\ConsoleCommand' not found in wp-content/plugins/livewebinar/vendor/select2/select2/docs/plugins/error/cli/LogCommand.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/livewebinar/vendor/select2/select2/docs/plugins/breadcrumbs/breadcrumbs.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/livewebinar/vendor/select2/select2/docs/plugins/highlight/highlight.php:8

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 Passed 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
6 plugin tags: webinar, livewebinar, video conference, live webinar, online meetings...

livewebinar/livewebinar.php Passed 13 tests

"LiveWebinar" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
Webinar Software. Best Platform for Webinars - LiveWebinar.com

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin90,940 lines of code in 656 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24112,1516,57945,774
CSS9310,20565526,538
Sass1361,0455724,868
Markdown671,66904,618
PHP376698413,817
SVG5012,718
YAML34616937
Twig24560557
HTML8786482
JSON900331
PO File1139150298
Bourne Shell1002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity19.04
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods149
▷ Static methods3322.15%
▷ Public methods13389.26%
▷ Protected methods74.70%
▷ Private methods96.04%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants31
▷ Global constants825.81%
▷ Class constants2374.19%
▷ Public constants23100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
80 PNG files occupy 1.51MB with 0.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/select2/select2/docs/pages/images/flags/ga.png4.65KB2.40KB▼ 48.44%
vendor/select2/select2/docs/pages/images/flags/md.png4.01KB2.53KB▼ 36.95%
vendor/select2/select2/docs/pages/images/flags/az.png5.32KB2.66KB▼ 50.00%
vendor/select2/select2/docs/pages/images/flags/al.png2.56KB1.39KB▼ 45.71%
vendor/select2/select2/docs/pages/images/flags/wi.png8.34KB3.82KB▼ 54.19%