90% easy-media-download

Code Review | Easy Media Download

WordPress plugin Easy Media Download scored90%from 54 tests.

About plugin

  • Plugin page: easy-media-download
  • Plugin version: 1.1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 4, 2013
  • Latest release: Sep 11, 2023
  • Number of updates: 62
  • Update frequency: every 58.1 days
  • Top authors: naa986 (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

10,000+ active /373,548 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.02ms] Passed 4 tests

Server-side resources used by Easy Media Download
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.80 ▲2.94
Dashboard /wp-admin3.37 ▲0.0344.12 ▼16.03
Posts /wp-admin/edit.php3.42 ▲0.0742.83 ▼1.65
Add New Post /wp-admin/post-new.php5.95 ▲0.0782.25 ▼9.00
Media Library /wp-admin/upload.php3.30 ▲0.0733.32 ▲2.60
Easy Media Download /wp-admin/options-general.php?page=easy-media-download-settings3.2629.71

Server storage [IO: ▲0.04MB] [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

Browser metrics Passed 4 tests

Checking browser requirements for Easy Media Download
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.58 ▼1.041.98 ▲0.4041.04 ▲0.47
Dashboard /wp-admin2,210 ▲224.84 ▼1.04102.19 ▼3.8738.18 ▼0.32
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0736.20 ▲0.4030.18 ▼3.38
Add New Post /wp-admin/post-new.php1,545 ▲2618.21 ▼4.94613.14 ▼36.9259.75 ▲6.64
Media Library /wp-admin/upload.php1,395 ▲44.21 ▲0.0396.30 ▼3.3743.45 ▲0.34
Easy Media Download /wp-admin/options-general.php?page=easy-media-download-settings7632.0524.3224.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

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)
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: buttons, downloads, download, button, digital downloads

easy-media-download/main.php 92% from 13 tests

Analyzing the main PHP file in "Easy Media Download" version 1.1.10
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-media-download.php" instead of "main.php")

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 plugin495 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
extensions/images/emd-user-only-download.png2.81KB1.40KB▼ 50.31%