78% edit-usernames

Code Review | Edit Usernames

WordPress plugin Edit Usernames scored 78% from 54 tests.

About plugin

  • Plugin page: edit-usernames
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9
  • WordPress version: 6.3.1
  • First release: Oct 29, 2019
  • Latest release: May 3, 2022
  • Number of updates: 9
  • Update frequency: every 102.3 days
  • Top authors: MillerMediaNow (88.89%)millermediadev (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,138 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.22ms] Passed 4 tests

Server-side resources used by Edit Usernames
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.15 ▼3.88
Dashboard /wp-admin3.35 ▲0.0551.12 ▲2.57
Posts /wp-admin/edit.php3.40 ▲0.0450.38 ▲1.31
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.67 ▼8.38
Media Library /wp-admin/upload.php3.27 ▲0.0433.93 ▼1.94
Edit Usernames /wp-admin/options-general.php?page=eun_settings3.2427.66

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
eun_setting_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 Edit Usernames
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.25 ▼1.131.61 ▼0.8944.28 ▼0.60
Dashboard /wp-admin2,206 ▲156.03 ▲0.15106.12 ▼11.6238.88 ▼8.58
Posts /wp-admin/edit.php2,095 ▲32.02 ▼0.0140.19 ▼1.0136.30 ▲1.49
Add New Post /wp-admin/post-new.php1,519 ▼217.66 ▼5.75678.56 ▼11.1861.97 ▼0.11
Media Library /wp-admin/upload.php1,394 ▲64.19 ▼0.0294.06 ▼19.6439.58 ▼6.63
Edit Usernames /wp-admin/options-general.php?page=eun_settings7832.0723.7627.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • eun_setting_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/edit-usernames/inc/edit-usernames.php
    • > /wp-content/plugins/edit-usernames/inc/helpers.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/edit-usernames/plugin.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edit-usernames/inc/settings.php:10

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Pencil/edit icon in user edit screen)
Please take inspiration from this readme.txt

edit-usernames/plugin.php 92% from 13 tests

"Edit Usernames" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("edit-usernames.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected242 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP45051209
JavaScript37333

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity18.50
▷ Minimum class complexity13.00
▷ Maximum class complexity24.00
Average method complexity5.38
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 images were found in this plugin