84% edd-featured-downloads

Code Review | Easy Digital Downloads Featured Downloads

WordPress plugin Easy Digital Downloads Featured Downloads scored84%from 54 tests.

About plugin

  • Plugin page: edd-featured-down...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2
  • WordPress version: 6.3.1
  • First release: Apr 10, 2013
  • Latest release: Apr 21, 2023
  • Number of updates: 16
  • Update frequency: every 229.0 days
  • Top authors: sumobi (75%)cklosows (18.75%)NoseGraze (12.5%)mordauk (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /70,543 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
Installer ran successfully

Server metrics [RAM: ▼0.19MB] [CPU: ▼14.65ms] Passed 4 tests

A check of server-side resources used by Easy Digital Downloads Featured Downloads
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.31 ▼4.36
Dashboard /wp-admin3.32 ▼0.0347.42 ▼21.13
Posts /wp-admin/edit.php3.37 ▲0.0150.41 ▲3.50
Add New Post /wp-admin/post-new.php5.15 ▼0.7469.50 ▼35.16
Media Library /wp-admin/upload.php3.24 ▲0.0135.13 ▲2.04

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
recovery_mode_email_last_sent
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Digital Downloads Featured Downloads
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.191.77 ▼0.0243.60 ▼0.43
Dashboard /wp-admin2,198 ▲215.60 ▲0.0293.42 ▲0.0838.82 ▼0.41
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0539.59 ▼1.0338.30 ▼2.07
Add New Post /wp-admin/post-new.php45 ▼1,4890.42 ▼17.750.07 ▼632.589.11 ▼51.72
Media Library /wp-admin/upload.php1,394 ▼34.24 ▲0.01109.89 ▲2.2865.17 ▲18.16

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-featured-downloads/edd-featured-downloads.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: easy digital downloads, digital downloads, featured, featured downloads, e-downloads...

edd-featured-downloads/edd-featured-downloads.php Passed 13 tests

The principal PHP file in "Easy Digital Downloads Featured Downloads" v. 1.0.5 is loaded by WordPress automatically on each request
80 characters long description:
Provides a intuitive interface and functionality for managing featured 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
There were no executable files found in this plugin349 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP17288305
PO File14423
JavaScript14921

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin