78% user-rename-by-azed

Code Review | User Rename by Azed

WordPress plugin User Rename by Azed scored78%from 54 tests.

About plugin

  • Plugin page: user-rename-by-azed
  • Plugin version: 0.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.6
  • WordPress version: 6.3.1
  • First release: Jul 8, 2016
  • Latest release: Jul 28, 2016
  • Number of updates: 28
  • Update frequency: every 0.7 days
  • Top authors: azeddev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /936 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.77ms] Passed 4 tests

A check of server-side resources used by User Rename by Azed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0743.73 ▲1.89
Dashboard /wp-admin3.38 ▲0.0745.97 ▼9.90
Posts /wp-admin/edit.php3.43 ▲0.0749.19 ▼2.09
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.30 ▼8.62
Media Library /wp-admin/upload.php3.30 ▲0.0739.93 ▲1.52
Change user slug /wp-admin/users.php?page=AzedUserRename3.3235.78

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for User Rename by Azed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.34 ▼0.001.77 ▼0.5444.71 ▲0.93
Dashboard /wp-admin2,199 ▲225.51 ▼0.0884.01 ▼17.2136.93 ▼7.08
Posts /wp-admin/edit.php2,104 ▲72.02 ▼0.1136.36 ▲1.2833.24 ▼1.21
Add New Post /wp-admin/post-new.php1,531 ▲523.16 ▼0.27658.88 ▼16.0064.88 ▲12.48
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.1195.84 ▼21.0242.89 ▼5.22
Change user slug /wp-admin/users.php?page=AzedUserRename9531.9626.6028.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/users.php?page=AzedUserRename
    • > Notice in wp-content/plugins/user-rename-by-azed/azeduserrename.php+177
    Undefined index: userListSelector

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-rename-by-azed/azeduserrename.php:233

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: profile, user, azed, rename

user-rename-by-azed/azeduserrename.php 92% from 13 tests

This is the main PHP file of "User Rename by Azed" version 0.4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("user-rename-by-azed.php" instead of "azeduserrename.php")

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
There were no executable files found in this plugin320 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP12915193
PO File23838108
CSS112219

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity5.62
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods337.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.45MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png29.24KB11.20KB▼ 61.70%
assets/screenshot-6.png8.71KB3.91KB▼ 55.14%
assets/screenshot-5.png8.06KB3.69KB▼ 54.23%
assets/icon-128x128.png14.86KB5.89KB▼ 60.39%
assets/screenshot-3.png50.44KB18.74KB▼ 62.86%