83% immediate-free-download-for-easy-digital-downloads

Code Review | Immediate Free Download for Easy Digital Downloads

WordPress plugin Immediate Free Download for Easy Digital Downloads scored83%from 54 tests.

About plugin

  • Plugin page: immediate-free-do...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 4, 2019
  • Latest release: Feb 7, 2019
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: miunosoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /770 total downloads

Benchmarks

Plugin footprint 83% 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.02MB] [CPU: ▼1.44ms] Passed 4 tests

A check of server-side resources used by Immediate Free Download for Easy Digital Downloads
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.64 ▼0.76
Dashboard /wp-admin3.33 ▲0.0253.59 ▲1.83
Posts /wp-admin/edit.php3.38 ▲0.0249.49 ▲2.67
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.24 ▼8.49
Media Library /wp-admin/upload.php3.25 ▲0.0236.75 ▲1.65

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

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

Browser metrics Passed 4 tests

Immediate Free Download for Easy Digital Downloads: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲614.69 ▲0.071.71 ▼0.1842.89 ▼7.14
Dashboard /wp-admin2,201 ▲345.57 ▼0.2188.54 ▼23.3939.84 ▼9.74
Posts /wp-admin/edit.php2,103 ▼01.94 ▼0.0939.40 ▲1.7535.99 ▼0.28
Add New Post /wp-admin/post-new.php1,529 ▲322.94 ▼0.27663.42 ▼25.7055.71 ▼6.47
Media Library /wp-admin/upload.php1,400 ▼04.15 ▼0.0498.54 ▼4.5143.22 ▲0.34

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'ImmediateFreeDownloadForEDD_Registry' not found in wp-content/plugins/immediate-free-download-for-easy-digital-downloads/include/class-list.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

immediate-free-download-for-easy-digital-downloads/immediate-free-download-for-easy-digital-downloads.php 85% from 13 tests

The main PHP file in "Immediate Free Download for Easy Digital Downloads" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("language")
  • Domain Path: Prefix the domain path with a forward slash character ("/language")

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
Good job! No executable or dangerous file extensions detected273 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP645127222
Markdown123051

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.40
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods12
▷ Static methods650.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin