84% passwords-manager

Code Review | Passwords Manager

WordPress plugin Passwords Manager scored84%from 54 tests.

About plugin

  • Plugin page: passwords-manager
  • Plugin version: 1.4.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 24, 2019
  • Latest release: Nov 6, 2023
  • Number of updates: 30
  • Update frequency: every 49.1 days
  • Top authors: coder426 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /3,833 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.34MB] [CPU: ▲2.40ms] Passed 4 tests

Analyzing server-side resources used by Passwords Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3544.90 ▲2.87
Dashboard /wp-admin3.64 ▲0.3449.29 ▲4.54
Posts /wp-admin/edit.php3.75 ▲0.4048.23 ▼1.67
Add New Post /wp-admin/post-new.php6.22 ▲0.3496.00 ▲8.43
Media Library /wp-admin/upload.php3.56 ▲0.3436.49 ▲3.86

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 102 new files
Database: 2 new tables, 6 new options
New tables
wp_pms_category
wp_pms_passwords
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Passwords Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲19114.68 ▲0.3131.46 ▲29.6443.99 ▼1.07
Dashboard /wp-admin2,207 ▲275.60 ▼0.0489.84 ▼1.0041.47 ▲0.03
Posts /wp-admin/edit.php2,112 ▲121.94 ▼0.0738.71 ▼0.7733.18 ▼3.74
Add New Post /wp-admin/post-new.php1,538 ▲923.26 ▲0.25596.22 ▼107.1554.88 ▼6.75
Media Library /wp-admin/upload.php1,415 ▲154.17 ▼0.00102.82 ▲3.1841.07 ▼1.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/passwords-manager/include/pms-functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/passwords-manager/include/admin-page/addon/csv-export/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/passwords-manager/include/admin-page/addon/csv-export/pms-csv-export-setting-page/pms_export_html.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/passwords-manager/include/admin-page/addon/csv-import/pms-csv-import-setting-page/pms_import_html.php:6
    • > PHP Warning
      Use of undefined constant PWDMS_INC - assumed 'PWDMS_INC' (this will throw an Error in a future version of PHP) in wp-content/plugins/passwords-manager/include/admin-page/addon/csv-import/index.php on line 49
    • > PHP Warning
      include(): Failed opening 'PWDMS_INCadmin-page/addon/csv-import/pms-csv-import-setting-page/pms_import_html.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/passwords-manager/include/admin-page/addon/csv-import/index.php on line 49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/passwords-manager/include/pms-categories.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/passwords-manager/include/pms-settings-ajax-action.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/passwords-manager/include/pms-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/passwords-manager/include/pms-front-shortcode.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Settings), #2 (Categories), #3 (Passwords), #4 (Export), #5 (Import), #6 (Support), #7 (Shortcode)
  • Requires at least: Version format is invalid
You can take inspiration from this readme.txt

passwords-manager/passwords-manager.php Passed 13 tests

The main PHP script in "Passwords Manager" version 1.4.7 is automatically included on every request by WordPress
64 characters long description:
Passwords Manager let you store all your passwords at one place.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin15,051 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
SVG4009,554
PHP181612041,876
PO File77509151,694
JavaScript17134153994
CSS1111065841
JSON10092

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods125.00%
▷ Private methods00.00%
Functions30
▷ Named functions30100.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
5 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/kinsta1.png6.33KB2.72KB▼ 56.94%
assets/img/kinsta8.png11.32KB5.59KB▼ 50.63%
assets/img/kinsta4.png3.91KB1.87KB▼ 52.26%
assets/img/kinsta5.png6.61KB2.86KB▼ 56.73%
assets/img/kinsta3.png18.09KB7.01KB▼ 61.27%