79% download-after-email

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

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

About plugin

  • Plugin page: download-after-email
  • Plugin version: 2.1.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1
  • WordPress version: 6.3.1
  • First release: Jan 21, 2019
  • Latest release: Mar 8, 2023
  • Number of updates: 36
  • Update frequency: every 41.9 days
  • Top authors: mkscripts (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

8,000+ active /90,659 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.88ms] Passed 4 tests

Analyzing server-side resources used by Download After Email - Subscribe & Download Form Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.72 ▼4.29
Dashboard /wp-admin3.36 ▲0.0549.46 ▲0.84
Posts /wp-admin/edit.php3.41 ▲0.0544.83 ▼2.65
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.22 ▼13.41
Media Library /wp-admin/upload.php3.28 ▲0.0535.33 ▲1.87
Options /wp-admin/edit.php?post_type=dae_download&page=dae-options3.2531.42
Messages /wp-admin/edit.php?post_type=dae_download&page=dae-messages3.3142.95
All Downloads /wp-admin/edit.php?post_type=dae_download3.3237.26
Add New /wp-admin/post-new.php?post_type=dae_download3.4047.35
Subscribers /wp-admin/edit.php?post_type=dae_download&page=dae-subscribers3.2536.14

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: 4 new tables, 6 new options
New tables
wp_dae_subscribermeta
wp_dae_subscribers
wp_dae_linkmeta
wp_dae_links
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Download After Email - Subscribe & Download Form Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲21613.99 ▼0.3111.41 ▲9.5443.86 ▼4.47
Dashboard /wp-admin2,245 ▲574.85 ▼0.05105.40 ▼8.4641.97 ▼4.37
Posts /wp-admin/edit.php2,125 ▲362.01 ▼0.0333.75 ▼2.1736.13 ▲0.55
Add New Post /wp-admin/post-new.php1,567 ▲3423.17 ▲0.05675.02 ▼3.6652.16 ▲1.14
Media Library /wp-admin/upload.php1,424 ▲334.17 ▼0.0393.16 ▼16.1240.86 ▼9.12
Options /wp-admin/edit.php?post_type=dae_download&page=dae-options1,0231.9726.6835.15
Messages /wp-admin/edit.php?post_type=dae_download&page=dae-messages1,8526.91140.5166.97
All Downloads /wp-admin/edit.php?post_type=dae_download1,1131.9430.4628.55
Add New /wp-admin/post-new.php?post_type=dae_download5,5198.43295.3296.70
Subscribers /wp-admin/edit.php?post_type=dae_download&page=dae-subscribers9671.9830.5043.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables were found after uninstall: 4 tables
    • wp_dae_subscribermeta
    • wp_dae_subscribers
    • wp_dae_links
    • wp_dae_linkmeta
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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:
  • Screenshots: Add descriptions for screenshots #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in download-after-email/assets to your readme.txt
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

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

The entry point to "Download After Email - Subscribe & Download Form Plugin" version 2.1.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal 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 | 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 plugin15,696 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
SVG30128,954
CSS31,436123,592
PHP9810762,855
JavaScript41230295

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods787.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions64
▷ Named functions6195.31%
▷ Anonymous functions34.69%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin