Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.44ms] Passed 4 tests
A check of 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.62 ▲0.16 | 42.15 ▲4.05 |
Dashboard /wp-admin | 3.46 ▲0.15 | 43.49 ▼1.57 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 48.05 ▲0.07 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 81.49 ▼12.02 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.87 ▲3.77 |
Server storage [IO: ▲6.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 104 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
geoipr_redirect_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced GeoIP Redirect
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.47 ▲0.10 | 2.00 ▲0.21 | 45.43 ▲0.64 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼0.06 | 109.84 ▲4.84 | 49.63 ▲9.70 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.04 | 39.52 ▼1.24 | 34.11 ▼2.42 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.50 ▲0.23 | 668.86 ▼10.49 | 55.73 ▼3.80 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▲0.04 | 94.86 ▼13.00 | 40.03 ▼6.54 |
GeoIP Redirect /wp-admin/geoip-redirect.php | 26 | 0.44 | 0.08 | 14.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- geoipr_redirect_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
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)
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 37× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > 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/InsufficientFundsException.php:10
- > PHP Warning
require(wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/examples/benchmark.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Model/ConnectionType.php:21
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Model/Domain.php:21
- > 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:49
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractRecord' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Record/Postal.php:22
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractRecord' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Record/AbstractPlaceRecord.php:7
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Exception\\HttpException' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Exception/InvalidRequestException.php:11
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractPlaceRecord' not found in wp-content/plugins/adv-geoip-redirect/includes/vendor/geoip2/geoip2/src/Record/Country.php:30
- > 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/PermissionRequiredException.php:10
- > 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 take a look at the following user-side issues
- > 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 uses markdown syntax to describe your plugin to the world
4 plugin tags: wpml redirect, redirect visitor, redirect, 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.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- 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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin13,431 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 1,037 | 7 | 7,685 |
PHP | 67 | 956 | 2,236 | 3,427 |
Markdown | 7 | 411 | 0 | 990 |
C | 1 | 118 | 25 | 668 |
JSON | 6 | 0 | 0 | 431 |
JavaScript | 2 | 30 | 19 | 93 |
XML | 1 | 4 | 0 | 59 |
Bourne Shell | 1 | 18 | 0 | 38 |
m4 | 1 | 8 | 0 | 32 |
C/C++ Header | 1 | 4 | 12 | 8 |
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.41 |
Average class complexity | 8.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 3 | 5.56% |
▷ Concrete classes | 51 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 190 | |
▷ Static methods | 46 | 24.21% |
▷ Public methods | 137 | 72.11% |
▷ Protected methods | 1 | 0.53% |
▷ Private methods | 52 | 27.37% |
Functions | 10 | |
▷ Named functions | 2 | 20.00% |
▷ Anonymous functions | 8 | 80.00% |
Constants | 20 | |
▷ Global constants | 2 | 10.00% |
▷ Class constants | 18 | 90.00% |
▷ Public constants | 2 | 11.11% |
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