99% woocommerce-digital-download-free-shipping

Code Review | WooCommerce Digital Download Free Shipping

WordPress plugin WooCommerce Digital Download Free Shipping scored 99% from 54 tests.

About plugin

  • Plugin page: woocommerce-digit...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jun 12, 2013
  • Latest release: Jun 12, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: jameztrue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 2,492 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WooCommerce Digital Download Free Shipping
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0037.48 ▲2.11
Dashboard /wp-admin3.06 ▲0.0041.24 ▲0.59
Posts /wp-admin/edit.php3.11 ▲0.0043.07 ▲4.17
Add New Post /wp-admin/post-new.php5.42 ▼0.0194.62 ▼550.59
Media Library /wp-admin/upload.php3.00 ▼0.0131.90 ▼6.53

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Digital Download Free Shipping
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.91 ▲0.328.64 ▼2.7446.41 ▼6.87
Dashboard /wp-admin2,986 ▲526.13 ▼0.06144.58 ▼28.12113.26 ▲9.53
Posts /wp-admin/edit.php2,739 ▼02.71 ▲0.0064.76 ▼5.4288.61 ▼0.54
Add New Post /wp-admin/post-new.php1,683 ▼1,95318.38 ▲3.17362.39 ▼134.72108.33 ▼0.05
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.03147.82 ▼15.20115.45 ▼14.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Requires at least: Invalid version format
  • Tested up to: Invalid version format
The official readme.txt is a good inspiration

woocommerce-digital-download-free-shipping/woocommerce-digital-download-free-shipping.php Passed 13 tests

The main PHP file in "WooCommerce Digital Download Free Shipping" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
75 characters long description:
Provides Free shipping to Digital Downloads, set by Product Shipping Class.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected130 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14079130

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin