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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.91ms] Passed 4 tests
An overview of server-side resources used by User Location and IP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 36.11 ▼1.13 |
Dashboard /wp-admin | 3.37 ▲0.02 | 47.67 ▼10.61 |
Posts /wp-admin/edit.php | 3.49 ▲0.12 | 50.24 ▲2.80 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.08 ▲0.68 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.71 ▼0.59 |
User Location and IP /wp-admin/options-general.php?page=user-location-and-ip | 3.26 | 29.80 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 266 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for User Location and IP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 14.28 ▼0.01 | 1.53 ▼0.11 | 38.44 ▼2.83 |
Dashboard /wp-admin | 2,202 ▲21 | 5.63 ▼0.06 | 87.58 ▼10.28 | 38.53 ▼6.64 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.03 | 39.50 ▲4.43 | 39.33 ▲5.23 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.65 ▼4.48 | 627.41 ▼110.59 | 65.14 ▲0.14 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.23 ▼0.02 | 93.30 ▼2.49 | 42.91 ▼3.22 |
User Location and IP /wp-admin/options-general.php?page=user-location-and-ip | 895 | 1.99 | 21.21 | 27.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/user-location-and-ip/user-location-and-ip.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-location-and-ip/admin/user-ip-menu.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: ip address, user ip address, user location, user country, locator...
user-location-and-ip/user-location-and-ip.php 92% from 13 tests
Analyzing the main PHP file in "User Location and IP" version 1.7
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 203 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected559 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 59 | 35 | 559 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 50.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
256 PNG files occupy 0.82MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/pn.png | 9.60KB | 5.00KB | ▼ 47.88% |
flags/mq.png | 6.41KB | 3.92KB | ▼ 38.88% |
flags/uz.png | 0.61KB | 0.67KB | 0.00% |
flags/ar.png | 4.19KB | 2.49KB | ▼ 40.49% |
flags/bw.png | 0.25KB | 0.26KB | 0.00% |