84% mdc-youtube-downloader

Code Review | MDC YouTube Downloader

WordPress plugin MDC YouTube Downloader scored84%from 54 tests.

About plugin

  • Plugin page: mdc-youtube-downl...
  • Plugin version: 3.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Jul 12, 2014
  • Latest release: Jan 23, 2016
  • Number of updates: 48
  • Update frequency: every 11.7 days
  • Top authors: mukto90 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

20+ active /10,697 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
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.48ms] Passed 4 tests

Analyzing server-side resources used by MDC YouTube Downloader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.92 ▼1.20
Dashboard /wp-admin3.39 ▲0.0944.87 ▼7.03
Posts /wp-admin/edit.php3.51 ▲0.1543.30 ▼2.92
Add New Post /wp-admin/post-new.php5.99 ▲0.1181.33 ▼10.77
Media Library /wp-admin/upload.php3.32 ▲0.0937.38 ▲2.01

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

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

Browser metrics Passed 4 tests

MDC YouTube Downloader: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10513.57 ▼0.752.06 ▲0.2938.22 ▼6.25
Dashboard /wp-admin2,227 ▲424.90 ▼0.91103.06 ▼19.0079.89 ▲38.51
Posts /wp-admin/edit.php2,110 ▲212.04 ▲0.0233.69 ▼5.1433.22 ▲0.75
Add New Post /wp-admin/post-new.php1,685 ▲16622.81 ▼0.68739.77 ▲61.7759.12 ▲11.04
Media Library /wp-admin/upload.php1,403 ▲154.22 ▲0.02101.35 ▲8.3445.85 ▲4.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mdc-youtube-downloader/includes/mdc-option-page.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mdc-youtube-downloader/includes/tinymce-mdc-youtube-downloader.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/mdc-youtube-downloader/uninstall.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mdc-youtube-downloader/includes/mdc-option-page.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: youtube, video downloader, downloader, download youtube video, video download...

mdc-youtube-downloader/mdc-youtube-downloader.php 92% from 13 tests

The main file in "MDC YouTube Downloader" v. 3.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin669 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP46723386
JavaScript31018146
CSS201137

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity12.33
▷ Minimum class complexity4.00
▷ Maximum class complexity20.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
13 PNG files occupy 0.30MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screenshot-2.png14.17KB7.03KB▼ 50.36%
images/pro-logo.png34.57KB10.01KB▼ 71.04%
images/screenshot-8.png21.29KB6.93KB▼ 67.43%
images/screenshot-9.png21.60KB6.98KB▼ 67.69%
images/screenshot-6.png7.85KB3.62KB▼ 53.89%