90% gss-password-generator

Code Review | Gss Password Generator

WordPress plugin Gss Password Generator scored90%from 54 tests.

About plugin

  • Plugin page: gss-password-gene...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2
  • WordPress version: 6.3.1
  • First release: Jul 22, 2015
  • Latest release: Jul 23, 2015
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: gurjeet.sasan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,369 total downloads

Benchmarks

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.48ms] Passed 4 tests

A check of server-side resources used by Gss Password Generator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.47 ▼6.57
Dashboard /wp-admin3.31 ▲0.0146.07 ▼2.24
Posts /wp-admin/edit.php3.36 ▲0.0048.83 ▼2.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.83 ▼18.41
Media Library /wp-admin/upload.php3.23 ▲0.0034.93 ▲1.00
Gss Password Generator /wp-admin/options-general.php?page=gss_password3.2232.55

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Gss Password Generator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.15 ▼1.601.67 ▼0.0241.01 ▼6.28
Dashboard /wp-admin2,204 ▲165.84 ▲0.78103.10 ▼12.6638.89 ▼6.49
Posts /wp-admin/edit.php2,096 ▲102.05 ▲0.0439.46 ▼0.3935.54 ▼0.40
Add New Post /wp-admin/post-new.php1,540 ▼223.24 ▲5.09674.84 ▲78.5453.11 ▲0.08
Media Library /wp-admin/upload.php1,392 ▲74.22 ▲0.0694.99 ▲0.2541.50 ▼0.44
Gss Password Generator /wp-admin/options-general.php?page=gss_password1,1552.0225.2927.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: secure password, password, strong password, generate password, random password...

gss-password-generator/gssPasswordGenerator.php 92% from 13 tests

"Gss Password Generator" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("gss-password-generator.php" instead of "gssPasswordGenerator.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
Success! There were no dangerous files found in this plugin123 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15014123

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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