84% wpdr-simple-downloads

Code Review | Simple Download Manager for WP Document Revisions

WordPress plugin Simple Download Manager for WP Document Revisions scored84%from 54 tests.

About plugin

  • Plugin page: wpdr-simple-downl...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 28, 2012
  • Latest release: Nov 13, 2019
  • Number of updates: 17
  • Update frequency: every 147.7 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /21,559 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by Simple Download Manager for WP Document Revisions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.59 ▼7.74
Dashboard /wp-admin3.31 ▼0.0451.32 ▼16.15
Posts /wp-admin/edit.php3.36 ▲0.0052.60 ▲5.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.13 ▼12.04
Media Library /wp-admin/upload.php3.23 ▲0.0036.10 ▼6.56

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Simple Download Manager for WP Document Revisions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.131.74 ▼0.0637.07 ▼11.95
Dashboard /wp-admin2,192 ▲155.65 ▲0.0591.83 ▲3.2741.47 ▲1.55
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0540.42 ▲4.7736.60 ▼0.59
Add New Post /wp-admin/post-new.php1,549 ▲923.09 ▼0.15641.47 ▼53.6763.86 ▲1.53
Media Library /wp-admin/upload.php1,397 ▼04.21 ▼0.0494.57 ▼20.6547.67 ▼1.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 20× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wpdr-simple-downloads/includes/admin/wpdrsd-admin-settings-help.php
    • > /wp-content/plugins/wpdr-simple-downloads/includes/wpdrsd-functions-global.php
    • > /wp-content/plugins/wpdr-simple-downloads/includes/admin/ddwlib-plugin-installer-recommendations.php
    • > /wp-content/plugins/wpdr-simple-downloads/includes/wpdrsd-functions.php
    • > /wp-content/plugins/wpdr-simple-downloads/includes/admin/views/wpdrsd-settings-form.php
    • > /wp-content/plugins/wpdr-simple-downloads/uninstall.php
    • > /wp-content/plugins/wpdr-simple-downloads/includes/admin/wpdrsd-admin-extras.php
    • > /wp-content/plugins/wpdr-simple-downloads/includes/third-party-compat/wpdrsd-genesis-framework.php
    • > /wp-content/plugins/wpdr-simple-downloads/includes/wpdrsd-widgets-init.php
    • > /wp-content/plugins/wpdr-simple-downloads/includes/widgets/wpdrsd-widget-taxonomies.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Version format is invalid
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

wpdr-simple-downloads/wpdr-simple-downloads.php Passed 13 tests

"Simple Download Manager for WP Document Revisions" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
112 characters long description:
Use the WP Document Revisions plugin as very basic & simple download manager with this additional add-on plugin.

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
No dangerous file extensions were detected5,792 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PO File71,0531,9243,280
PHP229291,4152,185
Markdown31850286
JSON10022
CSS251519

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.25
▷ Minimum class complexity8.00
▷ Maximum class complexity22.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods838.10%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions74
▷ Named functions74100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin