79% bodi0s-password-generator

Code Review | bodi0`s Password generator

WordPress plugin bodi0`s Password generator scored 79% from 54 tests.

About plugin

  • Plugin page: bodi0s-password-g...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Dec 9, 2014
  • Latest release: Jun 3, 2015
  • Number of updates: 6
  • Update frequency: every 29.5 days
  • Top authors: budiony (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 782 total downloads

Benchmarks

Plugin footprint 65% 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.00MB] [CPU: ▼5.76ms] Passed 4 tests

Analyzing server-side resources used by bodi0`s Password generator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.98 ▼5.65
Dashboard /wp-admin3.31 ▲0.0044.09 ▼7.58
Posts /wp-admin/edit.php3.36 ▲0.0049.51 ▲2.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.22 ▼8.21
Media Library /wp-admin/upload.php3.23 ▲0.0033.24 ▼1.59

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by bodi0`s Password generator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.55 ▼0.741.65 ▼0.3438.47 ▼11.26
Dashboard /wp-admin2,206 ▲185.88 ▼0.02104.24 ▼7.6840.54 ▼2.95
Posts /wp-admin/edit.php2,092 ▲32.13 ▲0.1440.94 ▲2.2534.21 ▲0.66
Add New Post /wp-admin/post-new.php1,533 ▼022.88 ▼0.29647.64 ▲66.4652.84 ▲0.62
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.0292.39 ▼2.0740.54 ▼3.18

Uninstaller [IO: ▲0.07MB] [DB: ▲0.08MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall correctly, leaving 12 files (0.07MB) in the plugin directory
    • (new file) languages/bodi0-password-generator-bg_BG.po
    • (new file) languages/bodi0-password-generator-es_ES.po
    • (new file) languages/bodi0-password-generator-es_ES.mo
    • (new file) languages/bodi0-password-generator-fr_FR.mo
    • (new file) bodi0-password-generator-admin.php
    • (new file) languages/bodi0-password-generator-bg_BG.mo
    • (new file) languages/bodi0-password-generator-en_GB.mo
    • (new file) bodi0-password-generator.php
    • (new file) bodi0-password-generator-form.php
    • (new file) languages/bodi0-password-generator-en_GB.po
    • ...
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
8 plugin tags: user management, modify user, strong password, password, user password generator...

bodi0s-password-generator/bodi0-password-generator.php 77% from 13 tests

The main PHP script in "bodi0`s Password generator" version 0.2 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("bodi0s-password-generator.php" instead of "bodi0-password-generator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin412 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File4384992264
PHP33770148

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin