83% user-register-from-csv

Code Review | User Register From CSV

WordPress plugin User Register From CSV scored83%from 54 tests.

About plugin

  • Plugin page: user-register-fro...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Jul 26, 2022
  • Latest release: Jul 26, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: sarequl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /811 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.31ms] Passed 4 tests

An overview of server-side resources used by User Register From CSV
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.90 ▼3.28
Dashboard /wp-admin3.32 ▲0.0148.56 ▼9.17
Posts /wp-admin/edit.php3.37 ▲0.0149.19 ▼1.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.91 ▼23.61
Media Library /wp-admin/upload.php3.24 ▲0.0134.63 ▼0.44
Register From CSV /wp-admin/users.php?page=user_register_from_csv3.2130.77

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for User Register From CSV
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.20 ▼0.121.65 ▼0.3443.07 ▼9.83
Dashboard /wp-admin2,199 ▲225.55 ▼0.0386.10 ▼7.5939.68 ▼7.09
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0241.26 ▼0.4838.35 ▲2.62
Add New Post /wp-admin/post-new.php1,538 ▲1018.06 ▼5.06607.75 ▼21.1265.47 ▲13.70
Media Library /wp-admin/upload.php1,401 ▲14.20 ▼0.01101.99 ▼5.7348.06 ▲0.38
Register From CSV /wp-admin/users.php?page=user_register_from_csv8061.9924.5330.83

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-register-from-csv/admin/admin_options.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: Screenshot #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif).) image required
Please take inspiration from this readme.txt

user-register-from-csv/wpuser_register_csv.php 85% from 13 tests

Analyzing the main PHP file in "User Register From CSV" version 1.0.0
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 205 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("user-register-from-csv.php" instead of "wpuser_register_csv.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected116 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36036116

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin