89% edd-simple-after-payment-redirect

Code Review | EDD Redirect after payment

WordPress plugin EDD Redirect after payment scored89%from 54 tests.

About plugin

  • Plugin page: edd-simple-after-...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Nov 10, 2017
  • Latest release: Apr 12, 2023
  • Number of updates: 18
  • Update frequency: every 109.9 days
  • Top authors: brainstormworg (50%)Nikschavan (50%)patilvikasj (11.11%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,165 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.11MB] [CPU: ▼5.42ms] Passed 4 tests

This is a short check of server-side resources used by EDD Redirect after payment
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▼0.5820.94 ▼21.13
Dashboard /wp-admin3.35 ▲0.0547.76 ▼3.00
Posts /wp-admin/edit.php3.40 ▲0.0448.32 ▼0.11
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.87 ▲2.58
Media Library /wp-admin/upload.php3.28 ▲0.0450.62 ▲17.41

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for EDD Redirect after payment
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,456 ▼27913.69 ▼0.870.51 ▼1.3018.55 ▼24.01
Dashboard /wp-admin2,209 ▲214.86 ▼0.98100.02 ▼15.4637.73 ▼10.03
Posts /wp-admin/edit.php2,092 ▼02.04 ▲0.0341.35 ▼1.8833.20 ▼7.02
Add New Post /wp-admin/post-new.php1,533 ▼023.36 ▲0.16647.61 ▼38.5967.14 ▲14.95
Media Library /wp-admin/upload.php1,391 ▼04.28 ▲0.08101.13 ▼1.3547.26 ▲1.29

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 does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: payment, edd, redirect

edd-simple-after-payment-redirect/class-edd-simple-after-payment-redirect.php 85% from 13 tests

"EDD Redirect after payment" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("edd-simple-after-payment-redirect.php" instead of "class-edd-simple-after-payment-redirect.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 plugin173 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP159146173

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin