Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.09ms] Passed 4 tests
This is a short check of server-side resources used by Show Visitor IP Address - Widget and Shortcode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.27 ▼1.90 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.38 ▼2.71 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.37 ▼4.05 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.26 ▼3.62 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.67 ▼1.96 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_show_ip |
Show_IPInputField2 |
widget_recent-posts |
Show_IPInputField1 |
theysaidso_admin_options |
can_compress_scripts |
Show_IPInputField3 |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Show Visitor IP Address - Widget and Shortcode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 14.47 ▼0.28 | 1.97 ▲0.11 | 43.98 ▲2.78 |
Dashboard /wp-admin | 2,224 ▲39 | 5.86 ▼0.02 | 112.90 ▲8.35 | 67.05 ▲22.59 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.03 ▲0.01 | 36.63 ▲2.29 | 32.07 ▼7.78 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 18.19 ▲0.54 | 647.57 ▼27.12 | 74.74 ▲11.57 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.18 ▲0.00 | 95.12 ▼8.93 | 80.13 ▲35.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_show_ip
- Show_IPInputField3
- theysaidso_admin_options
- can_compress_scripts
- Show_IPInputField1
- db_upgraded
- widget_recent-posts
- Show_IPInputField2
- widget_theysaidso_widget
- widget_recent-comments
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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: show ip, visitor ip, ip address, ip
show-visitor-ip-address-widget-and-shortcode/ShowIP-GSF.php 92% from 13 tests
The primary PHP file in "Show Visitor IP Address - Widget and Shortcode" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("show-visitor-ip-address-widget-and-shortcode.php" instead of "ShowIP-GSF.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin198 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 50 | 42 | 198 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.58 |
▷ 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 | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 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
7 PNG files occupy 0.73MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 59.83KB | 20.51KB | ▼ 65.72% |
screenshot-1.png | 478.74KB | 150.16KB | ▼ 68.64% |
promo.png | 36.28KB | 11.11KB | ▼ 69.38% |
screenicon.png | 9.01KB | 4.09KB | ▼ 54.63% |
screenshot-3.png | 133.41KB | 42.14KB | ▼ 68.42% |