84% memorable-password

Code Review | Memorable Password

WordPress plugin Memorable Password scored84%from 54 tests.

About plugin

  • Plugin page: memorable-password
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.4
  • WordPress version: 6.3.1
  • First release: Jan 6, 2018
  • Latest release: Apr 23, 2020
  • Number of updates: 15
  • Update frequency: every 55.9 days
  • Top authors: ko31 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /710 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
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.09ms] Passed 4 tests

This is a short check of server-side resources used by Memorable Password
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0934.17 ▼3.83
Dashboard /wp-admin3.41 ▲0.0644.73 ▼14.03
Posts /wp-admin/edit.php3.52 ▲0.1646.83 ▲1.54
Add New Post /wp-admin/post-new.php5.99 ▲0.1087.76 ▼4.02
Media Library /wp-admin/upload.php3.33 ▲0.1033.08 ▲2.01
Memorable Password /wp-admin/options-general.php?page=memorable-password3.3029.72

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
memorable-password

Browser metrics Passed 4 tests

This is an overview of browser requirements for Memorable Password
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.18 ▼1.121.64 ▼0.4241.02 ▼4.73
Dashboard /wp-admin2,213 ▲284.86 ▼1.0198.33 ▼4.0139.62 ▲2.47
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0240.74 ▲3.1835.51 ▲1.44
Add New Post /wp-admin/post-new.php1,541 ▲1223.47 ▲5.14593.71 ▼29.1459.04 ▼2.89
Media Library /wp-admin/upload.php1,392 ▲74.25 ▲0.0297.10 ▲2.5042.80 ▲2.10
Memorable Password /wp-admin/options-general.php?page=memorable-password8132.0624.4527.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • memorable-password
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/memorable-password/tests/bootstrap.php on line 14
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/memorable-password/tests/bootstrap.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/memorable-password/memorable-password.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/memorable-password/tests/test-memorable-password.php:8

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: You can look at the official readme.txt

memorable-password/memorable-password.php Passed 13 tests

This is the main PHP file of "Memorable Password" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
54 characters long description:
This plugin generates a memorable and strong password.

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 detected447 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP37939335
Bourne Shell121798
XML10014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity13.50
▷ Minimum class complexity7.00
▷ Maximum class complexity20.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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