94% videoencrypt-watermark

Code Review | Videoencrypt Watermark

WordPress plugin Videoencrypt Watermark scored 94% from 54 tests.

About plugin

  • Plugin page: videoencrypt-wate...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.3.2
  • WordPress version: 5.8.1
  • First release: Feb 29, 2020
  • Latest release: Feb 29, 2020
  • Number of updates: 2
  • Update frequency: every 8.0 days
  • Top authors: VibeThemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 571 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.26MB] [CPU: ▼142.55ms] Passed 4 tests

An overview of server-side resources used by Videoencrypt Watermark
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.10 ▲0.2636.07 ▲4.30
Dashboard /wp-admin3.33 ▲0.2749.81 ▲8.23
Posts /wp-admin/edit.php3.44 ▲0.3346.36 ▼6.63
Add New Post /wp-admin/post-new.php5.68 ▲0.2492.55 ▼567.41
Media Library /wp-admin/upload.php3.27 ▲0.2730.53 ▼0.46
WaterMark Videos /wp-admin/upload.php?page=videoencrypt-watermark3.2425.18

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Videoencrypt Watermark
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,766 ▲17018.60 ▲2.927.91 ▼2.4248.07 ▲0.72
Dashboard /wp-admin3,059 ▲1257.26 ▲1.25167.20 ▲10.10114.01 ▼6.93
Posts /wp-admin/edit.php2,854 ▲1154.29 ▲1.6193.09 ▲11.0384.14 ▼2.52
Add New Post /wp-admin/post-new.php1,908 ▲40815.85 ▼2.72358.55 ▼16.84124.34 ▲19.90
Media Library /wp-admin/upload.php1,779 ▼285.42 ▲0.39140.90 ▼10.73118.79 ▲2.33
WaterMark Videos /wp-admin/upload.php?page=videoencrypt-watermark1,5514.1179.9492.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/upload.php?page=videoencrypt-watermark
    • > Notice in wp-content/plugins/videoencrypt-watermark/includes/class.settings.php+404
    Undefined variable: api_key
    • > GET request to /wp-admin/upload.php?page=videoencrypt-watermark
    • > Notice in wp-content/plugins/videoencrypt-watermark/includes/class.settings.php+655
    Undefined index: std
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/upload.php?page=videoencrypt-watermark
    • > Notice in wp-content/plugins/videoencrypt-watermark/includes/class.settings.php+708
    Undefined variable: url

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: video, watermark, watermarking video, video watermark

videoencrypt-watermark/videoencrypt-watermark.php Passed 13 tests

The entry point to "Videoencrypt Watermark" version 1.0 is a PHP file that has certain tags in its header comment area
39 characters long description:
Watermark your videos the WordPress Way

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
Good job! No executable or dangerous file extensions detected2,089 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP8349981,520
JavaScript28140417
SVG20086
CSS18066
HTML1010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity42.40
▷ Minimum class complexity2.00
▷ Maximum class complexity141.00
Average method complexity5.22
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods49
▷ Static methods510.20%
▷ Public methods4489.80%
▷ Protected methods00.00%
▷ Private methods510.20%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin