100% wc-quick-customer-redirects

Code Review | WC Quick Customer Redirects

WordPress plugin WC Quick Customer Redirects scored 100% from 54 tests.

About plugin

  • Plugin page: wc-quick-customer...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.4.2
  • WordPress version: 5.8.1
  • First release: May 14, 2017
  • Latest release: Jun 25, 2020
  • Number of updates: 12
  • Update frequency: every 94.9 days
  • Top authors: Rynald0s (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,109 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼136.64ms] Passed 4 tests

A check of server-side resources used by WC Quick Customer Redirects
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1231.90 ▲8.98
Dashboard /wp-admin3.06 ▲0.0138.95 ▼5.32
Posts /wp-admin/edit.php3.11 ▲0.0143.35 ▼0.62
Add New Post /wp-admin/post-new.php5.43 ▼0.0089.28 ▼540.07
Media Library /wp-admin/upload.php3.01 ▲0.0032.01 ▼0.53

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WC Quick Customer Redirects
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲8715.81 ▲0.269.50 ▼2.7645.60 ▼5.13
Dashboard /wp-admin2,977 ▲465.86 ▼0.07134.68 ▼7.02116.46 ▲6.14
Posts /wp-admin/edit.php2,743 ▲42.72 ▲0.0164.12 ▼2.6692.19 ▲9.31
Add New Post /wp-admin/post-new.php1,675 ▲318.81 ▼0.03369.76 ▼14.48111.10 ▲4.04
Media Library /wp-admin/upload.php1,814 ▲635.04 ▲0.06150.04 ▲3.48117.41 ▲1.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

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)
There were no browser issues found

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 need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

wc-quick-customer-redirects/wc-quick-customer-redirects.php Passed 13 tests

The main PHP script in "WC Quick Customer Redirects" version 1.3 is automatically included on every request by WordPress
103 characters long description:
This plugin lets you set custom page redirects for customers after registration, login, logout actions.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected81 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1262981

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
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 functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin