90% download-media

Code Review | Download Media

WordPress plugin Download Media scored90%from 54 tests.

About plugin

  • Plugin page: download-media
  • Plugin version: 1.4.2
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: May 8, 2020
  • Latest release: Jul 25, 2023
  • Number of updates: 18
  • Update frequency: every 65.3 days
  • Top authors: Jean-David (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /7,439 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Download Media
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.78 ▲2.45
Dashboard /wp-admin3.34 ▲0.0450.56 ▼1.48
Posts /wp-admin/edit.php3.39 ▲0.0451.57 ▼7.32
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.21 ▼15.95
Media Library /wp-admin/upload.php3.27 ▲0.0440.45 ▲1.97
Download Media /wp-admin/options-general.php?page=download-media3.2328.43

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Download Media
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.73 ▲0.351.61 ▼0.2442.21 ▼2.32
Dashboard /wp-admin2,199 ▲225.70 ▲0.0199.79 ▲9.1643.64 ▲1.06
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0239.49 ▲0.2737.16 ▼0.41
Add New Post /wp-admin/post-new.php1,553 ▲1323.39 ▼0.06666.43 ▼25.0752.38 ▼0.59
Media Library /wp-admin/upload.php1,422 ▲224.24 ▲0.00103.31 ▼3.1541.66 ▼3.29
Download Media /wp-admin/options-general.php?page=download-media8542.1927.0831.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: image, download, media, library, post thumbnails

download-media/download-media.php Passed 13 tests

The main file in "Download Media" v. 1.4.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
81 characters long description:
Allows medias in the media library to be direclty download one by one or in bulk.

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
Everything looks great! No dangerous files found in this plugin475 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3101101419
JavaScript16039
CSS10017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity18.33
▷ Minimum class complexity6.00
▷ Maximum class complexity26.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods2790.00%
▷ Protected methods00.00%
▷ Private methods310.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin