84% redirect-author-pages

Code Review | Redirect Author Pages

WordPress plugin Redirect Author Pages scored84%from 54 tests.

About plugin

  • Plugin page: redirect-author-p...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 25, 2021
  • Latest release: Mar 28, 2023
  • Number of updates: 8
  • Update frequency: every 84.1 days
  • Top authors: arulprasadj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /995 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Redirect Author Pages
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.77 ▼6.11
Dashboard /wp-admin3.32 ▲0.0145.45 ▼1.59
Posts /wp-admin/edit.php3.37 ▲0.0148.27 ▲1.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.41 ▲0.29
Media Library /wp-admin/upload.php3.24 ▲0.0132.47 ▼6.26
Redirect Author Pages /wp-admin/options-general.php?page=redirect-author-pages/public/core-redirect-author-pages.php3.2233.29

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Redirect Author Pages
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.341.55 ▼0.1243.57 ▲4.98
Dashboard /wp-admin2,210 ▲224.86 ▼0.02107.50 ▲4.7941.74 ▲1.91
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0638.31 ▲1.8639.38 ▲5.24
Add New Post /wp-admin/post-new.php1,535 ▲918.31 ▼5.09602.91 ▼70.5162.34 ▲6.89
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.1594.90 ▼13.2544.47 ▼2.55
Redirect Author Pages /wp-admin/options-general.php?page=redirect-author-pages/public/core-redirect-author-pages.php8642.0325.2225.97

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-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 register_uninstall_hook() in wp-content/plugins/redirect-author-pages/redirect-author-pages.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

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

The main file in "Redirect Author Pages" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/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
Success! There were no dangerous files found in this plugin152 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32374152

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods888.89%
▷ Public methods9100.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin