84% user-importer-and-generator

Code Review | User Generator and Importer

WordPress plugin User Generator and Importer scored84%from 54 tests.

About plugin

  • Plugin page: user-importer-and...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Nov 25, 2013
  • Latest release: Jun 4, 2014
  • Number of updates: 14
  • Update frequency: every 13.6 days
  • Top authors: vinoth06 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /3,056 total downloads


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
Install script ran successfully

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

An overview of server-side resources used by User Generator and Importer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.79 ▼5.00
Dashboard /wp-admin3.34 ▼0.0147.93 ▼9.22
Posts /wp-admin/edit.php3.39 ▲0.0348.14 ▼3.09
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.99 ▼19.92
Media Library /wp-admin/upload.php3.26 ▲0.0337.50 ▼0.23

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for User Generator and Importer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4513.32 ▼1.062.17 ▲0.2848.18 ▲4.64
Dashboard /wp-admin2,222 ▲344.84 ▼1.01106.42 ▲4.1140.13 ▼1.60
Posts /wp-admin/edit.php2,102 ▲131.99 ▼0.0236.55 ▼4.8132.64 ▼5.75
Add New Post /wp-admin/post-new.php1,527 ▲717.71 ▼5.39700.25 ▼5.1955.46 ▲5.30
Media Library /wp-admin/upload.php1,404 ▲164.25 ▲0.0898.57 ▼5.5443.55 ▼3.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-importer-and-generator/user-generator.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Option Page), #2 (User created page)
Please take inspiration from this readme.txt

user-importer-and-generator/user-generator.php 92% from 13 tests

The main file in "User Generator and Importer" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("user-importer-and-generator.php" instead of "user-generator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin201 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banner-772x225.png65.96KB19.96KB▼ 69.74%
screenshot-1.png28.86KB11.50KB▼ 60.16%
screenshot-2.png31.48KB12.86KB▼ 59.14%