Benchmarks
Plugin footprint Passed 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.01MB] [CPU: ▼139.52ms] Passed 4 tests
A check of server-side resources used by yubikey-plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 48.51 ▲24.34 |
Dashboard /wp-admin | 3.07 ▲0.01 | 45.62 ▲2.74 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 44.88 ▲4.92 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 90.42 ▼563.91 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 31.08 ▼1.84 |
Yubikey /wp-admin/options-general.php?page=yubikey | 3.01 | 28.92 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for yubikey-plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,711 ▲131 | 15.86 ▲0.17 | 12.51 ▲0.50 | 50.50 ▲3.66 |
Dashboard /wp-admin | 2,978 ▲44 | 5.93 ▼0.17 | 139.45 ▲0.69 | 110.56 ▼2.86 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.00 | 63.04 ▲2.07 | 91.71 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,686 ▲16 | 18.38 ▼0.73 | 350.22 ▼22.89 | 99.47 ▼3.84 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.10 ▲0.05 | 143.90 ▼7.59 | 112.94 ▼5.19 |
Yubikey /wp-admin/options-general.php?page=yubikey | 1,085 | 2.05 | 55.55 | 79.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-yubikey/yubikey.php:444
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Entering Key ID on the profile page), #2 (Entering Yubico ID & API key on Yubikey options page.), #3 (The enhanced loginbox.), #4 (The Yubikey itself.)
- Donate link: Invalid URI ("")
woo-yubikey/yubikey.php 92% from 13 tests
The principal PHP file in "yubikey-plugin" v. 2.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-yubikey.php" instead of "yubikey.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin395 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 63 | 137 | 279 |
PO File | 2 | 45 | 52 | 116 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin