Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5747
Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.58ms] Passed 4 tests
Server-side resources used by OWASP User Location Check
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.04 ▼2.50 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.04 ▼1.13 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.74 ▼2.57 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.00 ▼8.11 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.51 ▲2.79 |
OWASP /wp-admin/options-general.php?page=owasp | 3.24 | 33.85 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_owasp |
wp_owasp_black |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
time_owasp |
theysaidso_admin_options |
can_compress_scripts |
email_owasp |
Browser metrics Passed 4 tests
An overview of browser requirements for OWASP User Location Check
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.69 ▲0.27 | 1.70 ▼0.08 | 40.97 ▼3.90 |
Dashboard /wp-admin | 2,202 ▲22 | 5.59 ▲0.05 | 86.04 ▼4.32 | 38.85 ▼3.73 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.00 ▼0.02 | 37.89 ▼3.48 | 31.64 ▼4.61 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.54 ▲0.60 | 617.30 ▼31.51 | 54.66 ▲3.32 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.23 ▲0.03 | 101.27 ▼3.91 | 48.09 ▲6.10 |
OWASP /wp-admin/options-general.php?page=owasp | 930 | 1.99 | 24.99 | 26.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: ip in wp-content/plugins/owasp-user-location-check/includes/addIP.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function owasp_time() in wp-content/plugins/owasp-user-location-check/includes/mainSettings.php:13
- > PHP Notice
Undefined variable: title in wp-content/plugins/owasp-user-location-check/includes/addIP.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/owasp-user-location-check/checker.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/owasp-user-location-check/includes/addIP.php:17
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: user country check, owasp login validation, user location check, security, change user location...
owasp-user-location-check/checker.php 85% from 13 tests
The main PHP file in "OWASP User Location Check" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("owasp-user-location-check.php" instead of "checker.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin338 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 71 | 41 | 338 |
PHP code Passed 2 tests
An overview of 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.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin