90% disable-application-passwords

Code Review | Disable Application Passwords

WordPress plugin Disable Application Passwords scored90%from 54 tests.

About plugin

  • Plugin page: disable-applicati...
  • Plugin version: 1.8
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Dec 10, 2020
  • Latest release: Oct 20, 2023
  • Number of updates: 12
  • Update frequency: every 87.0 days
  • Top authors: specialk (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /18,190 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Disable Application Passwords
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.97 ▲1.36
Dashboard /wp-admin3.31 ▲0.0046.60 ▼1.26
Posts /wp-admin/edit.php3.36 ▲0.0047.17 ▲1.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.84 ▼15.12
Media Library /wp-admin/upload.php3.24 ▲0.0033.29 ▼1.08

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Application Passwords
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.09 ▼0.191.76 ▼0.2044.35 ▲2.19
Dashboard /wp-admin2,195 ▲185.62 ▼0.0683.74 ▼3.1140.68 ▼3.09
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0538.39 ▲4.7338.60 ▲2.33
Add New Post /wp-admin/post-new.php1,526 ▼023.56 ▲0.45674.88 ▼7.1149.71 ▼6.26
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0694.64 ▼2.7940.11 ▼4.78

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: application, passwords, disable

disable-application-passwords/disable-application-passwords.php 92% from 13 tests

Analyzing the main PHP file in "Disable Application Passwords" version 1.8
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

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
Success! There were no dangerous files found in this plugin3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16313

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
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
There were not PNG files found in your plugin