Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.62ms] Passed 4 tests
Server-side resources used by IP2Location Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.65 ▼1.20 |
Dashboard /wp-admin | 3.36 ▲0.02 | 48.54 ▼9.27 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 46.02 ▲0.26 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 82.90 ▼8.27 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.43 ▲1.66 |
IP2Location Widget /wp-admin/options-general.php?page=ip2location-widget | 3.25 | 29.37 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 10 new options
New WordPress options |
---|
ip2location_widget_type |
can_compress_scripts |
ip2location_widget_language |
widget_recent-comments |
theysaidso_admin_options |
widget_ip2locationwidget |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
ip2location_widget_debug_log_enabled |
Browser metrics Passed 4 tests
This is an overview of browser requirements for IP2Location Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.33 ▼0.24 | 1.76 ▲0.21 | 45.28 ▲6.10 |
Dashboard /wp-admin | 2,202 ▲28 | 5.70 ▲0.17 | 84.40 ▼1.80 | 36.91 ▼5.12 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.03 ▲0.03 | 33.52 ▼4.16 | 35.02 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.20 ▼4.56 | 628.11 ▼3.47 | 66.34 ▲6.24 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.24 ▲0.08 | 98.06 ▼9.01 | 41.57 ▼8.35 |
IP2Location Widget /wp-admin/options-general.php?page=ip2location-widget | 1,002 | 2.06 | 25.09 | 56.45 |
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 detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_ip2locationwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ip2location-widget/ip2location-widget.php:14
- > PHP Fatal error
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 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: widget, geolocation
ip2location-widget/ip2location-widget.php Passed 13 tests
"IP2Location Widget" version 1.2.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
81 characters long description:
Displays the geolocation information of the visitor who is visiting your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin376 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 63 | 10 | 316 |
JavaScript | 1 | 9 | 0 | 60 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin