84% forget-username-ajax

Code Review | Forgot Username - ajax

WordPress plugin Forgot Username - ajax scored84%from 54 tests.

About plugin

  • Plugin page: forget-username-ajax
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.3
  • WordPress version: 6.3.1
  • First release: Apr 29, 2014
  • Latest release: Nov 14, 2017
  • Number of updates: 45
  • Update frequency: every 29.2 days
  • Top authors: aRCkimial (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /1,433 total downloads

Benchmarks

Plugin footprint 82% 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.04MB] [CPU: ▼6.38ms] Passed 4 tests

This is a short check of server-side resources used by Forgot Username - ajax
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.04 ▲3.79
Dashboard /wp-admin3.36 ▲0.0146.98 ▼15.03
Posts /wp-admin/edit.php3.41 ▲0.0551.43 ▼4.52
Add New Post /wp-admin/post-new.php5.94 ▲0.0595.32 ▼9.77
Media Library /wp-admin/upload.php3.28 ▲0.0547.32 ▲12.63
Forgot Username /wp-admin/options-general.php?page=fu-menu-options3.2533.13

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/forget-username-ajax/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 7 new files
Database: no new tables, 14 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
fu_mail_success
fu_mail_subject
fu_mail_footer
widget_recent-posts
fu_mail_header
fu_mail_email_not_exist
db_upgraded
...

Browser metrics Passed 4 tests

Checking browser requirements for Forgot Username - ajax
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.26 ▼1.302.60 ▲0.8139.94 ▼5.95
Dashboard /wp-admin2,227 ▲304.85 ▼1.01107.35 ▼0.2940.67 ▼1.95
Posts /wp-admin/edit.php2,106 ▲32.05 ▲0.0641.19 ▲0.6134.85 ▼2.87
Add New Post /wp-admin/post-new.php1,685 ▲15322.39 ▼0.86639.01 ▲23.7151.68 ▼1.66
Media Library /wp-admin/upload.php1,406 ▲64.18 ▼0.0996.35 ▼7.9643.35 ▼3.04
Forgot Username /wp-admin/options-general.php?page=fu-menu-options9102.0222.4331.67

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
  • This plugin does not fully uninstall, leaving 14 options in the database
    • fu_mail_header
    • fu_mail_body_lbl
    • fu_mail_success
    • fu_mail_footer
    • widget_recent-posts
    • widget_theysaidso_widget
    • fu_submit_val
    • theysaidso_admin_options
    • fu_mail_error
    • fu_mail_email_not_exist
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 items
  • 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/forget-username-ajax/forget-username.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: forgot username form, forgot username, plugin, widget, forgot username - ajax

forget-username-ajax/forget-username.php 92% from 13 tests

The main file in "Forgot Username - ajax" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("forget-username-ajax.php" instead of "forget-username.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
Success! There were no dangerous files found in this plugin204 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1329195
CSS2008
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions9
▷ Named functions9100.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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png1.55KB0.93KB▼ 39.92%
screenshot-1.png35.14KB16.97KB▼ 51.70%