Benchmarks
Plugin footprint 83% from 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.34MB] [CPU: ▼16.88ms] Passed 4 tests
An overview of server-side resources used by Keyy Two Factor Authentication (like Clef)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.37 | 41.09 ▼2.41 |
Dashboard /wp-admin | 3.73 ▲0.34 | 53.76 ▼12.88 |
Posts /wp-admin/edit.php | 3.78 ▲0.38 | 51.79 ▲4.08 |
Add New Post /wp-admin/post-new.php | 3.54 ▼2.39 | 40.93 ▼54.06 |
Media Library /wp-admin/upload.php | 3.59 ▲0.32 | 38.19 ▲1.84 |
Server storage [IO: ▲2.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 97 new files
Database: no new tables, 7 new options
New WordPress options |
---|
keyy_ltoken_c6ac_exp |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Keyy Two Factor Authentication (like Clef): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲167 | 14.36 ▼0.37 | 1.84 ▼0.26 | 35.25 ▼8.25 |
Dashboard /wp-admin | 2,206 ▲35 | 5.52 ▼0.14 | 85.02 ▼16.91 | 81.40 ▲39.68 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 1.99 ▼0.02 | 40.83 ▲7.00 | 32.87 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.05 ▼0.62 | 662.26 ▼46.15 | 67.00 ▲15.64 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.21 ▲0.06 | 98.59 ▼2.51 | 70.31 ▲23.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- keyy_ltoken_c6ac_exp
- widget_theysaidso_widget
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 17× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/keyy/includes/keyy-notices.php
- > /wp-content/plugins/keyy/includes/login.php
- > /wp-content/plugins/keyy/keyy.php
- > /wp-content/plugins/keyy/templates/dashboard-header.php
- > /wp-content/plugins/keyy/testing/test.php
- > /wp-content/plugins/keyy/includes/class-commands.php
- > /wp-content/plugins/keyy/includes/keyy-options.php
- > /wp-content/plugins/keyy/includes/translations.php
- > /wp-content/plugins/keyy/templates/login-form-learn-more.php
- > /wp-content/plugins/keyy/includes/rest.php
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: two factor auth, 2fa, authenticate, password, two factor...
keyy/keyy.php Passed 13 tests
The entry point to "Keyy Two Factor Authentication (like Clef)" version 1.2.1 is a PHP file that has certain tags in its header comment area
28 characters long description:
Easy-to-use WordPress logins
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin24,720 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 4,461 | 13,818 | 23,106 |
JavaScript | 13 | 249 | 229 | 937 |
CSS | 6 | 98 | 15 | 400 |
JSON | 2 | 0 | 0 | 184 |
Markdown | 2 | 33 | 0 | 61 |
YAML | 1 | 2 | 0 | 25 |
SVG | 1 | 0 | 0 | 7 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 107)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 121.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 655.00 |
Average method complexity | 6.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 107.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 1 | 2.94% |
▷ Concrete classes | 33 | 97.06% |
▷ Final classes | 0 | 0.00% |
Methods | 792 | |
▷ Static methods | 11 | 1.39% |
▷ Public methods | 768 | 96.97% |
▷ Protected methods | 14 | 1.77% |
▷ Private methods | 10 | 1.26% |
Functions | 10 | |
▷ Named functions | 8 | 80.00% |
▷ Anonymous functions | 2 | 20.00% |
Constants | 254 | |
▷ Global constants | 239 | 94.09% |
▷ Class constants | 15 | 5.91% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/play-store-button.png | 12.24KB | 5.86KB | ▼ 52.10% |
images/notices/black_friday.png | 5.06KB | 5.34KB | 0.00% |
images/notices/christmas.png | 10.08KB | 10.46KB | 0.00% |
images/admin_icon_16x16.png | 3.74KB | 0.98KB | ▼ 73.75% |
images/notices/summer.png | 2.70KB | 2.93KB | 0.00% |