83% edd-download-images

Code Review | EDD Download Images

WordPress plugin EDD Download Images scored83%from 54 tests.

About plugin

  • Plugin page: edd-download-images
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.4.2
  • WordPress version: 6.3.1
  • First release: Apr 9, 2013
  • Latest release: Apr 3, 2016
  • Number of updates: 19
  • Update frequency: every 57.4 days
  • Top authors: sumobi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /10,658 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.16MB] [CPU: ▼13.54ms] Passed 4 tests

Server-side resources used by EDD Download Images
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.83 ▼0.14
Dashboard /wp-admin3.33 ▲0.0347.16 ▼9.61
Posts /wp-admin/edit.php3.38 ▲0.0350.92 ▼5.36
Add New Post /wp-admin/post-new.php5.16 ▼0.7265.51 ▼39.03
Media Library /wp-admin/upload.php3.25 ▲0.0339.09 ▲2.52

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
recovery_mode_email_last_sent
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for EDD Download Images
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.35 ▼1.011.71 ▼0.1542.63 ▼1.84
Dashboard /wp-admin2,206 ▲154.86 ▼0.20110.44 ▲0.6137.24 ▼9.14
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0139.45 ▼1.8834.69 ▼4.23
Add New Post /wp-admin/post-new.php45 ▼1,4720.44 ▼17.230.07 ▼677.829.75 ▼42.41
Media Library /wp-admin/upload.php1,385 ▼04.23 ▲0.02128.74 ▲28.0085.91 ▲42.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-download-images/edd-download-images.php:22

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: additional images, sumobi, e-downloads, edd, digital downloads...

edd-download-images/edd-download-images.php 77% from 13 tests

"EDD Download Images" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin156 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13360127
PO File1121929

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin