84% muv-youtube-datenschutz

Code Review | muv - YouTube - Datenschutz

WordPress plugin muv - YouTube - Datenschutz scored 84% from 54 tests.

About plugin

  • Plugin page: muv-youtube-daten...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2.4
  • WordPress version: 6.3.1
  • First release: Dec 19, 2017
  • Latest release: Nov 11, 2019
  • Number of updates: 14
  • Update frequency: every 49.8 days
  • Top authors: meinsundvogel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 899 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.08ms] Passed 4 tests

A check of server-side resources used by muv - YouTube - Datenschutz
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0448.17 ▲0.52
Dashboard /wp-admin3.33 ▲0.0253.47 ▲0.88
Posts /wp-admin/edit.php3.38 ▲0.0255.64 ▲0.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.52 ▼10.11
Media Library /wp-admin/upload.php3.25 ▲0.0242.56 ▲4.95

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: 1 new table, 6 new options
New tables
wp_muv_sh_intversion
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for muv - YouTube - Datenschutz
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲8313.52 ▼0.138.39 ▲6.5144.56 ▲3.23
Dashboard /wp-admin2,209 ▲35.85 ▲1.02102.87 ▼6.9041.58 ▼0.97
Posts /wp-admin/edit.php2,089 ▲12.05 ▲0.0140.14 ▼0.8436.73 ▲0.34
Add New Post /wp-admin/post-new.php1,513 ▼3123.68 ▲5.66649.88 ▲54.9561.17 ▲8.87
Media Library /wp-admin/upload.php1,391 ▲34.19 ▲0.0496.79 ▼7.5943.08 ▼0.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/muv-youtube-datenschutz/includes/muv/YouTubeDatenschutz/Divi/Image.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/muv-youtube-datenschutz/includes/muv/YouTubeDatenschutz/Divi/Image.php:14

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 96% from 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
6 plugin tags: datenschutz, video, einbinden, sicherheit, datenschutz konform...

muv-youtube-datenschutz/muv-youtube-datenschutz.php 92% from 13 tests

The main PHP script in "muv - YouTube - Datenschutz" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 187 characters long)

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 detected904 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP12165484779
Sass312098
JavaScript131717
Markdown1608
CSS2022

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity5.91
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods27
▷ Static methods1970.37%
▷ Public methods2074.07%
▷ Protected methods13.70%
▷ Private methods622.22%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/play.png0.48KB0.20KB▼ 57.67%
assets/img/close.png0.28KB0.20KB▼ 31.27%