90% edd-checkout-notes

Code Review | Easy Digital Downloads - Checkout Notes

WordPress plugin Easy Digital Downloads - Checkout Notes scored90%from 54 tests.

About plugin

  • Plugin page: edd-checkout-notes
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9
  • WordPress version: 6.3.1
  • First release: Aug 8, 2013
  • Latest release: Apr 17, 2014
  • Number of updates: 3
  • Update frequency: every 84.0 days
  • Top authors: adampickering (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,958 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by Easy Digital Downloads - Checkout Notes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.29 ▲1.54
Dashboard /wp-admin3.32 ▼0.0345.27 ▼10.89
Posts /wp-admin/edit.php3.37 ▲0.0141.95 ▼4.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.48 ▼16.98
Media Library /wp-admin/upload.php3.24 ▲0.0132.80 ▼1.72

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Easy Digital Downloads - Checkout Notes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.191.95 ▲0.2442.79 ▼0.44
Dashboard /wp-admin2,203 ▲155.86 ▲0.9797.50 ▼1.4938.69 ▼1.46
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0233.31 ▼1.6633.59 ▲1.49
Add New Post /wp-admin/post-new.php1,535 ▲1323.19 ▲0.06644.11 ▼21.7754.48 ▼1.38
Media Library /wp-admin/upload.php1,385 ▼34.19 ▲0.0391.97 ▼5.8341.90 ▼4.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: easy digital downloads, checkout, checkout notes

edd-checkout-notes/edd-checkout-notes.php 92% from 13 tests

The main PHP script in "Easy Digital Downloads - Checkout Notes" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected130 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP144100130

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.25
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 were not PNG files found in your plugin