83% video-conference

Code Review | Video conference

WordPress plugin Video conference scored83%from 54 tests.

About plugin

  • Plugin page: video-conference
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Sep 6, 2022
  • Latest release: Jul 29, 2023
  • Number of updates: 10
  • Update frequency: every 32.6 days
  • Top authors: helmimubarak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,323 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.78ms] Passed 4 tests

Server-side resources used by Video conference
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.04 ▼2.77
Dashboard /wp-admin3.38 ▲0.0750.30 ▼0.83
Posts /wp-admin/edit.php3.49 ▲0.1348.40 ▼5.43
Add New Post /wp-admin/post-new.php6.04 ▲0.1597.05 ▼6.07
Media Library /wp-admin/upload.php3.30 ▲0.0737.68 ▲2.46
Add New MeetingID /wp-admin/post-new.php?post_type=vicon3.3342.44
All Meetings /wp-admin/edit.php?post_type=vicon3.3434.88

Server storage [IO: ▲30.19MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • Filesystem usage must be lower than 25MB (currently using 30.19MB)
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Video conference
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.39 ▼0.978.04 ▲6.5538.78 ▼4.05
Dashboard /wp-admin2,223 ▲465.63 ▼0.0493.07 ▲0.8643.23 ▲4.13
Posts /wp-admin/edit.php2,131 ▲281.97 ▼0.0139.07 ▼1.3534.59 ▼4.24
Add New Post /wp-admin/post-new.php1,553 ▲1823.00 ▲4.67636.38 ▼44.7156.59 ▼10.21
Media Library /wp-admin/upload.php1,434 ▲314.16 ▼0.0496.20 ▼16.0544.12 ▼5.55
Add New MeetingID /wp-admin/post-new.php?post_type=vicon1,4782.5652.3564.28
All Meetings /wp-admin/edit.php?post_type=vicon1,0951.9933.7432.48

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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)
Even though everything seems fine, this is not an exhaustive test

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
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/video-conference/public/partials/video-conference-public-display.php:76
    • > PHP Notice
      Trying to get property 'post_name' of non-object in wp-content/plugins/video-conference/public/partials/video-conference-public-display.php on line 16
    • > PHP Notice
      Trying to get property 'post_name' of non-object in wp-content/plugins/video-conference/public/partials/video-conference-public-display.php on line 66
    • > PHP Notice
      Trying to get property 'post_status' of non-object in wp-content/plugins/video-conference/public/partials/video-conference-public-display.php on line 46
    • > PHP Warning
      Use of undefined constant VICON_URL - assumed 'VICON_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/video-conference/public/partials/video-conference-public-display.php on line 54
    • > PHP Warning
      Use of undefined constant VICON_URL - assumed 'VICON_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/video-conference/public/partials/video-conference-public-display.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/video-conference/public/partials/single-vicon.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === video-conference === )
The official readme.txt is a good inspiration

video-conference/video-conference.php Passed 13 tests

Analyzing the main PHP file in "Video conference" version 1.0.2
49 characters long description:
Plugin video conference free on jitsi meet brand.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin371 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13126125338
SVG11026
JavaScript35157
CSS1040

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.24
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 29.13MB with 19.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png4,991.63KB1,759.12KB▼ 64.76%
assets/screenshot-3.png337.38KB83.31KB▼ 75.31%
assets/icon-256x156.png31.49KB7.20KB▼ 77.14%
assets/screenshot-10.png1,856.53KB649.10KB▼ 65.04%
assets/banner-1544x500.png644.71KB294.35KB▼ 54.34%