89% edd-recent-purchases

Code Review | Easy Digital Downloads - Recent Purchases

WordPress plugin Easy Digital Downloads - Recent Purchases scored89%from 54 tests.

About plugin

  • Plugin page: edd-recent-purchases
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.4
  • WordPress version: 6.3.1
  • First release: Oct 5, 2017
  • Latest release: Oct 30, 2023
  • Number of updates: 18
  • Update frequency: every 123.1 days
  • Top authors: lobov (55.56%)Wpcalc (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,296 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.03ms] 75% from 4 tests

This is a short check of server-side resources used by Easy Digital Downloads - Recent Purchases
The following require your attention
  • CPU: Total CPU usage should be kept under 500.00ms (currently 750.86ms on /wp-admin/admin.php?page=wow-company)
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1246.04 ▲6.68
Dashboard /wp-admin3.43 ▲0.0849.86 ▼10.26
Posts /wp-admin/edit.php3.54 ▲0.1862.72 ▲13.66
Add New Post /wp-admin/post-new.php6.03 ▲0.1492.53 ▼8.92
Media Library /wp-admin/upload.php3.35 ▲0.1237.54 ▲4.39
Get More /wp-admin/admin.php?page=wow-company3.57750.86
EDD Recent Purchases /wp-admin/admin.php?page=edd-recent-purchases3.3838.57

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 79 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_wow_edd_recent_purchases
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Easy Digital Downloads - Recent Purchases: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲10014.36 ▼0.021.90 ▲0.1342.02 ▲1.90
Dashboard /wp-admin2,269 ▲925.62 ▲0.0485.84 ▲0.3438.73 ▼1.65
Posts /wp-admin/edit.php2,173 ▲732.04 ▼0.1041.65 ▲4.5636.58 ▲2.00
Add New Post /wp-admin/post-new.php1,561 ▲3018.91 ▼4.34585.69 ▼90.0965.18 ▲0.56
Media Library /wp-admin/upload.php1,471 ▲714.28 ▲0.0598.27 ▲1.5940.44 ▼0.91
Get More /wp-admin/admin.php?page=wow-company1,6522.0924.6291.28
EDD Recent Purchases /wp-admin/admin.php?page=edd-recent-purchases1,7896.79132.3679.55

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_wow_edd_recent_purchases

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (List of Downloads with image), #2 (List of Downloads with avatar), #3 (Admin), #4 (Admin)
Please take inspiration from this readme.txt

edd-recent-purchases/edd-recent-purchases.php Passed 13 tests

The entry point to "Easy Digital Downloads - Recent Purchases" version 1.0.2 is a PHP file that has certain tags in its header comment area
55 characters long description:
Create and show easy digital downloads recent purchases

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin10,570 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
CSS59373,325
SVG1002,671
Sass1434341,768
LESS1434441,758
PHP191152791,038
JavaScript10010

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity10.50
▷ Minimum class complexity3.00
▷ Maximum class complexity23.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes233.33%
Methods28
▷ Static methods27.14%
▷ Public methods2796.43%
▷ Protected methods00.00%
▷ Private methods13.57%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin