90% change-author-link-structure

Code Review | Change Author Link Structure

WordPress plugin Change Author Link Structure scored90%from 54 tests.

About plugin

  • Plugin page: change-author-lin...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 5, 2015
  • Latest release: May 9, 2023
  • Number of updates: 22
  • Update frequency: every 137.0 days
  • Top authors: wpyb (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /6,947 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.05MB] [CPU: ▼9.38ms] Passed 4 tests

A check of server-side resources used by Change Author Link Structure
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.44 ▼3.22
Dashboard /wp-admin3.37 ▲0.0249.51 ▼16.55
Posts /wp-admin/edit.php3.42 ▲0.0751.53 ▼1.57
Add New Post /wp-admin/post-new.php5.95 ▲0.0688.13 ▼16.16
Media Library /wp-admin/upload.php3.29 ▲0.0639.84 ▲2.68
Change Author Link Structure /wp-admin/options-general.php?page=cals_settings3.2531.63

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
cals_author_base
widget_recent-posts
db_upgraded
cals_version
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Change Author Link Structure
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.69 ▼1.001.74 ▼0.1441.93 ▼6.49
Dashboard /wp-admin2,228 ▲254.85 ▼0.08108.00 ▲1.9439.54 ▼3.84
Posts /wp-admin/edit.php2,104 ▲12.00 ▲0.0341.67 ▲0.0439.82 ▲2.47
Add New Post /wp-admin/post-new.php1,550 ▼423.11 ▲4.72624.57 ▼36.9751.95 ▼0.85
Media Library /wp-admin/upload.php1,404 ▲104.22 ▲0.0398.56 ▼2.3243.90 ▼1.97
Change Author Link Structure /wp-admin/options-general.php?page=cals_settings7852.0326.2026.31

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • cals_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: author slug, userid, author, permalink, author base...

change-author-link-structure/change-author-link-structure.php Passed 13 tests

This is the main PHP file of "Change Author Link Structure" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
122 characters long description:
To prevent that usernames are publically visible, the username in the author's permalink is replaced with the author's ID.

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
Everything looks great! No dangerous files found in this plugin283 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP370170283

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity20.50
▷ Minimum class complexity3.00
▷ Maximum class complexity38.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods433.33%
▷ Public methods12100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected