77% video-posts-webcam-recorder

Code Review | Webcam Microphone Screen Recorder HTML5

WordPress plugin Webcam Microphone Screen Recorder HTML5 scored77%from 54 tests.

About plugin

  • Plugin page: video-posts-webca...
  • Plugin version: 3.3.10
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.1
  • WordPress version: 6.3.1
  • First release: Jul 27, 2012
  • Latest release: Jun 23, 2023
  • Number of updates: 93
  • Update frequency: every 42.9 days
  • Top authors: videowhisper (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /17,921 total downloads

Benchmarks

Plugin footprint 83% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.21MB] [CPU: ▼2.20ms] Passed 4 tests

Server-side resources used by Webcam Microphone Screen Recorder HTML5
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2149.94 ▲3.23
Dashboard /wp-admin3.52 ▲0.2246.01 ▲3.53
Posts /wp-admin/edit.php3.63 ▲0.2848.15 ▲2.68
Add New Post /wp-admin/post-new.php6.10 ▲0.2184.55 ▼8.44
Media Library /wp-admin/upload.php3.44 ▲0.2135.53 ▼6.28
Settings /wp-admin/admin.php?page=recorder-settings3.4237.97
HTML5 Recorder /wp-admin/admin.php?page=recorder3.4232.34
New Recording /wp-admin/admin.php?page=recorder-new3.4133.16

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
VWvideoRecorderOptions
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Webcam Microphone Screen Recorder HTML5
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲17613.19 ▼1.132.20 ▲0.2244.73 ▲5.37
Dashboard /wp-admin2,268 ▲834.88 ▼0.95110.42 ▲5.4043.22 ▲1.84
Posts /wp-admin/edit.php2,151 ▲592.03 ▼0.0241.01 ▲4.2139.88 ▲4.20
Add New Post /wp-admin/post-new.php1,589 ▲5523.20 ▲0.22680.37 ▲89.3859.05 ▲9.29
Media Library /wp-admin/upload.php1,450 ▲624.19 ▲0.0299.59 ▼16.0544.88 ▲3.08
Settings /wp-admin/admin.php?page=recorder-settings1,0272.1522.7632.45
HTML5 Recorder /wp-admin/admin.php?page=recorder1,0102.1923.8633.43
New Recording /wp-admin/admin.php?page=recorder-new1,9159.76149.08127.38

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • VWvideoRecorderOptions
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/video-posts-webcam-recorder/videoposts.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=recorder-new
    • > Console-api (severe) in unknown
    /wp-content/plugins/video-posts-webcam-recorder/static/js/2.e4e0cf2f.chunk.js?ver=6.3.1 0:1103068 TypeError: Cannot read properties of undefined (reading 'getUserMedia')at a.value (/wp-content/plugins/video-posts-webcam-recorder/static/js/main.925ead6d.chunk.js?ver=6.3.1:1:58208)at a.value (/wp-content/plugins/video-posts-webcam-recorder/static/js/main.925ead6d.chunk.js?ver=6.3.1:1:55522)at a.value (/wp-content/plugins/video-posts-webcam-recorder/static/js/main.925ead6d.chunk.js?ver=6.3.1:1:54837)at gu (/wp-content/plugins/video-posts-webcam-recorder/static/js/2.e4e0cf2f.chunk.js?ver=6.3.1:1:1104049)at Ss (/wp-content/plugins/video-posts-webcam-recorder/static/js/2.e4e0cf2f.chunk.js?ver=6.3.1:1:1121837)at t.unstable_runWithPriority (/wp-content/plugins/video-posts-webcam-recorder/static/js/2.e4e0cf2f.chunk.js?ver=6.3.1:1:1141154)at $a (/wp-content/plugins/video-posts-webcam-recorder/static/js/2.e4e0cf2f.chunk.js?ver=6.3.1:1:1065506)at xs (/wp-content/plugins/video-posts-webcam-recorder/static/js/2.e4e0cf2f.chunk.js?ver=6.3.1:1:1118494)at ms (/wp-content/plugins/video-posts-webcam-recorder/static/js/2.e4e0cf2f.chunk.js?ver=6.3.1:1:1114618)at /wp-content/plugins/video-posts-webcam-recorder/static/js/2.e4e0cf2f.chunk.js?ver=6.3.1:1:1065797

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (24 tag instead of maximum 10)
  • Screenshots: These screenshots require images: #1 (HTML5 recorder : video recording), #2 (HTML5 recorder : audio recording), #3 (Legacy Record Button (when writing a post)), #4 (Legacy Recorder Application)
The official readme.txt might help

video-posts-webcam-recorder/videoposts.php 85% from 13 tests

This is the main PHP file of "Webcam Microphone Screen Recorder HTML5" version 3.3.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("video-posts-webcam-recorder.php" instead of "videoposts.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 299 characters long)

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
Everything looks great! No dangerous files found in this plugin19,205 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
SVG602418,181
PHP331590964
CSS3139552
JavaScript40104
Markdown1304

PHP code Passed 2 tests

A short 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.47
Average class complexity50.33
▷ Minimum class complexity9.00
▷ Maximum class complexity102.00
Average method complexity5.35
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces1
Interfaces0
Traits2
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods34
▷ Static methods2985.29%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
static/media/flags.99f63ae7.png27.46KB29.21KB0.00%
scripts/semantic/themes/default/assets/images/flags.png27.46KB29.21KB0.00%
screenshot-2.png15.42KB4.66KB▼ 69.81%