Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Error in wp-content/plugins/openotp-authentication/openotp.class.php+234
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/openotp-authentication/openotp.class.php:234
Stack trace:
#0 wp-content/plugins/openotp-authentication/openotp.php(104): require()
#1 wp-content/plugins/openotp-authentication/openotp.php(89): OpenOTP_auth->setup()
#2 wp-content/plugins/openotp-authentication/openotp.php(730): OpenOTP_auth::instance()
#3 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#4 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.78ms] Passed 4 tests
Server-side resources used by OpenOTP Two-Factor Authentication
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.89 ▼0.64 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.06 ▼1.79 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.18 ▲2.85 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.53 ▼3.37 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.71 ▲2.70 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for OpenOTP Two-Factor Authentication
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.21 ▼1.17 | 1.58 ▼0.05 | 40.10 ▼1.60 |
Dashboard /wp-admin | 2,203 ▲12 | 6.01 ▲1.15 | 98.82 ▼5.58 | 39.17 ▲0.88 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.04 | 40.14 ▲6.38 | 35.08 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,528 ▲14 | 23.46 ▲5.55 | 651.59 ▲48.76 | 51.53 ▲1.70 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.24 ▼0.06 | 93.85 ▼6.91 | 43.21 ▲0.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/openotp-authentication/openotp.class.php:234
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/openotp-authentication/openotp.class.php:234
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: password, login, authenticator, username, rcdevs...
openotp-authentication/openotp.php 85% from 13 tests
The entry point to "OpenOTP Two-Factor Authentication" version 1.2.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("openotp-authentication.php" instead of "openotp.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,290 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 155 | 136 | 710 |
JavaScript | 2 | 110 | 337 | 468 |
XML | 1 | 12 | 2 | 112 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 29.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 2 | 4.17% |
▷ Public methods | 40 | 83.33% |
▷ Protected methods | 5 | 10.42% |
▷ Private methods | 3 | 6.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.36MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 248.74KB | 109.25KB | ▼ 56.08% |
u2f.png | 17.18KB | 5.30KB | ▼ 69.17% |
openotp_banner.png | 26.84KB | 17.79KB | ▼ 33.73% |
openotp_closebtn.png | 2.03KB | 1.31KB | ▼ 35.62% |
screenshot-2.png | 75.04KB | 38.18KB | ▼ 49.12% |