10% downloadmanager

Code Review | Download Manager

WordPress plugin Download Manager scored10%from 54 tests.

About plugin

  • Plugin page: downloadmanager
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 26, 2013
  • Latest release: Mar 26, 2013
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: n4nirob (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,992 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/downloadmanager/DM.php+61
    syntax error, unexpected 'else' (T_ELSE)

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.58ms] Passed 4 tests

A check of server-side resources used by Download Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.03 ▼1.58
Dashboard /wp-admin3.31 ▲0.0048.43 ▼7.12
Posts /wp-admin/edit.php3.36 ▲0.0049.32 ▼1.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.81 ▼11.71
Media Library /wp-admin/upload.php3.23 ▲0.0034.95 ▼0.55

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Download Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.231.78 ▲0.1139.79 ▲0.23
Dashboard /wp-admin2,203 ▲125.83 ▼0.0597.27 ▼8.4135.51 ▼6.70
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0541.60 ▲6.0335.61 ▲0.00
Add New Post /wp-admin/post-new.php1,538 ▲2423.09 ▲5.44653.21 ▼42.4958.19 ▼0.04
Media Library /wp-admin/upload.php1,388 ▲94.23 ▼0.0795.39 ▼3.8640.76 ▼5.73

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected 'else' (T_ELSE) in wp-content/plugins/downloadmanager/DM.php on line 61

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid URI: "#"
The official readme.txt might help

downloadmanager/DM.php 92% from 13 tests

The main PHP script in "Download Manager" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("downloadmanager.php" instead of "DM.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
Everything looks great! No dangerous files found in this plugin125 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13012125

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin