Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▲0.30ms] Passed 4 tests
A check of server-side resources used by Login IP Restrictor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 42.81 ▲0.76 |
Dashboard /wp-admin | 3.44 ▲0.14 | 50.35 ▲0.71 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 52.67 ▼6.16 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 103.87 ▲5.88 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 44.75 ▲8.07 |
LOGIN Restrictor /wp-admin/options-general.php?page=lgs-submenu-page | 3.33 | 33.98 |
Server storage [IO: ▲7.70MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- You have illegally modified 2 files (0.99KB) outside of "wp-content/plugins/login-tracker-logs/" and "wp-content/uploads/"
- (new file) wp-content/ALLOWED_IP/wp_com/.htaccess
- (new file) wp-content/ALLOWED_IP/wp_com/ALLOWED_IPs_FOR_WP_LOGIN.txt
Filesystem: 42 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_restrictor_logins |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
optLRL__arrays |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Login IP Restrictor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.21 ▼1.38 | 4.68 ▲2.68 | 40.29 ▼4.97 |
Dashboard /wp-admin | 2,207 ▲19 | 5.96 ▲0.06 | 102.89 ▼4.13 | 40.40 ▼0.09 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.02 | 35.75 ▼14.46 | 36.99 ▼10.95 |
Add New Post /wp-admin/post-new.php | 1,535 ▲16 | 23.41 ▲0.21 | 666.84 ▲10.39 | 55.84 ▼8.37 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.35 ▲0.13 | 96.90 ▼18.68 | 42.73 ▼11.07 |
LOGIN Restrictor /wp-admin/options-general.php?page=lgs-submenu-page | 1,183 | 1.69 | 23.40 | 43.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 tables were found after uninstall: 1 table
- wp_restrictor_logins
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- optLRL__arrays
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 27× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GeoIp2\\ProviderInterface' not found in wp-content/plugins/login-tracker-logs/ip_country_data/GeoIP_V2/GeoIp2/Database/Reader.php:34
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/login-tracker-logs/ip_country_data/GeoIP_V2/GeoIp2/Model/ConnectionType.php:16
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\City' not found in wp-content/plugins/login-tracker-logs/ip_country_data/GeoIP_V2/GeoIp2/Model/Enterprise.php:54
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/login-tracker-logs/ip_country_data/GeoIP_V2/GeoIp2/Model/AnonymousIp.php:27
- > PHP Fatal error
Uncaught Error: Interface 'GeoIp2\\Compat\\JsonSerializable' not found in wp-content/plugins/login-tracker-logs/ip_country_data/GeoIP_V2/GeoIp2/Record/AbstractRecord.php:7
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/login-tracker-logs/ip_country_data/GeoIP_V2/GeoIp2/Model/Domain.php:16
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Exception\\HttpException' not found in wp-content/plugins/login-tracker-logs/ip_country_data/GeoIP_V2/GeoIp2/Exception/InvalidRequestException.php:9
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/login-tracker-logs/ip_country_data/GeoIP_V2/GeoIp2/Model/Country.php:35
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\Country' not found in wp-content/plugins/login-tracker-logs/ip_country_data/GeoIP_V2/GeoIp2/Record/RepresentedCountry.php:31
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractPlaceRecord' not found in wp-content/plugins/login-tracker-logs/ip_country_data/GeoIP_V2/GeoIp2/Record/Subdivision.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: logins, attempts, track, restrict, disable...
login-tracker-logs/index.php 85% from 13 tests
The primary PHP file in "Login IP Restrictor" version 2.27 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("login-tracker-logs.php" instead of "index.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 170 characters long)
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
Good job! No executable or dangerous file extensions detected1,552 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 369 | 1,112 | 1,552 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 3 | 8.82% |
▷ Concrete classes | 31 | 91.18% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 1 | 0.90% |
▷ Public methods | 75 | 67.57% |
▷ Protected methods | 4 | 3.60% |
▷ Private methods | 32 | 28.83% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 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
No PNG files were detected