94% add-profile-nicename

Code Review | Add Profile Nicename by Webone

WordPress plugin Add Profile Nicename by Webone scored 94% from 54 tests.

About plugin

  • Plugin page: add-profile-nicename
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 5.8.1
  • First release: Feb 25, 2022
  • Latest release: Feb 25, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: webonesd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 33 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼149.12ms] Passed 4 tests

Server-side resources used by Add Profile Nicename by Webone
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0123.29 ▲3.40
Dashboard /wp-admin3.06 ▲0.0030.63 ▼7.72
Posts /wp-admin/edit.php3.12 ▲0.0132.36 ▲2.59
Add New Post /wp-admin/post-new.php5.43 ▼0.0169.02 ▼590.15
Media Library /wp-admin/upload.php3.01 ▲0.0022.73 ▼1.18

Server storage [IO: ▲0.01MB] [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: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Add Profile Nicename by Webone
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲4015.62 ▼0.386.80 ▲1.2376.68 ▼0.12
Dashboard /wp-admin2,926 ▲276.09 ▼0.03115.08 ▼19.76165.37 ▼10.55
Posts /wp-admin/edit.php2,737 ▼63.23 ▼0.0164.60 ▲0.42136.67 ▼6.33
Add New Post /wp-admin/post-new.php3,813 ▲619.14 ▲0.58411.21 ▼30.58161.05 ▼14.12
Media Library /wp-admin/upload.php1,752 ▼05.51 ▼0.03136.77 ▲1.44185.08 ▲3.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-profile-nicename/add_profile_nicename.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (add nicename) image missing
Please take inspiration from this readme.txt

add-profile-nicename/add_profile_nicename.php 92% from 13 tests

Analyzing the main PHP file in "Add Profile Nicename by Webone" version 1.0.0
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-profile-nicename.php" instead of "add_profile_nicename.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected50 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png5.00KB3.17KB▼ 36.63%