90% lorem-user-generator

Code Review | Lorem User Generator

WordPress plugin Lorem User Generator scored90%from 54 tests.

About plugin

  • Plugin page: lorem-user-generator
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 28, 2017
  • Latest release: Apr 24, 2018
  • Number of updates: 7
  • Update frequency: every 17.0 days
  • Top authors: deenison (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /2,020 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.99ms] Passed 4 tests

A check of server-side resources used by Lorem User Generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.17 ▲1.71
Dashboard /wp-admin3.38 ▲0.0851.95 ▼2.41
Posts /wp-admin/edit.php3.49 ▲0.1450.70 ▼8.98
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.37 ▼5.48
Media Library /wp-admin/upload.php3.30 ▲0.0739.15 ▲0.90
Lorem User Generator /wp-admin/users.php?page=lorem-user-generator3.4535.75
Lorem User Generator /wp-admin/options-general.php?page=lorem-user-generator_settings3.3533.59

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lorem User Generator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.61 ▼0.771.89 ▼0.3343.16 ▼4.06
Dashboard /wp-admin2,211 ▲295.83 ▲0.95104.93 ▼3.7341.82 ▼0.17
Posts /wp-admin/edit.php2,100 ▲112.04 ▲0.0336.09 ▼2.8933.55 ▼2.33
Add New Post /wp-admin/post-new.php1,539 ▲623.33 ▲0.14681.04 ▼24.8554.94 ▼4.98
Media Library /wp-admin/upload.php1,393 ▲54.15 ▼0.09134.02 ▲23.6860.00 ▲11.08
Lorem User Generator /wp-admin/users.php?page=lorem-user-generator1,3272.4443.9130.53
Lorem User Generator /wp-admin/options-general.php?page=lorem-user-generator_settings8272.0226.0828.90

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: dummy data, generator, random, members, user generator...

lorem-user-generator/lorem-user-generator.php Passed 13 tests

The principal PHP file in "Lorem User Generator" v. 1.3.0 is loaded by WordPress automatically on each request
72 characters long description:
A straightforward way to add randomly generated users to your WordPress.

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
Everything looks great! No dangerous files found in this plugin1,170 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14164443784
JavaScript2460222
PO File13943114
CSS217250

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity16.67
▷ Minimum class complexity2.00
▷ Maximum class complexity49.00
Average method complexity4.24
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes480.00%
Methods29
▷ Static methods2068.97%
▷ Public methods2275.86%
▷ Protected methods413.79%
▷ Private methods310.34%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
No PNG images were found in this plugin