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
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▲1.92ms] Passed 4 tests
A check of server-side resources used by Limit Max IPs Per User
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 49.78 ▲8.88 |
Dashboard /wp-admin | 3.51 ▲0.16 | 73.14 ▲9.48 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.31 ▲3.80 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 96.38 ▼7.02 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.66 ▲2.01 |
Limit Max IPs Per User /wp-admin/options-general.php?page=limit_max_ips_per_user | 3.33 | 33.82 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_limit_max_ips_per_user |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
limit_max_ips_per_user_max_ips |
limit_max_ips_per_user_db_ver |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
limit_max_ips_per_user_number_of_days |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Limit Max IPs Per User
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.24 ▼1.05 | 1.97 ▲0.18 | 42.18 ▼1.79 |
Dashboard /wp-admin | 2,210 ▲22 | 5.83 ▼0.03 | 99.50 ▼1.14 | 38.87 ▼2.55 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.01 ▼0.03 | 40.12 ▲3.14 | 34.45 ▼8.92 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.43 ▲0.91 | 608.46 ▼102.49 | 52.04 ▼14.90 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.21 ▲0.02 | 95.29 ▼18.81 | 41.61 ▼5.94 |
Limit Max IPs Per User /wp-admin/options-general.php?page=limit_max_ips_per_user | 1,057 | 2.53 | 42.93 | 37.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/limit-max-ips-per-user/limit-max-ips-per-user.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/limit-max-ips-per-user/includes/pages/settings/settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/limit-max-ips-per-user/includes/pages/user-edit/user-edit.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: membership, user, restrict, security, max...
limit-max-ips-per-user/limit-max-ips-per-user.php Passed 13 tests
The primary PHP file in "Limit Max IPs Per User" version 1.5 is used by WordPress to initiate all plugin functionality
60 characters long description:
Limit the maximum number of IPs that a user can log in with.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin758 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 163 | 100 | 543 |
JavaScript | 3 | 0 | 4 | 187 |
CSS | 3 | 5 | 0 | 28 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 60.00 |
▷ Maximum class complexity | 60.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 | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 41 | |
▷ Static methods | 4 | 9.76% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/jquery.dataTables/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
includes/jquery.dataTables/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
includes/jquery.dataTables/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
includes/jquery.dataTables/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
includes/jquery.dataTables/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |