94% disable-author-archive-redirection

Code Review | Disable Author Archive Redirection

WordPress plugin Disable Author Archive Redirection scored 94% from 54 tests.

About plugin

  • Plugin page: disable-author-ar...
  • Plugin version: 2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.8.1
  • First release: Mar 11, 2020
  • Latest release: Jul 9, 2021
  • Number of updates: 8
  • Update frequency: every 60.7 days
  • Top authors: kimipooh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 325 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼143.06ms] Passed 4 tests

An overview of server-side resources used by Disable Author Archive Redirection
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1536.73 ▲15.46
Dashboard /wp-admin3.09 ▲0.0444.58 ▼1.02
Posts /wp-admin/edit.php3.14 ▲0.0446.42 ▲6.13
Add New Post /wp-admin/post-new.php5.45 ▲0.0288.71 ▼575.39
Media Library /wp-admin/upload.php3.03 ▲0.0332.23 ▼1.95
Disable Author Archive Redirection Settings /wp-admin/options-general.php?page=disable-author-archive-redirection/includes/admin.php3.0030.58

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Author Archive Redirection
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲10215.93 ▲0.209.55 ▼0.5844.73 ▼3.20
Dashboard /wp-admin2,997 ▲665.99 ▼0.01132.17 ▼8.66111.81 ▼0.61
Posts /wp-admin/edit.php2,744 ▲52.71 ▼0.0067.69 ▲2.6293.82 ▼1.56
Add New Post /wp-admin/post-new.php1,503 ▼16918.56 ▼0.29386.99 ▲19.69108.64 ▲2.66
Media Library /wp-admin/upload.php1,815 ▲85.03 ▼0.01149.82 ▼9.02121.07 ▲3.78
Disable Author Archive Redirection Settings /wp-admin/options-general.php?page=disable-author-archive-redirection/includes/admin.php1,1092.0860.8466.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/disable-author-archive-redirection/disable-author-archive-redirection.php:25

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: author, security

disable-author-archive-redirection/disable-author-archive-redirection.php 92% from 13 tests

Analyzing the main PHP file in "Disable Author Archive Redirection" version 2.0
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected261 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33731261

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.68
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin