84% easy-digital-downloads-frontend-submissions-product-details-widget

Code Review | Easy Digital Downloads - Frontend Submissions Product Details

WordPress plugin Easy Digital Downloads - Frontend Submissions Product Details scored84%from 54 tests.

About plugin

  • Plugin page: easy-digital-down...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.9.3
  • WordPress version: 6.3.1
  • First release: Jan 15, 2014
  • Latest release: May 10, 2022
  • Number of updates: 18
  • Update frequency: every 169.1 days
  • Top authors: adampickering (94.44%)Astoundify (11.11%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /13,221 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Easy Digital Downloads - Frontend Submissions Product Details
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.66 ▲3.13
Dashboard /wp-admin3.35 ▲0.0546.67 ▼2.91
Posts /wp-admin/edit.php3.41 ▲0.0542.12 ▼3.06
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.65 ▼2.12
Media Library /wp-admin/upload.php3.28 ▲0.0534.46 ▼0.34

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_widget_edd_fpd
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Digital Downloads - Frontend Submissions Product Details
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.14 ▼0.241.66 ▲0.0843.97 ▲4.99
Dashboard /wp-admin2,195 ▲155.61 ▲0.0797.57 ▲8.1242.77 ▼0.07
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0435.69 ▼0.3734.95 ▼1.48
Add New Post /wp-admin/post-new.php1,526 ▼223.28 ▲0.20615.23 ▼47.2354.13 ▼2.50
Media Library /wp-admin/upload.php1,403 ▲94.21 ▼0.0499.21 ▼4.8044.04 ▼0.72

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
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_widget_edd_fpd
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | 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 following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-digital-downloads-frontend-submissions-product-details-widget/widget.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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: product details, easy digital downloads, widget, downloads

easy-digital-downloads-frontend-submissions-product-details-widget/edd-fes-product-details.php 92% from 13 tests

This is the main PHP file of "Easy Digital Downloads - Frontend Submissions Product Details" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-digital-downloads-frontend-submissions-product-details-widget.php" instead of "edd-fes-product-details.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin182 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26494182

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity17.50
▷ Minimum class complexity4.00
▷ Maximum class complexity31.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods1083.33%
▷ Protected methods00.00%
▷ Private methods216.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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