89% nomorepass-forget-your-passwords

Code Review | NoMorePass Login

WordPress plugin NoMorePass Login scored 89% from 54 tests.

About plugin

  • Plugin page: nomorepass-forget...
  • Plugin version: 1.10.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2017
  • Latest release: Aug 27, 2022
  • Number of updates: 37
  • Update frequency: every 53.8 days
  • Top authors: yoprogramo (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

90+ active / 4,064 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.03MB] [CPU: ▼5.07ms] Passed 4 tests

A check of server-side resources used by NoMorePass Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.44 ▼7.74
Dashboard /wp-admin3.35 ▲0.0453.75 ▲4.42
Posts /wp-admin/edit.php3.44 ▲0.0848.40 ▲2.17
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.47 ▼18.79
Media Library /wp-admin/upload.php3.25 ▲0.0234.97 ▲4.08

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

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

Browser metrics Passed 4 tests

Checking browser requirements for NoMorePass Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,016 ▲28115.09 ▲0.852.62 ▲0.8645.31 ▲1.10
Dashboard /wp-admin2,364 ▲1736.45 ▲1.56115.40 ▲9.7040.80 ▼4.20
Posts /wp-admin/edit.php2,270 ▲1843.46 ▲1.4543.78 ▲8.4230.03 ▼6.74
Add New Post /wp-admin/post-new.php1,544 ▲1623.24 ▲4.75629.11 ▲24.0636.74 ▼13.93
Media Library /wp-admin/upload.php1,397 ▲94.14 ▼0.0678.19 ▼16.1341.29 ▼1.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

nomorepass-forget-your-passwords/nomorepass.php 85% from 13 tests

The main PHP file in "NoMorePass Login" ver. 1.10.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("nomorepass-forget-your-passwords.php" instead of "nomorepass.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,527 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript578149666
PHP13128534
PO File4112139327

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity47.00
▷ Minimum class complexity47.00
▷ Maximum class complexity47.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods1184.62%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/ico-36.png1.89KB1.38KB▼ 26.99%
public/images/login-banner-appstore-en.png21.24KB7.61KB▼ 64.15%
public/images/logo-entrada-nomorepass.png5.58KB2.91KB▼ 47.80%
public/images/ico-128.png4.82KB3.22KB▼ 33.29%
public/images/login-banner-googlestore-en.png14.57KB5.58KB▼ 61.71%