84% download-media-library

Code Review | Download Media Library

WordPress plugin Download Media Library scored 84% from 54 tests.

About plugin

  • Plugin page: download-media-li...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.6.1
  • WordPress version: 6.3.1
  • First release: Apr 8, 2015
  • Latest release: Nov 4, 2016
  • Number of updates: 14
  • Update frequency: every 41.2 days
  • Top authors: marcelotorres (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

2,000+ active / 60,995 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.08ms] Passed 4 tests

An overview of server-side resources used by Download Media Library
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.97 ▼6.54
Dashboard /wp-admin3.31 ▲0.0150.61 ▼1.31
Posts /wp-admin/edit.php3.36 ▲0.0146.47 ▼2.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.82 ▼13.22
Media Library /wp-admin/upload.php3.24 ▲0.0136.29 ▼2.07
Download Media Library /wp-admin/upload.php?page=mtdml3.2031.76

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Download Media Library
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4914.74 ▲0.451.82 ▼1.0644.23 ▼8.61
Dashboard /wp-admin2,212 ▲245.86 ▲0.78108.57 ▼4.9842.84 ▼5.41
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0534.38 ▼5.8731.64 ▼4.62
Add New Post /wp-admin/post-new.php1,533 ▲1323.41 ▲0.02627.77 ▼48.1254.97 ▲0.66
Media Library /wp-admin/upload.php1,394 ▲64.26 ▲0.0794.77 ▼4.4740.75 ▼3.66
Download Media Library /wp-admin/upload.php?page=mtdml8262.0425.5331.73

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 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 status_header() in wp-content/plugins/download-media-library/uninstall.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
2 plugin tags: media, download media library

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

"Download Media Library" version 0.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin180 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33050124
PO File16537942
JavaScript11214

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin