10% wp-quick-username-update

Code Review | Quick User Profile Update

WordPress plugin Quick User Profile Update scored 10% from 54 tests.

About plugin

  • Plugin page: wp-quick-username...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 5.8.1
  • First release: Apr 26, 2018
  • Latest release: Jun 5, 2018
  • Number of updates: 5
  • Update frequency: every 8.0 days
  • Top authors: oremtech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 346 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-quick-username-update/wmamc-quick-update-username.php+265
    Non-static method WMAMC_wp_quick_update_username::WMAMC_wp_quick_update_username_instance() should not be called statically

Server metrics [RAM: ▼1.83MB] [CPU: ▼189.56ms] Passed 4 tests

A check of server-side resources used by Quick User Profile Update
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼0.925.49 ▼19.16
Dashboard /wp-admin1.82 ▼1.235.91 ▼34.20
Posts /wp-admin/edit.php1.82 ▼1.286.65 ▼40.31
Add New Post /wp-admin/post-new.php1.82 ▼3.615.41 ▼647.67
Media Library /wp-admin/upload.php1.82 ▼1.196.60 ▼36.07

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Quick User Profile Update
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10716.05 ▲0.527.33 ▼1.1846.48 ▼8.01
Dashboard /wp-admin2,992 ▲585.92 ▼0.04144.66 ▼42.25118.30 ▼11.81
Posts /wp-admin/edit.php2,739 ▲32.68 ▼0.0366.21 ▼3.2499.80 ▲4.03
Add New Post /wp-admin/post-new.php1,511 ▼17218.90 ▲0.91381.38 ▲5.13110.88 ▲1.89
Media Library /wp-admin/upload.php1,810 ▲35.00 ▼0.01145.15 ▼19.78123.59 ▼15.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/wp-quick-username-update/wmamc-quick-update-username.php+265
    Non-static method WMAMC_wp_quick_update_username::WMAMC_wp_quick_update_username_instance() should not be called statically

Smoke tests 75% from 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 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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _get_list_table() in wp-content/plugins/wp-quick-username-update/views/quick-edit-view.php:11

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)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

wp-quick-username-update/wmamc-quick-update-username.php 77% from 13 tests

The primary PHP file in "Quick User Profile Update" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "4.4")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-quick-username-update.php" instead of "wmamc-quick-update-username.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Good job! No executable or dangerous file extensions detected448 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP212321230
JavaScript21068186
CSS16132

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin