Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼6.74ms] Passed 4 tests
An overview of server-side resources used by WP OTP - One-time password (OTP) 2FA for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.60 ▼11.05 |
Dashboard /wp-admin | 3.43 ▲0.13 | 48.42 ▼3.08 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 45.00 ▼4.67 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 83.20 ▼8.17 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.38 ▲2.00 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
wpotp_balance |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
wpotp_token |
wpotp_email |
Browser metrics Passed 4 tests
A check of browser resources used by WP OTP - One-time password (OTP) 2FA for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.25 ▼0.97 | 1.65 ▼0.41 | 45.66 ▲1.37 |
Dashboard /wp-admin | 2,222 ▲34 | 4.85 ▼1.03 | 110.69 ▼5.71 | 43.14 ▲0.23 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 2.01 ▲0.01 | 35.30 ▼2.91 | 32.94 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 23.36 ▲5.79 | 633.76 ▼35.71 | 69.96 ▲6.38 |
Media Library /wp-admin/upload.php | 1,398 ▲7 | 4.24 ▲0.02 | 97.22 ▼2.93 | 41.74 ▼1.91 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- widget_theysaidso_widget
- wpotp_balance
- wpotp_token
- can_compress_scripts
- wpotp_email
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/two-factor-authentication-sms-otp-security/class-wp-otp.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
two-factor-authentication-sms-otp-security/wpotp.php 85% from 13 tests
Analyzing the main PHP file in "WP OTP - One-time password (OTP) 2FA for WordPress" version 1.0.1
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("two-factor-authentication-sms-otp-security.php" instead of "wpotp.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected780 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 104 | 163 | 621 |
JavaScript | 1 | 14 | 0 | 125 |
CSS | 1 | 6 | 0 | 23 |
SVG | 1 | 1 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.44 |
▷ 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 | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 87.88% |
▷ Protected methods | 4 | 12.12% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ 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
There were not PNG files found in your plugin