Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼6.96ms] Passed 4 tests
This is a short check of server-side resources used by Foxlis Geo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 42.80 ▼0.88 |
Dashboard /wp-admin | 3.49 ▲0.15 | 49.82 ▼16.66 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 49.09 ▲0.19 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 92.69 ▼10.47 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 44.76 ▲6.69 |
Filter /wp-admin/admin.php?page=foxlis_geo_options_filter | 3.38 | 32.75 |
Development /wp-admin/admin.php?page=foxlis_geo_options_development | 3.38 | 36.40 |
About /wp-admin/admin.php?page=foxlis_geo | 3.42 | 237.78 |
Options /wp-admin/admin.php?page=foxlis_geo_options | 3.38 | 30.26 |
Account /wp-admin/admin.php?page=foxlis_geo_options_account | 3.43 | 32.78 |
Redirect /wp-admin/admin.php?page=foxlis_geo_options_redirect | 3.38 | 35.23 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
foxlis_geo_options |
foxlis_geo_options_development |
widget_theysaidso_widget |
can_compress_scripts |
foxlis_geo_options_filter |
Browser metrics Passed 4 tests
Foxlis Geo: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲62 | 14.35 ▼0.37 | 1.60 ▼0.69 | 41.82 ▼0.98 |
Dashboard /wp-admin | 2,227 ▲50 | 5.56 ▼0.01 | 89.72 ▼13.30 | 75.86 ▲32.77 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 1.97 ▼0.06 | 37.46 ▼0.68 | 32.69 ▼4.90 |
Add New Post /wp-admin/post-new.php | 1,715 ▲189 | 22.13 ▼0.76 | 688.63 ▼17.94 | 65.50 ▲11.56 |
Media Library /wp-admin/upload.php | 1,444 ▲47 | 4.16 ▼0.06 | 104.25 ▼2.66 | 76.05 ▲27.72 |
Filter /wp-admin/admin.php?page=foxlis_geo_options_filter | 874 | 1.99 | 25.27 | 30.04 |
Development /wp-admin/admin.php?page=foxlis_geo_options_development | 877 | 2.01 | 24.25 | 29.22 |
About /wp-admin/admin.php?page=foxlis_geo | 1,026 | 2.00 | 23.23 | 41.78 |
Options /wp-admin/admin.php?page=foxlis_geo_options | 1,050 | 2.01 | 23.01 | 23.98 |
Account /wp-admin/admin.php?page=foxlis_geo_options_account | 843 | 1.98 | 24.50 | 30.42 |
Redirect /wp-admin/admin.php?page=foxlis_geo_options_redirect | 1,078 | 2.00 | 24.22 | 29.22 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-comments
- can_compress_scripts
- foxlis_geo_options_development
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- foxlis_geo_options_filter
- foxlis_geo_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=foxlis_geo
- > Warning in wp-content/plugins/foxlis-geo/src/Foxlis/Geo/Services/FoxlisGeoService.php+170
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=foxlis_geo
- > Warning in wp-content/plugins/foxlis-geo/src/Foxlis/Geo/Services/FoxlisGeoService.php+170
file_get_contents(http://geo.foxlis.com/get-geo-by-ip/127.0.0.1): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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
Please fix the following
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Foxlis\\Geo\\Entities\\FoxlisGeoAbstractEntity' not found in wp-content/plugins/foxlis-geo/src/Foxlis/Geo/Entities/FoxlisGeoAbstractEntityLanguages.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foxlis-geo/foxlis-geo-api.php:3
- > PHP Fatal error
Uncaught Error: Class 'Foxlis\\Geo\\Entities\\FoxlisGeoAbstractEntityLanguagesLocation' not found in wp-content/plugins/foxlis-geo/src/Foxlis/Geo/Entities/FoxlisGeoCountry.php:5
- > PHP Fatal error
Uncaught Error: Class 'Foxlis\\Geo\\Entities\\FoxlisGeoAbstractEntityLanguagesLocation' not found in wp-content/plugins/foxlis-geo/src/Foxlis/Geo/Entities/FoxlisGeoContinent.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foxlis-geo/foxlis-geo-redirect.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/foxlis-geo/foxlis-geo.php:72
- > PHP Fatal error
Uncaught Error: Class 'Foxlis\\Geo\\Entities\\FoxlisGeoAbstractEntityLanguages' not found in wp-content/plugins/foxlis-geo/src/Foxlis/Geo/Entities/FoxlisGeoAbstractEntityLanguagesLocation.php:5
- > PHP Fatal error
Uncaught Error: Class 'Foxlis\\Geo\\Entities\\FoxlisGeoAbstractEntityLanguagesLocation' not found in wp-content/plugins/foxlis-geo/src/Foxlis/Geo/Entities/FoxlisGeoCity.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foxlis-geo/foxlis-geo-filter.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foxlis-geo/foxlis-geo-options.php:122
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: redirect, developing, country, ip-location, location...
foxlis-geo/foxlis-geo.php Passed 13 tests
"Foxlis Geo" version 2.8.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
40 characters long description:
Find geo location website visitor by ip.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,231 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 373 | 165 | 2,062 |
JavaScript | 1 | 12 | 0 | 140 |
CSS | 1 | 4 | 0 | 29 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 6.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 3 | 13.64% |
▷ Concrete classes | 19 | 86.36% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 8 | 9.88% |
▷ Public methods | 63 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 22.22% |
Functions | 42 | |
▷ Named functions | 37 | 88.10% |
▷ Anonymous functions | 5 | 11.90% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/foxlis-icon-mini.png | 0.72KB | 0.57KB | ▼ 21.38% |