84% edd-extra-notes-on-checkout

Code Review | Easy Digital Downloads - Extra note(s) On Checkout

WordPress plugin Easy Digital Downloads - Extra note(s) On Checkout scored84%from 54 tests.

About plugin

  • Plugin page: edd-extra-notes-o...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Jan 4, 2017
  • Latest release: May 19, 2023
  • Number of updates: 57
  • Update frequency: every 40.8 days
  • Top authors: dipakcg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,565 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼9.87ms] Passed 4 tests

Server-side resources used by Easy Digital Downloads - Extra note(s) On Checkout
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.62 ▼14.46
Dashboard /wp-admin3.31 ▼0.0351.49 ▼14.21
Posts /wp-admin/edit.php3.36 ▲0.0148.06 ▼0.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.12 ▼5.63
Media Library /wp-admin/upload.php3.24 ▲0.0136.12 ▼5.17

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Digital Downloads - Extra note(s) On Checkout
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲5414.30 ▲0.021.70 ▼0.0144.26 ▼0.28
Dashboard /wp-admin2,198 ▲215.59 ▼0.0298.10 ▲10.5043.40 ▲2.92
Posts /wp-admin/edit.php2,100 ▲31.94 ▼0.0737.18 ▼0.9635.62 ▼0.19
Add New Post /wp-admin/post-new.php1,526 ▼023.67 ▲0.06688.99 ▼14.0555.89 ▼4.96
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.06105.21 ▲3.1245.12 ▲1.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-extra-notes-on-checkout/edd-extra-notes-on-checkout.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

edd-extra-notes-on-checkout/edd-extra-notes-on-checkout.php Passed 13 tests

The main PHP script in "Easy Digital Downloads - Extra note(s) On Checkout" version 1.1 is automatically included on every request by WordPress
122 characters long description:
Adds 'Extra note(s)' textarea to the checkout screen for buyers to add notes about their order, in Easy Digital Downloads.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131324

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin