89% download-after-email

Code Review | Download After Email - Subscribe & Download Form Plugin

WordPress plugin Download After Email - Subscribe & Download Form Plugin scored 89% from 54 tests.

About plugin

  • Plugin page: download-after-email
  • Plugin version: 2.1.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9
  • WordPress version: 5.9.2
  • First release: Jan 21, 2019
  • Latest release: Mar 13, 2022
  • Number of updates: 33
  • Update frequency: every 34.8 days
  • Top authors: mkscripts (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

8,000+ active / 65,148 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.50MB] [CPU: ▼301.29ms] Passed 4 tests

A check of server-side resources used by Download After Email - Subscribe & Download Form Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3456.68 ▲0.87
Dashboard /wp-admin4.00 ▲0.5939.87 ▼11.26
Posts /wp-admin/edit.php4.22 ▲0.5848.48 ▼41.28
Add New Post /wp-admin/post-new.php7.46 ▲0.4995.18 ▼1,153.50
Media Library /wp-admin/upload.php3.88 ▲0.5933.27 ▲8.18
Subscribers /wp-admin/edit.php?post_type=dae_download&page=dae-subscribers3.8628.16
All Downloads /wp-admin/edit.php?post_type=dae_download3.9931.11
Messages /wp-admin/edit.php?post_type=dae_download&page=dae-messages3.9840.43
Options /wp-admin/edit.php?post_type=dae_download&page=dae-options3.8628.05
Add New /wp-admin/post-new.php?post_type=dae_download4.2245.38

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: 4 new tables, no new options
New tables

Browser metrics Passed 4 tests

Download After Email - Subscribe & Download Form Plugin: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,928 ▲17415.69 ▲0.0510.06 ▲3.771.94 ▼1.21
Dashboard /wp-admin2,931 ▲706.22 ▲0.01123.06 ▼12.04156.69 ▼4.30
Posts /wp-admin/edit.php2,736 ▲423.24 ▲0.0162.96 ▼1.76140.47 ▼4.98
Add New Post /wp-admin/post-new.php1,801 ▲16621.13 ▲2.01499.79 ▲31.21163.31 ▲12.93
Media Library /wp-admin/upload.php1,737 ▲395.53 ▼0.01177.60 ▲28.27191.61 ▲3.43
Subscribers /wp-admin/edit.php?post_type=dae_download&page=dae-subscribers1,2512.9262.85200.26
All Downloads /wp-admin/edit.php?post_type=dae_download1,4452.9359.68170.85
Messages /wp-admin/edit.php?post_type=dae_download&page=dae-messages2,4089.07168.51268.34
Options /wp-admin/edit.php?post_type=dae_download&page=dae-options1,2952.8958.36156.28
Add New /wp-admin/post-new.php?post_type=dae_download8,43711.14306.03271.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables were found after uninstall: 4 tables
    • wp_dae_subscribermeta
    • wp_dae_links
    • wp_dae_linkmeta
    • wp_dae_subscribers

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

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add descriptions for these screenshots #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in download-after-email/assets to your readme.txt
Please take inspiration from this readme.txt

download-after-email/dae.php 92% from 13 tests

The main PHP file in "Download After Email - Subscribe & Download Form Plugin" ver. 2.1.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("download-after-email.php" instead of "dae.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin15,678 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity5.12
▷ Minimum method complexity3.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods787.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6095.24%
▷ Anonymous functions34.76%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin