Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼288.85ms] Passed 4 tests
Server-side resources used by Advanced GeoIP Redirect
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 52.67 ▲0.48 |
Dashboard /wp-admin | 3.43 ▲0.03 | 38.14 ▲3.55 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 35.67 ▼1.13 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 95.21 ▼1,156.40 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 25.28 ▲1.66 |
Server storage [IO: ▲4.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 96 new files
Database: no new tables, 1 new option
New WordPress options |
---|
geoipr_redirect_options |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced GeoIP Redirect
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲68 | 15.84 ▼0.16 | 6.23 ▲0.66 | 2.39 ▼0.02 |
Dashboard /wp-admin | 2,897 ▲36 | 6.11 ▼0.05 | 116.78 ▼13.38 | 155.10 ▼5.11 |
Posts /wp-admin/edit.php | 2,690 ▲5 | 3.23 ▼0.03 | 61.91 ▲0.75 | 140.23 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,720 ▲81 | 20.81 ▲0.84 | 459.18 ▲33.05 | 155.31 ▲9.94 |
Media Library /wp-admin/upload.php | 1,706 ▲5 | 5.47 ▼0.01 | 135.14 ▼3.50 | 190.97 ▲5.31 |
GeoIP Redirect /wp-admin/geoip-redirect.php | 26 | 0.94 | 0.03 | 19.80 |
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 1 option in the database
- geoipr_redirect_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 fix the following
- 36× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'MaxMind\\WebService\\Http\\Request' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/maxmind/web-service-common/src/WebService/Http/CurlRequest.php:12
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractRecord' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Record/Traits.php:105
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractPlaceRecord' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Record/Subdivision.php:29
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Model/Country.php:30
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Exception\\GeoIp2Exception' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Exception/AddressNotFoundException.php:8
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Exception\\GeoIp2Exception' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Exception/AuthenticationException.php:8
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractPlaceRecord' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Record/Continent.php:22
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/examples/benchmark.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/maxmind/web-service-common/src/Exception/IpAddressNotFoundException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GeoIp2\\ProviderInterface' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/WebService/Client.php:44
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/geoip-redirect.php
- > Network (severe)
wp-admin/geoip-redirect.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: redirect, wpml redirect, redirect visitor, redirect by country
adv-geoip-redirect/adv-geoip-redirect.php 92% from 13 tests
The main PHP script in "Advanced GeoIP Redirect" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
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
There were no executable files found in this plugin12,631 lines of code in 86 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 1,037 | 8 | 7,685 |
PHP | 64 | 817 | 1,766 | 2,933 |
Markdown | 7 | 370 | 0 | 875 |
C | 1 | 97 | 18 | 589 |
JSON | 6 | 0 | 0 | 389 |
JavaScript | 2 | 41 | 19 | 80 |
Bourne Shell | 1 | 20 | 0 | 40 |
m4 | 1 | 8 | 0 | 32 |
C/C++ Header | 1 | 4 | 12 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 7.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 3 | 5.66% |
▷ Concrete classes | 50 | 94.34% |
▷ Final classes | 0 | 0.00% |
Methods | 171 | |
▷ Static methods | 27 | 15.79% |
▷ Public methods | 124 | 72.51% |
▷ Protected methods | 1 | 0.58% |
▷ Private methods | 46 | 26.90% |
Functions | 10 | |
▷ Named functions | 2 | 20.00% |
▷ Anonymous functions | 8 | 80.00% |
Constants | 21 | |
▷ Global constants | 3 | 14.29% |
▷ Class constants | 18 | 85.71% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin