78% simple-private-video

Code Review | Simple Private Video

WordPress plugin Simple Private Video scored 78% from 54 tests.

About plugin

  • Plugin page: simple-private-video
  • Plugin version: 0.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Oct 31, 2019
  • Latest release: May 21, 2020
  • Number of updates: 5
  • Update frequency: every 40.6 days
  • Top authors: sumapress (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 2,622 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.24MB] [CPU: ▼12.57ms] Passed 4 tests

This is a short check of server-side resources used by Simple Private Video
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.33 ▲2.04
Dashboard /wp-admin3.33 ▲0.0342.79 ▼1.95
Posts /wp-admin/edit.php3.39 ▲0.0346.82 ▼1.58
Add New Post /wp-admin/post-new.php4.85 ▼1.0453.75 ▼48.35
Media Library /wp-admin/upload.php3.26 ▲0.0337.31 ▲1.61

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Simple Private Video
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.22 ▼1.131.84 ▲0.1938.42 ▼9.48
Dashboard /wp-admin2,203 ▲156.01 ▲1.0095.35 ▼5.4039.64 ▼3.16
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0339.35 ▼3.2836.02 ▲1.73
Add New Post /wp-admin/post-new.php6,597 ▲5,06324.27 ▲1.20852.54 ▲248.2063.67 ▲14.16
Media Library /wp-admin/upload.php1,391 ▲64.17 ▼0.0296.32 ▼3.3242.84 ▲1.20

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/simple-private-video/simple-private-video.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/simple-private-video/core/index.php on line 2
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/simple-private-video/setup/index.php on line 2
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/simple-private-video/includes/index.php on line 2
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/simple-private-video/gutenberg/index.php on line 2
    • > PHP Warning
      Unterminated comment starting line 2 in wp-content/plugins/simple-private-video/index.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-private-video/gutenberg/views/video_self_hosting.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt might help

simple-private-video/simple-private-video.php Passed 13 tests

This is the main PHP file of "Simple Private Video" version 0.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
132 characters long description:
A video block and a simple and lean way to host your own videos and show them in private mode without external services dependencies

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
There were no executable files found in this plugin976 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP13212347557
JavaScript133726362
Sass311054
CSS3003

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.26
Average class complexity7.88
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods47
▷ Static methods714.89%
▷ Public methods3063.83%
▷ Protected methods12.13%
▷ Private methods1634.04%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin