79% keys-master

Code Review | Keys Master

WordPress plugin Keys Master scored79%from 54 tests.

About plugin

  • Plugin page: keys-master
  • Plugin version: 1.10.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Nov 25, 2020
  • Latest release: Oct 25, 2023
  • Number of updates: 22
  • Update frequency: every 48.4 days
  • Top authors: PierreLannoy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,764 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲1.19MB] [CPU: ▲7.35ms] Passed 4 tests

Server-side resources used by Keys Master
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.54 ▲1.0849.75 ▲12.20
Dashboard /wp-admin4.53 ▲1.2258.34 ▲11.28
Posts /wp-admin/edit.php4.64 ▲1.2852.79 ▲7.17
Add New Post /wp-admin/post-new.php7.13 ▲1.2488.86 ▼1.26
Media Library /wp-admin/upload.php4.45 ▲1.2249.27 ▲16.76
Control Center /wp-admin/admin.php?page=perfopsone-dashboard4.4741.59
App. Passwords /wp-admin/admin.php?page=pokm-viewer4.9446.69
Keys Master /wp-admin/admin.php?page=pokm-settings4.7239.87
App. Passwords /wp-admin/admin.php?page=pokm-manager4.6645.63
Analytics /wp-admin/admin.php?page=perfopsone-analytics4.4246.16
Tools /wp-admin/admin.php?page=perfopsone-tools4.4240.60

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 468 new files
Database: 2 new tables, 6 new options
New tables
wp_password_usage
wp_password_statistics
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Keys Master
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.35 ▲0.001.89 ▲0.2741.37 ▲0.13
Dashboard /wp-admin2,237 ▲635.58 ▲0.0284.74 ▼4.3438.34 ▼0.13
Posts /wp-admin/edit.php2,145 ▲481.99 ▼0.0134.21 ▼0.6733.10 ▲1.58
Add New Post /wp-admin/post-new.php1,564 ▲3818.12 ▼4.77647.16 ▼14.9652.71 ▼5.73
Media Library /wp-admin/upload.php1,441 ▲384.22 ▼0.0195.39 ▼1.1743.07 ▼2.88
Control Center /wp-admin/admin.php?page=perfopsone-dashboard1,0972.0124.5632.65
App. Passwords /wp-admin/admin.php?page=pokm-viewer1,3573.4376.1568.97
Keys Master /wp-admin/admin.php?page=pokm-settings1,0932.0325.6136.80
App. Passwords /wp-admin/admin.php?page=pokm-manager1,0492.0625.9931.15
Analytics /wp-admin/admin.php?page=perfopsone-analytics9282.1226.9926.59
Tools /wp-admin/admin.php?page=perfopsone-tools9251.9923.5623.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/keys-master/public/partials/keys-master-public-display.php
  • 35× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/keys-master/perfopsone/functions.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function KeysMaster\\Library\\esc_html__() in wp-content/plugins/keys-master/includes/libraries/class-libraries.php:67
    • > PHP Warning
      Use of undefined constant POKM_VENDOR_DIR - assumed 'POKM_VENDOR_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/keys-master/includes/libraries/class-libraries.php on line 64
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/keys-master/includes/libraries/psr/http-message/ServerRequestInterface.php:43
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/keys-master/perfopsone/class-installer.php on line 12
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/keys-master/perfopsone/class-installer.php on line 12
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/keys-master/includes/features/class-passwords.php on line 29
    • > PHP Fatal error
      Uncaught Error: Class 'KeysMaster\\System\\Option' not found in wp-content/plugins/keys-master/includes/system/class-nag.php:56
    • > PHP Fatal error
      Uncaught Error: Class 'cebe\\markdownparser\\Parser' not found in wp-content/plugins/keys-master/includes/libraries/markdown/MarkdownParser.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/keys-master/admin/partials/keys-master-admin-settings-main.php:15

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: authentication, application password, rest-api, security, xml-rpc

keys-master/keys-master.php Passed 13 tests

The main PHP file in "Keys Master" ver. 1.10.0 adds more information about the plugin and also serves as the entry point for this plugin
125 characters long description:
Powerful application passwords manager for WordPress with role-based usage control and full analytics reporting capabilities.

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
Good job! No executable or dangerous file extensions detected37,056 lines of code in 436 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript121,9222,30520,353
PHP1171,3087,71410,162
SVG285014,251
CSS1328421,920
Markdown71460317
JSON20053

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity16.57
▷ Minimum class complexity1.00
▷ Maximum class complexity184.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity81.00
Code structure
Namespaces15
Interfaces13
Traits15
Classes73
▷ Abstract classes22.74%
▷ Concrete classes7197.26%
▷ Final classes00.00%
Methods686
▷ Static methods24535.71%
▷ Public methods50573.62%
▷ Protected methods11116.18%
▷ Private methods7010.20%
Functions18
▷ Named functions633.33%
▷ Anonymous functions1266.67%
Constants54
▷ Global constants4379.63%
▷ Class constants1120.37%
▷ Public constants11100.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