84% video-embed-privacy

Code Review | Embed videos and respect privacy

WordPress plugin Embed videos and respect privacy scored84%from 54 tests.

About plugin

  • Plugin page: video-embed-privacy
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.4
  • WordPress version: 6.3.1
  • First release: Apr 26, 2016
  • Latest release: Mar 22, 2018
  • Number of updates: 9
  • Update frequency: every 77.2 days
  • Top authors: michael.zangl (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /11,486 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.00MB] [CPU: ▼6.61ms] Passed 4 tests

Server-side resources used by Embed videos and respect privacy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0048.22 ▼3.73
Dashboard /wp-admin3.31 ▲0.0049.95 ▲1.08
Posts /wp-admin/edit.php3.36 ▲0.0049.90 ▼2.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.75 ▼19.36
Media Library /wp-admin/upload.php3.23 ▲0.0038.62 ▼0.51

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Embed videos and respect privacy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.19 ▼0.181.59 ▼0.6940.26 ▼15.95
Dashboard /wp-admin2,198 ▲185.63 ▲0.0290.33 ▼8.9840.89 ▼3.49
Posts /wp-admin/edit.php2,103 ▲32.03 ▼0.1338.44 ▼0.4838.23 ▲0.83
Add New Post /wp-admin/post-new.php1,527 ▼123.01 ▼0.10638.97 ▼12.8763.16 ▲5.18
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.06107.54 ▲8.0942.79 ▲0.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% 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 50% 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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/video-embed-privacy/video-embed-privacy.php
    • > /wp-content/plugins/video-embed-privacy/preview/preview.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: youtube, germany, deutschland

video-embed-privacy/video-embed-privacy.php 92% from 13 tests

This is the main PHP file of "Embed videos and respect privacy" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

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 detected87 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2172540
CSS13037
JavaScript11010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin