90% edd-download-info

Code Review | EDD Download Info

WordPress plugin EDD Download Info scored90%from 54 tests.

About plugin

  • Plugin page: edd-download-info
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.3
  • WordPress version: 6.3.1
  • First release: Feb 11, 2013
  • Latest release: Jul 4, 2015
  • Number of updates: 34
  • Update frequency: every 25.7 days
  • Top authors: sami.keijonen (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

50+ active /7,925 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼1.58ms] Passed 4 tests

This is a short check of server-side resources used by EDD Download Info
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1747.96 ▲5.77
Dashboard /wp-admin3.45 ▲0.1159.55 ▼6.75
Posts /wp-admin/edit.php3.57 ▲0.2159.18 ▲13.12
Add New Post /wp-admin/post-new.php6.04 ▲0.15106.95 ▼7.24
Media Library /wp-admin/upload.php3.38 ▲0.1538.81 ▲1.92

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_edd-download-info
widget_edd-download-info-features
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for EDD Download Info
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.31 ▼0.041.72 ▼0.1643.86 ▲2.46
Dashboard /wp-admin2,195 ▲185.53 ▼0.0885.76 ▼8.5340.33 ▼5.59
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0738.87 ▲1.6034.97 ▲2.17
Add New Post /wp-admin/post-new.php1,527 ▲12323.59 ▲5.66595.44 ▼50.1242.40 ▼3.14
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0596.33 ▼11.3846.03 ▲0.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_edd-download-info
    • widget_edd-download-info-features
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: easy, edd, digital, add-on, download...

edd-download-info/edd-download-info.php Passed 13 tests

This is the main PHP file of "EDD Download Info" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Adds download info metabox and widget to Easy Digital Downloads.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,090 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PO File5245270595
PHP8242310490
JavaScript1125

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.33
▷ Minimum class complexity2.00
▷ Maximum class complexity37.00
Average method complexity4.31
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods13
▷ Static methods17.69%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin