10% edd-recent-downloads

Code Review | EDD Recent downloads

WordPress plugin EDD Recent downloads scored10%from 54 tests.

About plugin

  • Plugin page: edd-recent-downloads
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 25, 2015
  • Latest release: Dec 25, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: galiulinr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /909 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/edd-recent-downloads/edd-recent-downloads.php+113
    Function create_function() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.79ms] Passed 4 tests

An overview of server-side resources used by EDD Recent downloads
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.40 ▼40.90
Dashboard /wp-admin2.08 ▼1.225.78 ▼43.37
Posts /wp-admin/edit.php2.08 ▼1.275.89 ▼37.57
Add New Post /wp-admin/post-new.php2.08 ▼3.806.14 ▼93.31
Media Library /wp-admin/upload.php2.08 ▼1.155.06 ▼28.74

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_edd-recent-downloads
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for EDD Recent downloads
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.32 ▼0.921.58 ▼0.5440.43 ▼12.89
Dashboard /wp-admin2,209 ▲245.86 ▲0.00109.15 ▼6.5637.40 ▼5.35
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0640.11 ▲2.2334.21 ▼0.42
Add New Post /wp-admin/post-new.php1,539 ▲423.27 ▲0.17685.04 ▼24.6163.88 ▲6.43
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.0698.40 ▼2.2841.12 ▼2.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/edd-recent-downloads/edd-recent-downloads.php+113
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_edd-recent-downloads
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === edd-recent-downloads === )
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

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

The primary PHP file in "EDD Recent downloads" version 1.0 is used by WordPress to initiate all plugin functionality
54 characters long description:
Add widget Recent downloads to Easy Digital Downloads.

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
There were no executable files found in this plugin55 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1342555

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin