90% edd-purchase-details

Code Review | Easy Digital Downloads - Purchase Details

WordPress plugin Easy Digital Downloads - Purchase Details scored 90% from 54 tests.

About plugin

  • Plugin page: edd-purchase-details
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Feb 1, 2019
  • Latest release: Sep 1, 2023
  • Number of updates: 15
  • Update frequency: every 111.5 days
  • Top authors: brainstormworg (80%)patilvikasj (20%)Nikschavan (13.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,858 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
Install script ran successfully

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

Server-side resources used by Easy Digital Downloads - Purchase Details
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.19 ▼6.42
Dashboard /wp-admin3.32 ▲0.0149.28 ▼0.49
Posts /wp-admin/edit.php3.37 ▲0.0147.76 ▼2.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.80 ▼25.17
Media Library /wp-admin/upload.php3.25 ▲0.0135.10 ▲0.05

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Easy Digital Downloads - Purchase Details
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.22 ▼1.531.84 ▼0.1039.75 ▼7.91
Dashboard /wp-admin2,216 ▲315.87 ▼0.03114.07 ▲11.8645.41 ▲1.90
Posts /wp-admin/edit.php2,098 ▲92.01 ▼0.0435.19 ▼0.8335.49 ▲2.82
Add New Post /wp-admin/post-new.php1,543 ▲2923.03 ▲5.39637.05 ▼90.4658.63 ▲7.08
Media Library /wp-admin/upload.php1,401 ▲104.27 ▲0.06101.11 ▼4.2143.30 ▼1.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: downloads, purchase, e-store, download, digital downloads

edd-purchase-details/edd-purchase-details.php Passed 13 tests

This is the main PHP file of "Easy Digital Downloads - Purchase Details" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
49 characters long description:
Easy Digital Downloads Access to Purchase Details

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected388 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP572191364
CSS15424

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes266.67%
Methods19
▷ Static methods210.53%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin