84% woocommerce-automatic-download

Code Review | WooCommerce Automatic Download

WordPress plugin WooCommerce Automatic Download scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-autom...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7.5
  • WordPress version: 6.3.1
  • First release: May 12, 2015
  • Latest release: Jun 19, 2017
  • Number of updates: 5
  • Update frequency: every 153.8 days
  • Top authors: tahiryasin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /2,678 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.20ms] Passed 4 tests

A check of server-side resources used by WooCommerce Automatic Download
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.68 ▼0.27
Dashboard /wp-admin3.31 ▲0.0149.93 ▼2.44
Posts /wp-admin/edit.php3.36 ▲0.0047.06 ▲0.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.74 ▼6.32
Media Library /wp-admin/upload.php3.23 ▲0.0036.47 ▲1.86

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Automatic Download
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.31 ▼0.422.50 ▲0.6540.32 ▼1.92
Dashboard /wp-admin2,198 ▲215.58 ▼0.1384.01 ▼8.6939.02 ▼2.64
Posts /wp-admin/edit.php2,100 ▲401.95 ▼0.0636.85 ▼6.6333.08 ▼2.82
Add New Post /wp-admin/post-new.php1,526 ▼023.57 ▲0.52600.02 ▼12.6661.19 ▲5.56
Media Library /wp-admin/upload.php1,400 ▲34.14 ▼0.0696.61 ▼7.9541.14 ▼4.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocommerce-automatic-download/woocommerce-automatic-download.php:15

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

woocommerce-automatic-download/woocommerce-automatic-download.php 92% from 13 tests

Analyzing the main PHP file in "WooCommerce Automatic Download" version 1.1
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin65 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.56
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ 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