Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.70ms] Passed 4 tests
Analyzing server-side resources used by Two-factor authentication (formerly IP Vault)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.66 ▼0.50 |
Dashboard /wp-admin | 3.40 ▲0.09 | 53.59 ▼5.47 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.69 ▼2.04 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.34 ▼10.80 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 43.02 ▲7.32 |
Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: 1 new table, 16 new options
New tables |
---|
wp_ipv_logs |
New WordPress options |
---|
ipv_use_asn |
widget_recent-comments |
ipv_home_path |
db_upgraded |
can_compress_scripts |
ipv_request_excludes |
ipv_modus |
widget_recent-posts |
ipv_whitelist |
ipv_gdpr_ips |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Two-factor authentication (formerly IP Vault)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲60 | 14.48 ▲0.22 | 1.78 ▼0.19 | 43.54 ▼0.12 |
Dashboard /wp-admin | 2,243 ▲72 | 5.61 ▼0.03 | 95.01 ▼5.44 | 42.78 ▼1.12 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.97 ▼0.00 | 34.90 ▼2.60 | 33.64 ▼1.60 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 23.14 ▼0.00 | 669.62 ▼11.18 | 53.96 ▲1.23 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.19 ▼0.04 | 95.28 ▼10.02 | 44.47 ▼1.91 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ip-vault-wp-firewall/uninstall.php
- > /wp-content/plugins/ip-vault-wp-firewall/includes/admin-chart.php
- > /wp-content/plugins/ip-vault-wp-firewall/ip-vault.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% 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
5 plugin tags: brute force, protection, security, ip, lock
ip-vault-wp-firewall/ip-vault.php 77% from 13 tests
This is the main PHP file of "Two-factor authentication (formerly IP Vault)" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 ("ip-vault-wp-firewall.php" instead of "ip-vault.php")
- Description: The description should be shorter than 140 characters (currently 162 characters long)
- 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,001 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 520 | 139 | 1,140 |
SVG | 3 | 12 | 8 | 524 |
CSS | 2 | 1 | 9 | 337 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 48.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 1.49MB with 0.79MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 222.88KB | 97.82KB | ▼ 56.11% |
assets/screenshot-3.png | 172.55KB | 95.86KB | ▼ 44.45% |
assets/screenshot-1.png | 673.54KB | 309.38KB | ▼ 54.07% |
assets/screenshot-5.png | 272.19KB | 104.10KB | ▼ 61.75% |
assets/screenshot-2.png | 183.09KB | 95.41KB | ▼ 47.89% |