89% application-passwords-manager

Code Review | Application Passwords Manager

WordPress plugin Application Passwords Manager scored89%from 54 tests.

About plugin

  • Plugin page: application-passw...
  • Plugin version: 0.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.7
  • WordPress version: 6.3.1
  • First release: Dec 17, 2020
  • Latest release: Mar 11, 2021
  • Number of updates: 9
  • Update frequency: every 9.3 days
  • Top authors: icelayer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,262 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Application Passwords Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.55 ▲3.35
Dashboard /wp-admin3.32 ▼0.0351.82 ▼7.15
Posts /wp-admin/edit.php3.37 ▲0.0145.95 ▼2.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0177.89 ▼22.34
Media Library /wp-admin/upload.php3.24 ▲0.0135.10 ▲0.15

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
apsm_status
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Application Passwords Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.311.87 ▲0.1943.06 ▼3.79
Dashboard /wp-admin2,198 ▲215.62 ▲0.0195.97 ▲10.5542.38 ▲1.62
Posts /wp-admin/edit.php2,097 ▼32.00 ▲0.0334.66 ▼5.9534.67 ▼1.73
Add New Post /wp-admin/post-new.php1,526 ▼023.23 ▼0.08652.58 ▼12.1264.33 ▲13.53
Media Library /wp-admin/upload.php1,397 ▼34.19 ▲0.0295.19 ▼18.6443.88 ▼3.25

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
3 plugin tags: application passwords, passwords, application

application-passwords-manager/appsm.php 77% from 13 tests

Analyzing the main PHP file in "Application Passwords Manager" version 0.2.1
It is important to fix the following:
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("application-passwords-manager.php" instead of "appsm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin130 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP444149128
HTML2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods13
▷ Static methods215.38%
▷ Public methods538.46%
▷ Protected methods00.00%
▷ Private methods861.54%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.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