94% no-author-redirect

Code Review | No Author Redirect

WordPress plugin No Author Redirect scored 94% from 54 tests.

About plugin

  • Plugin page: no-author-redirect
  • Plugin version: 1.0.3
  • PHP compatiblity: 4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-5.0
  • WordPress version: 5.8.1
  • First release: Aug 2, 2018
  • Latest release: Feb 15, 2019
  • Number of updates: 17
  • Update frequency: every 11.6 days
  • Top authors: keithws (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 419 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by No Author Redirect
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.46 ▲15.77
Dashboard /wp-admin3.06 ▲0.0140.85 ▼3.12
Posts /wp-admin/edit.php3.11 ▲0.0143.27 ▼1.32
Add New Post /wp-admin/post-new.php5.43 ▼0.0091.39 ▼559.32
Media Library /wp-admin/upload.php3.01 ▼0.0032.08 ▼6.15

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

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

Browser metrics Passed 4 tests

A check of browser resources used by No Author Redirect
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.90 ▲0.3911.13 ▲2.7851.27 ▲5.11
Dashboard /wp-admin2,967 ▲365.89 ▼0.06133.04 ▼9.65119.99 ▲8.23
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0164.33 ▼0.5088.44 ▲4.97
Add New Post /wp-admin/post-new.php1,872 ▲18919.17 ▲0.69376.30 ▲28.77108.46 ▼9.39
Media Library /wp-admin/upload.php1,810 ▲35.01 ▲0.02149.10 ▼8.24114.99 ▼4.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/no-author-redirect/no-author-redirect.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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: author, security, redirect

no-author-redirect/no-author-redirect.php 92% from 13 tests

The principal PHP file in "No Author Redirect" v. 1.0.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 191 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16198

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 code1.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin