84% send-password-instead-of-email-by-nexgi-com

Code Review | Send Password Instead of Email by nexgi.com

WordPress plugin Send Password Instead of Email by nexgi.com scored84%from 54 tests.

About plugin

  • Plugin page: send-password-ins...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Dec 21, 2021
  • Latest release: Dec 21, 2021
  • Number of updates: 2
  • Update frequency: every 38.5 days
  • Top authors: anup594 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,697 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Send Password Instead of Email by nexgi.com
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.80 ▲2.31
Dashboard /wp-admin3.32 ▼0.0349.43 ▼12.10
Posts /wp-admin/edit.php3.37 ▲0.0152.89 ▲1.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.11 ▼18.39
Media Library /wp-admin/upload.php3.24 ▲0.0135.50 ▼3.27

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Send Password Instead of Email by nexgi.com
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.75 ▲0.371.92 ▲0.2443.91 ▲2.46
Dashboard /wp-admin2,198 ▲215.61 ▼0.0992.82 ▲4.2144.18 ▲2.68
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0440.21 ▼0.5835.26 ▼4.05
Add New Post /wp-admin/post-new.php1,535 ▲423.27 ▲0.05643.95 ▼8.5155.53 ▼6.07
Media Library /wp-admin/upload.php1,394 ▼34.24 ▲0.0199.71 ▼0.0346.25 ▲2.64

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/send-password-instead-of-email-by-nexgi-com/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: send pass in welcome email, stop sending reset link on new user, send password on new user registration

send-password-instead-of-email-by-nexgi-com/index.php 92% from 13 tests

The principal PHP file in "Send Password Instead of Email by nexgi.com" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("send-password-instead-of-email-by-nexgi-com.php" instead of "index.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
Success! There were no dangerous files found in this plugin31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111231

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
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 functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin