83% wp-after-registration-redirect-user-advanced

Code Review | After Registration Redirect

WordPress plugin After Registration Redirect scored83%from 54 tests.

About plugin

  • Plugin page: wp-after-registra...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: May 4, 2018
  • Latest release: Aug 27, 2023
  • Number of updates: 11
  • Update frequency: every 176.6 days
  • Top authors: sajjad67 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /4,127 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.30ms] Passed 4 tests

This is a short check of server-side resources used by After Registration Redirect
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.43 ▲0.30
Dashboard /wp-admin3.34 ▲0.0448.31 ▼2.45
Posts /wp-admin/edit.php3.39 ▲0.0451.71 ▲4.11
Add New Post /wp-admin/post-new.php5.95 ▲0.0799.28 ▼0.74
Media Library /wp-admin/upload.php3.28 ▲0.0540.25 ▲5.29

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for After Registration Redirect
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9313.81 ▼0.551.82 ▼0.0342.54 ▼1.49
Dashboard /wp-admin2,234 ▲495.23 ▲0.32110.58 ▼6.6439.03 ▼8.44
Posts /wp-admin/edit.php2,099 ▲102.32 ▲0.2841.39 ▲4.7435.34 ▼0.78
Add New Post /wp-admin/post-new.php1,539 ▲2517.81 ▲0.30671.72 ▼1.5554.50 ▼1.12
Media Library /wp-admin/upload.php1,426 ▲384.50 ▲0.2697.91 ▼13.3444.49 ▼3.32

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-after-registration-redirect-user-advanced/includes/functions.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-after-registration-redirect-user-advanced/includes/dashboard.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-after-registration-redirect-user-advanced/includes/enqueue.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-after-registration-redirect-user-advanced/public/redirect.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Registration Redirect Filter Add.) image required
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt is a good inspiration

wp-after-registration-redirect-user-advanced/wp-after-user-registration-redirect.php 85% from 13 tests

"After Registration Redirect" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-after-registration-redirect-user-advanced.php" instead of "wp-after-user-registration-redirect.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected7,907 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS21,02877,659
PHP56726185
JavaScript3161063

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected