90% woo-wp-login

Code Review | Redirect Login to WooCommerce "My account" Page

WordPress plugin Redirect Login to WooCommerce "My account" Page scored90%from 54 tests.

About plugin

  • Plugin page: woo-wp-login
  • Plugin version: 3.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 22, 2017
  • Latest release: Jun 29, 2023
  • Number of updates: 99
  • Update frequency: every 20.4 days
  • Top authors: machineitsvcs (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /9,403 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Redirect Login to WooCommerce "My account" Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.64 ▼5.77
Dashboard /wp-admin3.34 ▲0.0447.64 ▼4.68
Posts /wp-admin/edit.php3.39 ▲0.0449.56 ▼7.50
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.81 ▼13.64
Media Library /wp-admin/upload.php3.26 ▲0.0337.29 ▲1.47

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Redirect Login to WooCommerce "My account" Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.041.66 ▲0.0644.74 ▲5.08
Dashboard /wp-admin2,198 ▲185.61 ▼0.0786.58 ▼3.8038.36 ▼5.75
Posts /wp-admin/edit.php2,097 ▼01.98 ▲0.0135.44 ▼3.9834.34 ▼4.25
Add New Post /wp-admin/post-new.php1,526 ▼023.59 ▲0.58687.43 ▲7.8754.57 ▼0.40
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0894.65 ▼11.8241.74 ▼4.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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)
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: login, woocommerce, wp-login, redirect, woocommerce plugins

woo-wp-login/woocommerce-wp-login.php 92% from 13 tests

Analyzing the main PHP file in "Redirect Login to WooCommerce "My account" Page" version 3.0.2
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-wp-login.php" instead of "woocommerce-wp-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin109 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP169109

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code1.24
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%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.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
No PNG images were found in this plugin