Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.99ms] Passed 4 tests
This is a short check of server-side resources used by User IP and Location
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.45 ▼1.07 |
Dashboard /wp-admin | 3.36 ▲0.02 | 45.69 ▼22.06 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 44.88 ▼0.28 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 79.81 ▼12.55 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.69 ▲2.01 |
User IP and Location /wp-admin/options-general.php?page=user-ip-and-location | 3.25 | 29.89 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 266 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for User IP and Location
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 14.36 ▼0.20 | 1.98 ▲0.27 | 39.86 ▼3.43 |
Dashboard /wp-admin | 2,199 ▲19 | 5.51 ▼0.11 | 80.60 ▼8.05 | 38.23 ▲0.35 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▼0.02 | 39.10 ▲2.57 | 35.11 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.27 ▼0.40 | 656.20 ▼44.67 | 52.21 ▼6.64 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▲0.01 | 95.32 ▼6.82 | 42.34 ▼1.41 |
User IP and Location /wp-admin/options-general.php?page=user-ip-and-location | 895 | 2.02 | 23.52 | 25.93 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
user-ip-and-location/user-ip-and-location.php Passed 13 tests
The primary PHP file in "User IP and Location" version 3.1 is used by WordPress to initiate all plugin functionality
113 characters long description:
Allows you to insert user's IP address, Location, ISP, City in your WordPress blog post and page using shortcode.
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
Everything looks great! No dangerous files found in this plugin414 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 58 | 47 | 414 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 70.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 29.63% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
256 PNG files occupy 0.82MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/ax.png | 0.40KB | 0.40KB | 0.00% |
flags/sk.png | 3.51KB | 2.54KB | ▼ 27.79% |
flags/cu.png | 2.10KB | 1.40KB | ▼ 33.18% |
flags/eu.png | 3.92KB | 2.59KB | ▼ 33.99% |
flags/de.png | 0.13KB | 0.13KB | 0.00% |