10% vriks-video-embedding

Code Review | VRIKS Video Embedding

WordPress plugin VRIKS Video Embedding scored10%from 54 tests.

About plugin

  • Plugin page: vriks-video-embed...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 27, 2018
  • Latest release: Sep 27, 2018
  • Number of updates: 5
  • Update frequency: every 3.0 days
  • Top authors: martinvriks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,219 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/vriks-video-embedding/vriks-video-embedding.php+12
    include_once(wp-content/plugins/vriks-video-embedding/admin.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.97MB] [CPU: ▼61.75ms] Passed 4 tests

An overview of server-side resources used by VRIKS Video Embedding
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.02 ▼1.445.38 ▼37.86
Dashboard /wp-admin2.04 ▼1.305.54 ▼61.43
Posts /wp-admin/edit.php2.05 ▼1.315.80 ▼43.44
Add New Post /wp-admin/post-new.php2.05 ▼3.846.00 ▼104.28
Media Library /wp-admin/upload.php2.05 ▼1.185.39 ▼30.19

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

VRIKS Video Embedding: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.30 ▼0.002.08 ▲0.1443.61 ▼0.82
Dashboard /wp-admin2,195 ▲185.67 ▲0.0791.19 ▼1.6840.74 ▼0.99
Posts /wp-admin/edit.php2,103 ▲61.99 ▼0.0140.57 ▲3.8634.18 ▲2.19
Add New Post /wp-admin/post-new.php1,554 ▲818.17 ▼5.16659.38 ▲43.5649.46 ▼0.13
Media Library /wp-admin/upload.php1,400 ▲64.16 ▼0.0999.72 ▼4.9244.52 ▲0.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/vriks-video-embedding/vriks-video-embedding.php+12
    include_once(wp-content/plugins/vriks-video-embedding/admin.php): failed to open stream: No such file or directory
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/vriks-video-embedding/vriks-video-embedding.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: player, hls, familienvideo, vriks, video

vriks-video-embedding/vriks-video-embedding.php Passed 13 tests

The main PHP file in "VRIKS Video Embedding" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
109 characters long description:
A Plug-in to embed your Videos from https://vriks.de/ and https://familienvideo.de/ into your WordPress Site.

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
No dangerous file extensions were detected140 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP1142582
CSS211549
JavaScript40189

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
5 PNG files occupy 0.22MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/private.png68.56KB23.04KB▼ 66.40%
img/not-existing.png95.67KB35.23KB▼ 63.17%
img/vriks-logo-white.png15.00KB0.61KB▼ 95.94%
img/familienvideo-logo.png8.47KB3.92KB▼ 53.72%
img/vriks-logo-black.png33.34KB17.49KB▼ 47.54%