Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.04ms] Passed 4 tests
This is a short check of server-side resources used by Senpai Software - Two-factor authentication (2FA) with a key file
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.64 ▼0.95 |
Dashboard /wp-admin | 3.40 ▲0.05 | 46.57 ▼8.23 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.43 ▲1.16 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 84.51 ▼20.14 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 39.29 ▲3.27 |
2FA Settings /wp-admin/options-general.php?page=snp_2fa | 3.29 | 33.89 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Senpai Software - Two-factor authentication (2FA) with a key file
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲119 | 14.26 ▼0.09 | 1.78 ▼0.25 | 30.31 ▼10.29 |
Dashboard /wp-admin | 2,203 ▲23 | 5.63 ▼0.02 | 82.78 ▼4.28 | 37.52 ▼3.15 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.03 ▲0.07 | 38.92 ▲2.71 | 36.48 ▲3.84 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.48 ▲0.46 | 677.90 ▼13.95 | 58.27 ▼2.81 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.18 ▼0.18 | 104.40 ▲3.90 | 41.83 ▼0.66 |
2FA Settings /wp-admin/options-general.php?page=snp_2fa | 876 | 2.00 | 22.81 | 25.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function SenpaiSoftware2FA\\add_action() in wp-content/plugins/senpai-software-2fa/admin/senpai-software-2fa-admin.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function SenpaiSoftware2FA\\add_action() in wp-content/plugins/senpai-software-2fa/senpai-software-2fa-core.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: 2fa, two factor authentication, brute force, disable xml-rpc, senpai software...
senpai-software-2fa/senpai-software-2fa.php Passed 13 tests
This is the main PHP file of "Senpai Software - Two-factor authentication (2FA) with a key file" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
Unique method two-factor auth (2FA). Limit Login Attempts. Disable XML-RPC. Protection against brute force attacks.
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
Success! There were no dangerous files found in this plugin493 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 90 | 79 | 362 |
PO File | 1 | 14 | 14 | 53 |
JavaScript | 1 | 11 | 19 | 52 |
CSS | 1 | 4 | 0 | 26 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
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 | 1 | |
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 | 15 | |
▷ Named functions | 15 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin