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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.28ms] Passed 4 tests
An overview of server-side resources used by User Allowed IP Addresses
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 43.50 ▼2.96 |
Dashboard /wp-admin | 3.39 ▲0.08 | 49.75 ▼2.40 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.18 ▼5.18 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 88.79 ▼18.59 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.01 ▲3.80 |
User Allowed IP Addresses /wp-admin/options-general.php?page=user-allowed-ip-addresses | 3.28 | 34.54 |
Server storage [IO: ▲0.05MB] [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: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
User Allowed IP Addresses: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.26 ▲0.02 | 1.61 ▼0.14 | 43.33 ▼1.36 |
Dashboard /wp-admin | 2,190 ▲13 | 5.55 ▼0.12 | 82.88 ▼10.05 | 42.11 ▼1.31 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.01 | 34.87 ▼3.64 | 41.40 ▲5.77 |
Add New Post /wp-admin/post-new.php | 1,529 ▲4 | 22.99 ▼0.35 | 678.90 ▲19.07 | 58.91 ▲0.82 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.13 ▼0.11 | 111.83 ▼6.13 | 48.56 ▼0.79 |
User Allowed IP Addresses /wp-admin/options-general.php?page=user-allowed-ip-addresses | 901 | 1.99 | 22.82 | 29.71 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=user-allowed-ip-addresses
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=user-allowed-ip-addresses
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/user-allowed-ip-addresses/admin/tpl/options.php:3
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== user-allowed-ip-addresses ===
)
user-allowed-ip-addresses/user-allowed-ip-addresses.php Passed 13 tests
"User Allowed IP Addresses" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
87 characters long description:
Gives the ability to restrict login access to specific IP addresses for specific users.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin342 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 170 | 428 | 342 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 24 | 70.59% |
▷ Protected methods | 5 | 14.71% |
▷ Private methods | 5 | 14.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin