84% wp-custom-author-url

Code Review | WP Custom Author URL

WordPress plugin WP Custom Author URL scored84%from 54 tests.

About plugin

  • Plugin page: wp-custom-author-url
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: May 3, 2019
  • Latest release: Apr 5, 2023
  • Number of updates: 28
  • Update frequency: every 51.2 days
  • Top authors: chrisjallen (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

3,000+ active /11,715 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.09MB] [CPU: ▼9.17ms] Passed 4 tests

An overview of server-side resources used by WP Custom Author URL
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.64 ▼1.49
Dashboard /wp-admin3.40 ▲0.0549.05 ▼15.30
Posts /wp-admin/edit.php3.51 ▲0.1652.17 ▼1.17
Add New Post /wp-admin/post-new.php6.00 ▲0.1185.25 ▼18.70
Media Library /wp-admin/upload.php3.32 ▲0.0935.36 ▲0.15
Custom Author URL /wp-admin/options-general.php?page=wp-custom-author-url-settings3.2934.69

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Custom Author URL
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,787 ▲4114.36 ▲0.011.70 ▼0.0238.99 ▼5.41
Dashboard /wp-admin2,193 ▲295.66 ▲0.06100.85 ▲0.5640.24 ▼1.37
Posts /wp-admin/edit.php2,108 ▲82.03 ▲0.0235.50 ▼6.6033.88 ▼6.00
Add New Post /wp-admin/post-new.php1,542 ▲1618.15 ▼5.57650.23 ▼2.1266.72 ▲10.73
Media Library /wp-admin/upload.php1,405 ▲84.20 ▲0.01101.75 ▼0.9945.69 ▼1.34
Custom Author URL /wp-admin/options-general.php?page=wp-custom-author-url-settings8172.0326.9744.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-custom-author-url/admin/partials/wp-custom-author-url-admin-display.php
    • > /wp-content/plugins/wp-custom-author-url/public/partials/wp-custom-author-url-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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
7 plugin tags: author url, custom link, profile url, banner, profile...

wp-custom-author-url/wp-custom-author-url.php Passed 13 tests

The main PHP file in "WP Custom Author URL" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
89 characters long description:
Choose a custom URL for your author links, instead of the standard WordPress author page.

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
Everything looks great! No dangerous files found in this plugin360 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13180650346
CSS2188
JavaScript24546

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3188.57%
▷ Protected methods00.00%
▷ Private methods411.43%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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