84% mona-youtube-downloader

Code Review | Mona Youtube Downloader

WordPress plugin Mona Youtube Downloader scored84%from 54 tests.

About plugin

  • Plugin page: mona-youtube-down...
  • Plugin version: 1.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.0.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2017
  • Latest release: Jan 3, 2019
  • Number of updates: 26
  • Update frequency: every 24.2 days
  • Top authors: diancom1202 (57.69%)thietkewebsite (46.15%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /6,297 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.07MB] [CPU: ▼5.39ms] Passed 4 tests

An overview of server-side resources used by Mona Youtube Downloader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.63 ▼1.39
Dashboard /wp-admin3.37 ▲0.0746.37 ▼9.56
Posts /wp-admin/edit.php3.49 ▲0.1350.48 ▲0.31
Add New Post /wp-admin/post-new.php5.95 ▲0.0787.84 ▼10.93
Media Library /wp-admin/upload.php3.30 ▲0.0740.35 ▲1.66

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_mona_youtube_downloader_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Mona Youtube Downloader
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.26 ▼0.941.59 ▼0.4937.61 ▼9.98
Dashboard /wp-admin2,206 ▲185.90 ▼0.01109.95 ▼10.0342.66 ▼2.83
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0735.83 ▼1.9331.05 ▼2.62
Add New Post /wp-admin/post-new.php1,534 ▲1323.12 ▼0.06677.27 ▼12.7660.00 ▲2.09
Media Library /wp-admin/upload.php1,388 ▲64.19 ▼0.03112.25 ▲12.8047.12 ▲1.22

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mona-youtube-downloader/mona-youtube-downloader.php
    • > /wp-content/plugins/mona-youtube-downloader/mona-youtube-api.php
    • > /wp-content/plugins/mona-youtube-downloader/mona-youtube-downloader-widget.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
  • Screenshots: A description for screenshot #0 is required in mona-youtube-downloader/assets to your readme.txt
The official readme.txt is a good inspiration

mona-youtube-downloader/mona-youtube-downloader.php Passed 13 tests

The main file in "Mona Youtube Downloader" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
24 characters long description:
Mona Youtube Downloader.

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
Good job! No executable or dangerous file extensions detected707 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP36143353
CSS150194
JavaScript24329160

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.00
▷ Minimum class complexity2.00
▷ Maximum class complexity29.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.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
There are no PNG files in this plugin