10% wp-nice-login

Code Review | WordPress Nice Login

WordPress plugin WordPress Nice Login scored10%from 54 tests.

About plugin

  • Plugin page: wp-nice-login
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2017
  • Latest release: Apr 8, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: zworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /482 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/wp-nice-login/nice-login.php+619
    syntax error, unexpected end of file

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

A check of server-side resources used by WordPress Nice Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.19 ▼4.80
Dashboard /wp-admin3.31 ▲0.0047.99 ▼2.82
Posts /wp-admin/edit.php3.36 ▲0.0044.84 ▼1.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.43 ▼8.14
Media Library /wp-admin/upload.php3.23 ▲0.0033.05 ▲3.68

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Nice Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.531.79 ▼0.0145.00 ▲0.12
Dashboard /wp-admin2,206 ▲185.91 ▲1.02111.23 ▼5.8847.51 ▲4.29
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0235.11 ▼0.7433.68 ▼0.34
Add New Post /wp-admin/post-new.php1,514 ▼017.59 ▲0.08692.37 ▼4.4748.15 ▼10.55
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0294.87 ▼10.6943.39 ▼0.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/wp-nice-login/nice-login.php on line 619

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: nice login, ajax, ajax login, login popup, redirect...

wp-nice-login/nice-login.php 77% from 13 tests

The entry point to "WordPress Nice Login" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • 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
  • Requires at least: Required version does not match the one declared in readme.txt ("3.7" instead of "4.0")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-nice-login.php" instead of "nice-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,119 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP112840450
PO File2120168277
CSS140221
JavaScript1460171

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/x.png1.95KB1.63KB▼ 16.84%