89% wp-nssuser-register

Code Review | Wp NssUser Register

WordPress plugin Wp NssUser Register scored89%from 54 tests.

About plugin

  • Plugin page: wp-nssuser-register
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-5.6.2
  • WordPress version: 6.3.1
  • First release: Aug 30, 2016
  • Latest release: Feb 28, 2021
  • Number of updates: 23
  • Update frequency: every 71.4 days
  • Top authors: saiful.total (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /637 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.02MB] [CPU: ▼3.67ms] Passed 4 tests

Server-side resources used by Wp NssUser Register
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0247.61 ▲6.42
Dashboard /wp-admin3.32 ▲0.0249.46 ▼3.29
Posts /wp-admin/edit.php3.37 ▲0.0244.82 ▼4.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.56 ▼5.07
Media Library /wp-admin/upload.php3.25 ▲0.0235.39 ▼1.39
Registration Setting Wp /wp-admin/options-general.php?page=nss-reg-setting-admin3.2129.27

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wp NssUser Register
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲12414.22 ▼0.1321.33 ▲19.3841.89 ▼0.70
Dashboard /wp-admin2,202 ▲225.63 ▲0.0485.70 ▼8.0642.85 ▲0.02
Posts /wp-admin/edit.php2,104 ▲12.01 ▲0.0736.85 ▼0.0932.44 ▼6.82
Add New Post /wp-admin/post-new.php1,531 ▼023.41 ▲0.18704.44 ▲11.3757.17 ▼4.65
Media Library /wp-admin/upload.php1,407 ▲74.28 ▲0.0697.40 ▼15.6241.70 ▼3.92
Registration Setting Wp /wp-admin/options-general.php?page=nss-reg-setting-admin7961.9925.4927.17

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: "#"
Please take inspiration from this readme.txt

wp-nssuser-register/nssUser_Register.php 85% from 13 tests

Analyzing the main PHP file in "Wp NssUser Register" version 1.0.0
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 ("wp-nssuser-register.php" instead of "nssUser_Register.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin459 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP53742325
JavaScript191381
CSS10753

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.67
▷ Minimum class complexity3.00
▷ Maximum class complexity11.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin