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
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼2.06ms] Passed 4 tests
This is a short check of server-side resources used by IP Geolocation
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 42.71 ▲1.90 |
Dashboard /wp-admin | 3.51 ▲0.20 | 59.23 ▲10.12 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 48.06 ▼3.35 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.19 | 91.18 ▼6.64 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 37.39 ▼0.16 |
IP Geo Location Settings /wp-admin/options-general.php?page=ipgeo-settings | 3.40 | 35.85 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
IP Geolocation: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.26 ▼0.10 | 1.94 ▲0.37 | 45.09 ▲4.82 |
Dashboard /wp-admin | 2,202 ▲22 | 5.59 ▼0.07 | 96.37 ▲3.48 | 42.68 ▲3.48 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.00 ▼0.03 | 38.79 ▼3.85 | 36.24 ▼2.38 |
Add New Post /wp-admin/post-new.php | 6,367 ▲4,839 | 27.62 ▲4.44 | 898.91 ▲234.98 | 61.26 ▲4.89 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.18 ▼0.05 | 100.52 ▼19.85 | 42.27 ▼10.80 |
IP Geo Location Settings /wp-admin/options-general.php?page=ipgeo-settings | 823 | 2.05 | 26.01 | 32.47 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/ip-geolocation/includes/shortcode-generator/gutenberg/build/template.php:1
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/ip-geolocation/includes/shortcode-generator/divi/includes/modules/IPGeoDiviModule/IPGeoDiviModule.php:9
- > PHP Fatal error
Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/ip-geolocation/includes/shortcode-generator/divi/includes/IPGeoDivi.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ip-geolocation/includes/shortcode-generator/divi/ipgeo-divi.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ip-geolocation/ip-geolocation.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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
7 plugin tags: location of ip, ip geo location, ipinfo, geo location, ipinformation...
ip-geolocation/ip-geolocation.php 92% from 13 tests
This is the main PHP file of "IP Geolocation" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected1,549 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 258 | 453 | 1,387 |
CSS | 5 | 15 | 1 | 90 |
SVG | 2 | 1 | 1 | 29 |
JSON | 1 | 0 | 0 | 17 |
JSX | 1 | 6 | 2 | 15 |
JavaScript | 6 | 4 | 3 | 11 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 30.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 171.00 |
Average method complexity | 6.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 5 | 12.20% |
▷ Public methods | 33 | 80.49% |
▷ Protected methods | 7 | 17.07% |
▷ Private methods | 1 | 2.44% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin