100% redirect-front-end

Code Review | Redirect Front-end

WordPress plugin Redirect Front-end scored 100% from 53 tests.

About plugin

  • Plugin page: redirect-front-end
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6
  • WordPress version: 5.8.1
  • First release: Sep 12, 2013
  • Latest release: Sep 12, 2013
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: jjeaton (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 587 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼276.12ms] Passed 4 tests

Server-side resources used by Redirect Front-end
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.26 ▲13.45
Dashboard /wp-admin3.07 ▲0.0144.68 ▼0.49
Posts /wp-admin/edit.php3.12 ▲0.0147.96 ▲4.17
Add New Post /wp-admin/post-new.php5.43 ▼0.0083.84 ▼1,098.05
Media Library /wp-admin/upload.php3.01 ▲0.0030.08 ▼10.11

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Redirect Front-end
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,650 ▲4416.26 ▲0.788.10 ▲0.5744.73 ▼4.33
Dashboard /wp-admin2,928 ▲786.06 ▲0.18142.96 ▲10.37106.64 ▲7.31
Posts /wp-admin/edit.php2,706 ▼02.68 ▼0.0066.86 ▲2.5993.21 ▲3.63
Add New Post /wp-admin/post-new.php1,564 ▼28718.28 ▲0.40350.20 ▼18.99108.00 ▼4.09
Media Library /wp-admin/upload.php1,787 ▲124.97 ▼0.05148.82 ▼7.45115.03 ▲0.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: redirect, frontend, hide, backend, access...

redirect-front-end/redirect-front-end.php 92% from 13 tests

"Redirect Front-end" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/lang" does not exist

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
Success! There were no dangerous files found in this plugin28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1178828

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin