89% lemon-squeezy

Code Review | Easy Peasy Digital Downloads — Sell Digital Products, Subscriptions, and Licenses with Lemon Squeezy

WordPress plugin Easy Peasy Digital Downloads — Sell Digital Products, Subscriptions, and Licenses with Lemon Squeezy scored89%from 54 tests.

About plugin

  • Plugin page: lemon-squeezy
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 10, 2021
  • Latest release: Nov 22, 2023
  • Number of updates: 12
  • Update frequency: every 62.4 days
  • Top authors: lemonsqueezy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,095 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼7.06ms] Passed 4 tests

Analyzing server-side resources used by Easy Peasy Digital Downloads — Sell Digital Products, Subscriptions, and Licenses with Lemon Squeezy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1935.49 ▼5.88
Dashboard /wp-admin3.49 ▲0.1447.72 ▼13.54
Posts /wp-admin/edit.php3.61 ▲0.2450.12 ▲2.36
Add New Post /wp-admin/post-new.php6.11 ▲0.2185.88 ▼8.33
Media Library /wp-admin/upload.php3.42 ▲0.1834.32 ▼0.48

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Peasy Digital Downloads — Sell Digital Products, Subscriptions, and Licenses with Lemon Squeezy
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲4814.22 ▼0.161.73 ▼0.1539.77 ▼2.77
Dashboard /wp-admin2,221 ▲405.51 ▼0.1693.52 ▼15.2484.12 ▲38.45
Posts /wp-admin/edit.php2,126 ▲261.96 ▲0.0140.57 ▲0.0534.92 ▼2.18
Add New Post /wp-admin/post-new.php6,392 ▲4,86628.58 ▲5.54940.86 ▲289.8353.64 ▼10.05
Media Library /wp-admin/upload.php1,420 ▲204.18 ▲0.0394.03 ▼8.2875.07 ▲29.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% 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:
  • License uri: Please fix this invalid URI: "[https://www.gnu.org/licenses/gpl-2.0.html](https://www.gnu.org/licenses/gpl-2.0.html)"
  • Donate link: Please fix this invalid URI: "[https://lemonsqueezy.com](https://lemonsqueezy.com/)"
The official readme.txt might help

lemon-squeezy/lemonsqueezy.php 85% from 13 tests

The primary PHP file in "Easy Peasy Digital Downloads — Sell Digital Products, Subscriptions, and Licenses with Lemon Squeezy" version 1.3.0 is used by WordPress to initiate all plugin functionality
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
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lemon-squeezy.php" instead of "lemonsqueezy.php")

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
There were no executable files found in this plugin2,869 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12108321,359
PHP9177234992
Sass147616425
JSON20055
SVG20024
XML16512
CSS3302

PHP code Passed 2 tests

An short overview of 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.43
Average class complexity21.40
▷ Minimum class complexity6.00
▷ Maximum class complexity46.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods36
▷ Static methods411.11%
▷ Public methods3494.44%
▷ Protected methods25.56%
▷ Private methods00.00%
Functions10
▷ Named functions110.00%
▷ Anonymous functions990.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin