84% live-username-availability-checking

Code Review | Live username availability checking

WordPress plugin Live username availability checking scored84%from 54 tests.

About plugin

  • Plugin page: live-username-ava...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-3.9.2
  • WordPress version: 6.3.1
  • First release: Mar 24, 2014
  • Latest release: Aug 25, 2014
  • Number of updates: 7
  • Update frequency: every 22.6 days
  • Top authors: Zvere (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.33ms] Passed 4 tests

A check of server-side resources used by Live username availability checking
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0145.14 ▲2.36
Dashboard /wp-admin3.32 ▲0.0150.93 ▼0.83
Posts /wp-admin/edit.php3.37 ▲0.0152.57 ▲4.65
Add New Post /wp-admin/post-new.php5.90 ▲0.0199.36 ▲0.74
Media Library /wp-admin/upload.php3.24 ▲0.0136.24 ▼0.94

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Live username availability checking
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.77 ▲0.482.12 ▲0.4643.92 ▲2.84
Dashboard /wp-admin2,198 ▲215.59 ▼0.0689.38 ▼3.9741.96 ▼0.16
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0435.21 ▼5.3437.10 ▲2.09
Add New Post /wp-admin/post-new.php1,541 ▲1324.87 ▲1.53628.30 ▼33.4671.40 ▲15.73
Media Library /wp-admin/upload.php1,406 ▲94.19 ▼0.05101.64 ▼1.1943.43 ▲0.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 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/live-username-availability-checking/username_check.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: checking, check, user, new, availability...

live-username-availability-checking/username_check.php 92% from 13 tests

The main PHP file in "Live username availability checking" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("live-username-availability-checking.php" instead of "username_check.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1 line of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
invalid.png3.30KB0.54KB▼ 83.61%
valid.png3.24KB0.59KB▼ 81.90%