90% simply-change-author-url

Code Review | Simply Change Author URL

WordPress plugin Simply Change Author URL scored90%from 54 tests.

About plugin

  • Plugin page: simply-change-aut...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Jun 15, 2020
  • Latest release: Jul 25, 2022
  • Number of updates: 6
  • Update frequency: every 129.0 days
  • Top authors: dev_vahid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /921 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.17ms] Passed 4 tests

A check of server-side resources used by Simply Change Author URL
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.29 ▼5.17
Dashboard /wp-admin3.34 ▲0.0444.48 ▼7.59
Posts /wp-admin/edit.php3.39 ▲0.0448.01 ▲0.72
Add New Post /wp-admin/post-new.php5.92 ▲0.0491.07 ▼8.21
Media Library /wp-admin/upload.php3.26 ▲0.0435.79 ▲0.30

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Simply Change Author URL
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.54 ▼0.711.65 ▼0.1341.08 ▼2.51
Dashboard /wp-admin2,209 ▲355.84 ▲0.96101.60 ▼15.9540.41 ▼9.04
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0139.22 ▲3.2134.38 ▲0.61
Add New Post /wp-admin/post-new.php1,514 ▼623.27 ▲0.24606.21 ▼51.8756.75 ▲3.00
Media Library /wp-admin/upload.php1,382 ▼64.20 ▼0.0395.59 ▼0.1340.76 ▼0.67

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
9 plugin tags: author, slug, permalinks, author slug, author base...

simply-change-author-url/simply-change-author-url.php Passed 13 tests

The main PHP file in "Simply Change Author URL" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
100 characters long description:
Changes wordpress user slug for security, no one can see username of people registered on your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin126 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP533190126

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
No PNG files were detected