Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼142.15ms] Passed 4 tests
An overview of server-side resources used by Application Passwords
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.08 | 36.07 ▲1.47 |
Dashboard /wp-admin | 3.14 ▲0.09 | 47.25 ▲2.10 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 42.65 ▼5.25 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 90.48 ▼561.79 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 33.61 ▼3.01 |
/wp-admin/admin.php?page=auth_app | 3.06 | 33.59 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Application Passwords
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.24 ▲0.39 | 10.01 ▲2.29 | 52.99 ▲0.15 |
Dashboard /wp-admin | 2,967 ▲36 | 5.86 ▼0.11 | 145.88 ▼41.99 | 111.42 ▼6.55 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.00 | 67.55 ▼3.06 | 98.95 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,604 ▼79 | 18.80 ▲0.46 | 389.88 ▲5.34 | 119.12 ▼6.44 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.02 ▼0.00 | 170.11 ▲3.26 | 121.59 ▼45.86 |
/wp-admin/admin.php?page=auth_app | 1,089 | 2.35 | 61.42 | 68.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > 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/application-passwords/class.application-passwords-list-table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/application-passwords/class.application-passwords-list-table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/application-passwords/class.application-passwords-list-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/application-passwords/class.application-passwords.php:33
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: authentication, application-passwords, xml-rpc, security, rest api
application-passwords/application-passwords.php Passed 13 tests
The main PHP script in "Application Passwords" version 0.1.3 is automatically included on every request by WordPress
103 characters long description:
Creates unique passwords for applications to authenticate users without revealing their main passwords.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin753 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 96 | 344 | 507 |
JavaScript | 2 | 30 | 8 | 167 |
JSON | 1 | 0 | 0 | 47 |
Markdown | 1 | 24 | 0 | 21 |
CSS | 1 | 2 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 24 | 82.76% |
▷ Public methods | 27 | 93.10% |
▷ Protected methods | 2 | 6.90% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin