90% edd-ymlp

Code Review | Easy Digital Downloads - YMLP checkout checkbox

WordPress plugin Easy Digital Downloads - YMLP checkout checkbox scored90%from 54 tests.

About plugin

  • Plugin page: edd-ymlp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.7
  • WordPress version: 6.3.1
  • First release: Oct 28, 2013
  • Latest release: Oct 28, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: DvanKooten (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /939 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.48ms] Passed 4 tests

An overview of server-side resources used by Easy Digital Downloads - YMLP checkout checkbox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.36 ▼1.65
Dashboard /wp-admin3.33 ▼0.0240.11 ▼25.13
Posts /wp-admin/edit.php3.38 ▲0.0248.45 ▲1.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.03 ▼16.30
Media Library /wp-admin/upload.php3.26 ▲0.0236.68 ▲1.16

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Easy Digital Downloads - YMLP checkout checkbox
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.56 ▼0.741.85 ▲0.1637.88 ▼2.43
Dashboard /wp-admin2,206 ▲154.84 ▼0.07112.85 ▲6.1443.74 ▼1.46
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0641.38 ▲0.4835.97 ▲4.37
Add New Post /wp-admin/post-new.php1,542 ▲923.30 ▲0.18695.09 ▲10.4374.26 ▲19.34
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.04102.11 ▲1.0542.84 ▼4.98

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% 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:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === edd-ymlp === )
The official readme.txt might help

edd-ymlp/edd-ymlp.php Passed 13 tests

The main PHP file in "Easy Digital Downloads - YMLP checkout checkbox" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
56 characters long description:
Adds a newsletter sign-up checkbox to your checkout form

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin233 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP56523229
CSS1004

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.00
▷ Minimum class complexity4.00
▷ Maximum class complexity8.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin