Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼139.23ms] Passed 4 tests
This is a short check of server-side resources used by Free IP Lookup Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 39.16 ▲14.14 |
Dashboard /wp-admin | 3.09 ▲0.03 | 44.45 ▼5.28 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 44.99 ▲4.08 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 95.67 ▼552.51 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 38.04 ▼3.20 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 249 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_wpb_widget_free_ip_lookup |
Browser metrics Passed 4 tests
An overview of browser requirements for Free IP Lookup Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,691 ▲95 | 16.22 ▲0.94 | 8.10 ▼4.14 | 48.77 ▼1.76 |
Dashboard /wp-admin | 2,966 ▲35 | 6.05 ▲0.14 | 145.68 ▼9.84 | 118.19 ▼11.44 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.81 ▲0.11 | 68.40 ▼1.28 | 93.15 ▼11.35 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 14.40 ▼4.36 | 409.61 ▲14.08 | 108.74 ▼12.62 |
Media Library /wp-admin/upload.php | 1,807 ▲74 | 5.01 ▼0.02 | 192.36 ▲36.72 | 152.70 ▲14.87 |
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
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_wpb_widget_free_ip_lookup
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-ip-lookup-widget/free-ip-lookup-widget.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Contributors: The plugin contributors field is not present
free-ip-lookup-widget/free-ip-lookup-widget.php 85% from 13 tests
Analyzing the main PHP file in "Free IP Lookup Widget" version 1.2
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin230 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 54 | 21 | 166 |
CSS | 1 | 10 | 1 | 61 |
Markdown | 1 | 1 | 0 | 3 |
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.43 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
244 compressed PNG files occupy 0.18MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flags/TT.png | 0.95KB | 1.13KB | 0.00% |
images/flags/PS.png | 0.73KB | 0.80KB | 0.00% |
images/flags/AE.png | 0.79KB | 0.87KB | 0.00% |
images/flags/PY.png | 0.61KB | 0.76KB | 0.00% |
images/flags/SB.png | 0.92KB | 1.08KB | 0.00% |