10% media-library-downloader

Code Review | Media Library Downloader

WordPress plugin Media Library Downloader scored10%from 54 tests.

About plugin

  • Plugin page: media-library-dow...
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0 or higher-6.2.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2021
  • Latest release: May 19, 2023
  • Number of updates: 28
  • Update frequency: every 21.2 days
  • Top authors: devloper00 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,118 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/media-library-downloader/media-library-downloader.php+79
    Undefined index: link

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.64ms] Passed 4 tests

Server-side resources used by Media Library Downloader
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.68 ▼3.07
Dashboard /wp-admin3.34 ▲0.0446.36 ▼0.65
Posts /wp-admin/edit.php3.39 ▲0.0343.78 ▼4.86
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.69 ▼9.98
Media Library /wp-admin/upload.php3.26 ▲0.0336.37 ▲2.16

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Media Library Downloader
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.43 ▲0.121.60 ▼0.1538.49 ▼1.72
Dashboard /wp-admin2,211 ▲225.81 ▲0.85101.02 ▼14.1039.83 ▼2.76
Posts /wp-admin/edit.php2,094 ▲52.01 ▼0.0334.09 ▼5.8433.46 ▼1.38
Add New Post /wp-admin/post-new.php1,519 ▼1917.54 ▼5.58675.08 ▲25.2572.43 ▲12.97
Media Library /wp-admin/upload.php1,396 ▲54.25 ▲0.0299.72 ▼3.7045.14 ▲1.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-library-downloader/includes/class-main.php:9

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Requires at least: Invalid plugin version format
  • Screenshots: A description for screenshot #1 is required in media-library-downloader/assets to your readme.txt
The official readme.txt is a good inspiration

media-library-downloader/media-library-downloader.php 92% from 13 tests

This is the main PHP file of "Media Library Downloader" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "5.0 or higher")

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
Everything looks great! No dangerous files found in this plugin217 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21660127
JavaScript1131390

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.33
Average class complexity11.50
▷ Minimum class complexity8.00
▷ Maximum class complexity15.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin