90% application-passwords-enable

Code Review | Application Passwords Enable

WordPress plugin Application Passwords Enable scored90%from 54 tests.

About plugin

  • Plugin page: application-passw...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.2-7.0.0
  • WordPress version: 6.3.1
  • First release: Aug 25, 2021
  • Latest release: Jul 28, 2022
  • Number of updates: 10
  • Update frequency: every 37.7 days
  • Top authors: banmaerp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /2,393 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Application Passwords Enable
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.38 ▼11.23
Dashboard /wp-admin3.31 ▲0.0049.25 ▼1.40
Posts /wp-admin/edit.php3.36 ▲0.0052.15 ▼3.19
Add New Post /wp-admin/post-new.php5.89 ▲0.00102.12 ▼6.90
Media Library /wp-admin/upload.php3.23 ▲0.0035.88 ▲4.33

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Application Passwords Enable
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.58 ▼0.801.94 ▲0.2842.92 ▲3.04
Dashboard /wp-admin2,209 ▲185.90 ▲1.0098.99 ▼6.0144.07 ▲1.33
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.1839.77 ▲2.9537.22 ▲3.00
Add New Post /wp-admin/post-new.php1,541 ▼318.20 ▼0.11649.15 ▼58.9258.20 ▼7.84
Media Library /wp-admin/upload.php1,385 ▼64.15 ▼0.0794.23 ▼5.1045.07 ▲3.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (New application passwords enable has been created.), #2 (After at least one Application Password for you account exists, you'll see a table displaying them, allowing you to view usage and revoke them as desired.)
The official readme.txt might help

application-passwords-enable/application-passwords-enable.php Passed 13 tests

The principal PHP file in "Application Passwords Enable" v. 1.1 is loaded by WordPress automatically on each request
57 characters long description:
Activate this plugin to enabled WP Application Passwords.

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
Everything looks great! No dangerous files found in this plugin4 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14264

PHP code Passed 2 tests

An short overview of 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.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 files were detected