Benchmarks
Plugin footprint 23% 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
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/infosniper/public/class-infosniper-public.php+814
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
Server metrics [RAM: ▼1.18MB] [CPU: ▼40.30ms] Passed 4 tests
Analyzing server-side resources used by infoSNIPER
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.79 ▼0.68 | 18.34 ▼20.96 |
Dashboard /wp-admin | 2.84 ▼0.47 | 20.96 ▼30.25 |
Posts /wp-admin/edit.php | 2.84 ▼0.52 | 15.85 ▼30.89 |
Add New Post /wp-admin/post-new.php | 2.84 ▼3.05 | 20.14 ▼79.10 |
Media Library /wp-admin/upload.php | 2.84 ▼0.39 | 22.55 ▼13.11 |
Server storage [IO: ▲3.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 92 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_infoSniperAddresses |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
infosniper_db_v1_0_1 |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by infoSNIPER
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 13.74 ▼0.82 | 18.76 ▲16.91 | 42.81 ▲1.48 |
Dashboard /wp-admin | 2,212 ▲35 | 5.62 ▼0.05 | 94.95 ▲7.07 | 41.05 ▼3.27 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.02 ▲0.03 | 38.23 ▲0.28 | 34.65 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,541 ▲5 | 23.08 ▲4.73 | 639.74 ▼12.11 | 56.28 ▼13.06 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.21 ▲0.03 | 96.78 ▼12.24 | 47.35 ▲2.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/infosniper/public/class-infosniper-public.php+269
Trying to access array offset on value of type bool
- Zombie tables detected upon uninstall: 1 table
- wp_infoSniperAddresses
- Zombie WordPress options were found after uninstall: 7 options
- infosniper_db_v1_0_1
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 output text when accessed directly:
- > /wp-content/plugins/infosniper/public/partials/infosniper-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/infosniper/admin/partials/infosniper-admin-display.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: tracking, geolocation
infosniper/infosniper.php Passed 13 tests
The main PHP file in "infoSNIPER" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
83 characters long description:
Track incoming IP Addresses and display information about them using infoSNIPER.net
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 plugin16,218 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 8,882 |
CSS | 10 | 1,576 | 53 | 4,069 |
PHP | 12 | 315 | 1,106 | 2,115 |
JavaScript | 6 | 123 | 449 | 1,152 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 17.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 2 | 2.86% |
▷ Public methods | 65 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.14% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
36 compressed PNG files occupy 0.17MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/infosniper-icon-white.png | 2.65KB | 1.86KB | ▼ 29.90% |
admin/css/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
public/css/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
public/css/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
admin/css/images/mac-logo.png | 3.62KB | 2.02KB | ▼ 44.31% |