89% customer-details-easy-digital-downloads

Code Review | Customer Details - Easy Digital Downloads

WordPress plugin Customer Details - Easy Digital Downloads scored89%from 54 tests.

About plugin

  • Plugin page: customer-details-...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8.1
  • WordPress version: 6.3.1
  • First release: Nov 4, 2021
  • Latest release: Nov 4, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: nazmulhasan103 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /288 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▲0.05ms] Passed 4 tests

A check of server-side resources used by Customer Details - Easy Digital Downloads
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0740.98 ▲0.10
Dashboard /wp-admin3.38 ▲0.0849.49 ▲1.55
Posts /wp-admin/edit.php3.50 ▲0.1447.54 ▲0.53
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.39 ▼1.31
Media Library /wp-admin/upload.php3.31 ▲0.0736.10 ▲0.88

Server storage [IO: ▲0.02MB] [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: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Customer Details - Easy Digital Downloads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.80 ▲0.421.73 ▼0.2142.89 ▲0.14
Dashboard /wp-admin2,213 ▲255.85 ▲0.0497.93 ▼3.3037.20 ▼2.22
Posts /wp-admin/edit.php2,093 ▲72.02 ▼0.0233.01 ▼6.9334.19 ▼3.06
Add New Post /wp-admin/post-new.php1,532 ▲1818.21 ▲0.53631.73 ▼32.3656.40 ▲4.54
Media Library /wp-admin/upload.php1,392 ▲14.29 ▲0.0891.39 ▼10.9441.43 ▼3.12

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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
Even though no errors were found, 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: edd, customer-history, edd-customer-info, customer-details

customer-details-easy-digital-downloads/custom-details.php 69% from 13 tests

The main PHP script in "Customer Details - Easy Digital Downloads" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("customer-details-easy-digital-downloads.php" instead of "custom-details.php")
  • 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
  • Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "5.2")
  • Requires PHP: Required version must match the one declared in readme.txt ("5.3" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin280 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

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.27
Average class complexity7.75
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
▷ Static methods14.17%
▷ Public methods2291.67%
▷ Protected methods14.17%
▷ Private methods14.17%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.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