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.44MB] [CPU: ▼300.32ms] Passed 4 tests
An overview of server-side resources used by Secure IP Logins
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.47 | 77.76 ▲22.89 |
Dashboard /wp-admin | 3.87 ▲0.46 | 38.48 ▲4.83 |
Posts /wp-admin/edit.php | 4.10 ▲0.46 | 73.46 ▲35.39 |
Add New Post /wp-admin/post-new.php | 7.33 ▲0.36 | 94.98 ▼1,196.51 |
Media Library /wp-admin/upload.php | 3.81 ▲0.52 | 27.66 ▼32.49 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 4.02 | 25.96 |
Server storage [IO: ▲3.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 225 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_debug_mode |
fs_gdpr |
fs_active_plugins |
fs_accounts |
fs_api_cache |
Browser metrics Passed 4 tests
A check of browser resources used by Secure IP Logins
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,821 ▲67 | 16.01 ▲0.00 | 5.82 ▼0.01 | 2.02 ▼0.74 |
Dashboard /wp-admin | 2,951 ▲97 | 6.21 ▲0.01 | 117.22 ▼18.81 | 199.52 ▼38.10 |
Posts /wp-admin/edit.php | 2,747 ▲59 | 3.26 ▲0.03 | 62.38 ▼3.83 | 167.94 ▲26.32 |
Add New Post /wp-admin/post-new.php | 1,691 ▼82 | 15.55 ▼6.44 | 430.72 ▼19.00 | 154.82 ▼42.44 |
Media Library /wp-admin/upload.php | 1,810 ▲115 | 5.67 ▲0.15 | 125.83 ▼23.37 | 271.03 ▲82.19 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 1,470 | 2.75 | 54.43 | 127.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 5 options
- fs_gdpr
- fs_active_plugins
- fs_accounts
- fs_debug_mode
- fs_api_cache
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/secure-ip-logins/inc/freemius/templates/ajax-loader.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/secure-ip-logins/inc/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/secure-ip-logins/inc/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/secure-ip-logins/inc/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/secure-ip-logins/inc/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/secure-ip-logins/inc/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/secure-ip-logins/inc/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/secure-ip-logins/inc/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/secure-ip-logins/inc/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 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
4 plugin tags: secure login, security, secure wordpress login, dedicated ip
secure-ip-logins/secure-ip-logins.php Passed 13 tests
The principal PHP file in "Secure IP Logins" v. 0.1 is loaded by WordPress automatically on each request
124 characters long description:
This Plugin allows you to access your WordPress sites only with the Whitelisted IP Addresses that you have allowed yourself.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin42,602 lines of code in 179 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 110 | 6,306 | 14,583 | 26,535 |
PO File | 10 | 5,550 | 6,667 | 12,010 |
Sass | 31 | 424 | 78 | 3,020 |
CSS | 16 | 67 | 3 | 417 |
JavaScript | 6 | 58 | 99 | 341 |
Markdown | 2 | 68 | 0 | 214 |
JSON | 2 | 0 | 0 | 37 |
YAML | 2 | 2 | 0 | 28 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,360)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 71.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,360.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,056 | |
▷ Static methods | 166 | 15.72% |
▷ Public methods | 742 | 70.27% |
▷ Protected methods | 15 | 1.42% |
▷ Private methods | 299 | 28.31% |
Functions | 92 | |
▷ Named functions | 92 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 122 | |
▷ Global constants | 102 | 83.61% |
▷ Class constants | 20 | 16.39% |
▷ Public constants | 20 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
inc/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |