90% wp-generate-password

Code Review | WP Generate Password

WordPress plugin WP Generate Password scored90%from 54 tests.

About plugin

  • Plugin page: wp-generate-password
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8.1
  • WordPress version: 6.3.1
  • First release: Jul 3, 2017
  • Latest release: Sep 12, 2017
  • Number of updates: 31
  • Update frequency: every 2.3 days
  • Top authors: ken.vilar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /731 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.91ms] Passed 4 tests

Analyzing server-side resources used by WP Generate Password
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0641.07 ▲0.70
Dashboard /wp-admin3.36 ▲0.0654.76 ▲2.47
Posts /wp-admin/edit.php3.47 ▲0.1251.44 ▼8.83
Add New Post /wp-admin/post-new.php5.96 ▲0.0797.62 ▼0.09
Media Library /wp-admin/upload.php3.28 ▲0.0537.79 ▼3.41

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by WP Generate Password
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲9613.49 ▼0.697.82 ▲5.9440.98 ▲0.88
Dashboard /wp-admin2,202 ▲255.47 ▼0.2098.51 ▲5.5238.70 ▼3.02
Posts /wp-admin/edit.php2,110 ▲72.02 ▼0.0140.11 ▼5.9338.50 ▼1.73
Add New Post /wp-admin/post-new.php1,606 ▲8022.60 ▼0.44608.91 ▼88.1238.57 ▼22.56
Media Library /wp-admin/upload.php1,413 ▲134.19 ▼0.06100.09 ▼26.2146.52 ▼1.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: plugin, pass, generate, password, wordpress...

wp-generate-password/wp-generate-password.php Passed 13 tests

"WP Generate Password" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
89 characters long description:
A simple plugin that will generate password and displays at the top of every admin pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected324 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.29
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods311.11%
▷ Public methods2177.78%
▷ Protected methods00.00%
▷ Private methods622.22%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
PNG images were not found in this plugin