88% web-video-recorder

Code Review | Web Video Recorder

WordPress plugin Web Video Recorder scored 88% from 54 tests.

About plugin

  • Plugin page: web-video-recorder
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 5.8.1
  • First release: Mar 14, 2018
  • Latest release: Mar 16, 2018
  • Number of updates: 16
  • Update frequency: every 0.1 days
  • Top authors: rfsoftlab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 783 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼169.47ms] Passed 4 tests

Server-side resources used by Web Video Recorder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0141.26 ▲7.50
Dashboard /wp-admin3.06 ▲0.0143.35 ▲0.68
Posts /wp-admin/edit.php3.11 ▲0.0140.38 ▼4.79
Add New Post /wp-admin/post-new.php5.43 ▼0.0195.49 ▼671.60
Media Library /wp-admin/upload.php3.00 ▲0.0031.62 ▼2.17

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Web Video Recorder: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,709 ▲11315.84 ▲0.129.28 ▼1.3284.24 ▲29.43
Dashboard /wp-admin2,973 ▲365.86 ▼0.13130.99 ▼14.88119.63 ▲17.80
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0161.52 ▼3.5994.88 ▲3.75
Add New Post /wp-admin/post-new.php1,672 ▲5718.80 ▼3.12364.64 ▲60.39107.30 ▲2.39
Media Library /wp-admin/upload.php1,807 ▲565.04 ▲0.04141.16 ▼2.33116.90 ▼2.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/web-video-recorder/wp-web-video-record.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/web-video-recorder/webViedoShortCode.php:24

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 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Screenshot #8 (screenshot-7.png) image missing
Please take inspiration from this readme.txt

web-video-recorder/wp-web-video-record.php 92% from 13 tests

Analyzing the main PHP file in "Web Video Recorder" version 1.0.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("web-video-recorder.php" instead of "wp-web-video-record.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected4,511 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34034673,911
CSS32211302
XML300190
PHP21830108

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin