84% extra-authors-redirect

Code Review | Extra Authors Redirect

WordPress plugin Extra Authors Redirect scored84%from 54 tests.

About plugin

  • Plugin page: extra-authors-red...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9
  • WordPress version: 6.3.1
  • First release: Mar 4, 2013
  • Latest release: Apr 30, 2014
  • Number of updates: 8
  • Update frequency: every 52.7 days
  • Top authors: norcross (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,690 total downloads

Benchmarks

Plugin footprint 83% from 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.95ms] Passed 4 tests

Analyzing server-side resources used by Extra Authors Redirect
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.13 ▲0.60
Dashboard /wp-admin3.33 ▲0.0254.16 ▲4.26
Posts /wp-admin/edit.php3.38 ▲0.0250.73 ▲0.38
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.04 ▼2.25
Media Library /wp-admin/upload.php3.25 ▲0.0236.16 ▼2.53

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Extra Authors Redirect
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼0.971.71 ▼0.0043.52 ▲0.22
Dashboard /wp-admin2,206 ▲154.84 ▼0.02111.10 ▲2.9139.94 ▼2.08
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0043.21 ▲1.3234.52 ▼3.72
Add New Post /wp-admin/post-new.php1,542 ▲2323.46 ▲0.17611.40 ▼66.3756.35 ▲2.21
Media Library /wp-admin/upload.php1,385 ▼34.29 ▲0.16110.69 ▼7.0748.44 ▲2.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extra-authors-redirect/extra-authors-redirect.php:43

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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: authors, author-page, redirects

extra-authors-redirect/extra-authors-redirect.php Passed 13 tests

The main PHP file in "Extra Authors Redirect" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
47 characters long description:
Adds a checkbox to author profiles to redirect.

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
Good job! No executable or dangerous file extensions detected91 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1447373
PO File12218

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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