Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.53MB] [CPU: ▼11.50ms] Passed 4 tests
Analyzing server-side resources used by IP Based Login
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.72 | 42.66 ▲0.57 |
Dashboard /wp-admin | 3.91 ▲0.56 | 40.20 ▼23.49 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 46.68 ▼4.25 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.25 | 75.54 ▼18.84 |
Media Library /wp-admin/upload.php | 3.91 ▲0.68 | 39.36 ▲5.99 |
Settings /wp-admin/admin.php?page=ip-based-login | 3.88 | 36.60 |
IP Based Login /wp-admin/options-general.php?page=ip-based-login | 3.88 | 38.33 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ip_based_login |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
ipbl_version |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for IP Based Login
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲90 | 14.73 ▲0.38 | 1.51 ▼0.18 | 35.87 ▼7.98 |
Dashboard /wp-admin | 2,257 ▲77 | 5.54 ▼0.13 | 95.35 ▼1.35 | 47.71 ▲0.85 |
Posts /wp-admin/edit.php | 2,162 ▲59 | 2.11 ▲0.10 | 39.33 ▼2.69 | 41.81 ▲2.93 |
Add New Post /wp-admin/post-new.php | 1,577 ▲51 | 23.22 ▼0.01 | 673.04 ▲55.12 | 52.12 ▼3.67 |
Media Library /wp-admin/upload.php | 1,462 ▲59 | 4.25 ▲0.05 | 97.70 ▼0.50 | 50.00 ▲6.23 |
Settings /wp-admin/admin.php?page=ip-based-login | 1,674 | 1.69 | 28.87 | 47.24 |
IP Based Login /wp-admin/options-general.php?page=ip-based-login | 1,656 | 1.69 | 28.41 | 41.45 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ip-based-login
- > Notice in wp-content/plugins/ip-based-login/init.php+1611
Undefined variable: env
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ip-based-login
- > Notice in wp-content/plugins/ip-based-login/init.php+1611
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ip-based-login/ip-based-login.php
- > /wp-content/plugins/ip-based-login/init.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
include_once(IPBL_LIB_DIR/IPv6/IPv6.php): failed to open stream: No such file or directory in wp-content/plugins/ip-based-login/functions.php on line 3
- > PHP Warning
Use of undefined constant IPBL_LIB_DIR - assumed 'IPBL_LIB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ip-based-login/functions.php on line 3
- > PHP Warning
include_once(): Failed opening 'IPBL_LIB_DIR/IPv6/IPv6.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ip-based-login/functions.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
ip-based-login/ip-based-login.php 92% from 13 tests
The primary PHP file in "IP Based Login" version 2.3.10 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 298 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin3,335 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 920 | 1,401 | 3,335 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 366.00 |
▷ Minimum class complexity | 366.00 |
▷ Maximum class complexity | 366.00 |
Average method complexity | 6.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.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 | 69 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 69 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 29 | 100.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
No PNG images were found in this plugin