10% free-download-manager

Code Review | FREE DOWNLOAD MANAGER

WordPress plugin FREE DOWNLOAD MANAGER scored10%from 54 tests.

About plugin

  • Plugin page: free-download-man...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 13, 2021
  • Latest release: Feb 24, 2022
  • Number of updates: 26
  • Update frequency: every 3.3 days
  • Top authors: codeflock (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /923 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/free-download-manager/admin/settings/multiple_file_upload.php+127
    Undefined index: wp_custom_attachment_files_nonce

Server metrics [RAM: ▼0.51MB] [CPU: ▼28.41ms] Passed 4 tests

An overview of server-side resources used by FREE DOWNLOAD MANAGER
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4945.31 ▲1.77
Dashboard /wp-admin3.40 ▲0.1031.41 ▼23.32
Posts /wp-admin/edit.php3.48 ▲0.1231.89 ▼19.33
Add New Post /wp-admin/post-new.php3.44 ▼2.4540.84 ▼66.68
Media Library /wp-admin/upload.php3.43 ▲0.2031.73 ▼4.30
Reports /wp-admin/edit.php?post_type=free_downloads&page=download-reports3.3931.12
All Downloads /wp-admin/edit.php?post_type=free_downloads3.4630.33
Tag /wp-admin/edit-tags.php?taxonomy=download_tag&post_type=free_downloads3.4028.75
Settings /wp-admin/edit.php?post_type=free_downloads&page=download-settings3.3931.09
Category /wp-admin/edit-tags.php?taxonomy=download_category&post_type=free_downloads3.4128.66
Add New /wp-admin/post-new.php?post_type=free_downloads3.4436.74

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: 1 new table, 6 new options
New tables
wp_download_file_stats
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

FREE DOWNLOAD MANAGER: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,972 ▲22613.78 ▼0.5911.29 ▲9.2743.77 ▲5.14
Dashboard /wp-admin2,252 ▲674.87 ▼0.06102.04 ▼0.1840.96 ▼3.51
Posts /wp-admin/edit.php2,131 ▲422.32 ▲0.3143.24 ▼0.5633.23 ▼1.79
Add New Post /wp-admin/post-new.php6,270 ▲4,75326.09 ▲8.53810.61 ▲212.9936.14 ▼17.69
Media Library /wp-admin/upload.php1,447 ▲594.22 ▲0.0797.53 ▲0.2442.18 ▼4.94
Reports /wp-admin/edit.php?post_type=free_downloads&page=download-reports1,1684.6870.2956.34
All Downloads /wp-admin/edit.php?post_type=free_downloads1,1802.2237.1532.42
Tag /wp-admin/edit-tags.php?taxonomy=download_tag&post_type=free_downloads1,2942.3531.2528.01
Settings /wp-admin/edit.php?post_type=free_downloads&page=download-settings9411.9428.4727.22
Category /wp-admin/edit-tags.php?taxonomy=download_category&post_type=free_downloads1,3222.2828.3527.75
Add New /wp-admin/post-new.php?post_type=free_downloads6,44319.63815.7538.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_download_file_stats
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=free_downloads
    • > Notice in wp-content/plugins/free-download-manager/admin/settings/multiple_file_upload.php+4
    Undefined variable: hook
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=free_downloads
    • > Notice in wp-content/plugins/free-download-manager/admin/settings/multiple_file_upload.php+14
    Undefined variable: post
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=free_downloads
    • > Notice in wp-content/plugins/free-download-manager/admin/settings/multiple_file_upload.php+14
    Trying to get property 'ID' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=free_downloads&page=download-reports
    • > Warning in wp-content/plugins/free-download-manager/admin/settings/download_stats.php+144
    Use of undefined constant download_file_stats - assumed 'download_file_stats' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=free_downloads&page=download-reports
    • > Warning in wp-content/plugins/free-download-manager/admin/settings/download_stats.php+145
    Use of undefined constant posts - assumed 'posts' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/edit.php?post_type=free_downloads
    • > Notice in wp-content/plugins/free-download-manager/admin/settings/download_stats.php+5
    Undefined index: page
    • > GET request to /wp-admin/post-new.php?post_type=free_downloads
    • > Notice in wp-content/plugins/free-download-manager/admin/settings/multiple_file_upload.php+127
    Undefined index: wp_custom_attachment_files_nonce
    • > GET request to /wp-admin/post-new.php?post_type=free_downloads
    • > Notice in wp-content/plugins/free-download-manager/admin/settings/download_settings.php+45
    Undefined variable: limit

SRP 0% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/free-download-manager/templates/test.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-download-manager/admin/settings/download_settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-download-manager/admin/settings/multiple_file_upload.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-download-manager/admin/settings/download_page_settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-download-manager/admin/settings/download_stats.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

free-download-manager/free-download-manager.php Passed 13 tests

This is the main PHP file of "FREE DOWNLOAD MANAGER" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
Free Download Manager is a WordPress Download Manager for freebie digital downloads.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,034 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP104791591,271
JavaScript97694482
CSS45557281

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity36.00
▷ Minimum class complexity11.00
▷ Maximum class complexity61.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods47
▷ Static methods12.13%
▷ Public methods3370.21%
▷ Protected methods714.89%
▷ Private methods714.89%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected