89% login-on-checkout-for-easy-digital-downloads

Code Review | Login On Checkout for Easy Digital Downloads

WordPress plugin Login On Checkout for Easy Digital Downloads scored89%from 54 tests.

About plugin

  • Plugin page: login-on-checkout...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 11, 2019
  • Latest release: Sep 11, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: ironikus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /701 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.02MB] [CPU: ▼1.53ms] Passed 4 tests

Analyzing server-side resources used by Login On Checkout for Easy Digital Downloads
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.77 ▲3.65
Dashboard /wp-admin3.33 ▲0.0253.05 ▼0.43
Posts /wp-admin/edit.php3.38 ▲0.0249.83 ▲0.17
Add New Post /wp-admin/post-new.php5.91 ▲0.02100.39 ▼8.21
Media Library /wp-admin/upload.php3.25 ▲0.0237.78 ▲2.34

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Login On Checkout for Easy Digital Downloads
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.172.06 ▲0.2345.22 ▲5.08
Dashboard /wp-admin2,198 ▲245.61 ▼0.0692.57 ▼1.7341.57 ▼2.33
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0136.39 ▼1.0534.10 ▲0.53
Add New Post /wp-admin/post-new.php1,531 ▲523.29 ▼0.03678.17 ▼16.8561.41 ▲5.51
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.02102.04 ▼3.1941.75 ▼4.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: You can look at the official readme.txt

login-on-checkout-for-easy-digital-downloads/edd-auto-register-login.php 92% from 13 tests

The main file in "Login On Checkout for Easy Digital Downloads" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("login-on-checkout-for-easy-digital-downloads.php" instead of "edd-auto-register-login.php")

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
Everything looks great! No dangerous files found in this plugin90 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1234290

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin