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.03MB] [CPU: ▼2.62ms] Passed 4 tests
This is a short check of server-side resources used by Redirect via Geo IP WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 43.58 ▼0.02 |
Dashboard /wp-admin | 3.33 ▲0.03 | 52.15 ▼2.20 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 53.64 ▼5.18 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 95.07 ▲2.18 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.85 ▼3.08 |
Redirect via Geo IP /wp-admin/options-general.php?page=redirect-geo-ip | 3.20 | 33.18 |
Server storage [IO: ▲0.02MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_rgisunarc_countries |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Redirect via Geo IP WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.15 ▼0.48 | 1.79 ▼0.03 | 42.08 ▼2.51 |
Dashboard /wp-admin | 2,196 ▲19 | 5.57 ▼0.01 | 88.42 ▼13.97 | 41.20 ▼1.03 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.02 | 42.08 ▲2.80 | 36.97 ▼5.08 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.51 ▼0.07 | 640.83 ▲18.44 | 57.28 ▼1.34 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.28 ▲0.06 | 99.09 ▼3.65 | 47.38 ▲4.54 |
Redirect via Geo IP /wp-admin/options-general.php?page=redirect-geo-ip | 2,107 | 2.01 | 25.99 | 28.83 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
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
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=redirect-geo-ip
- > Notice in wp-content/plugins/redirect-geo-ip/redirect-geo-ip.php+103
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/redirect-geo-ip/INC/country_tbl.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/redirect-geo-ip/INC/country_tbl.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/redirect-geo-ip/INC/country_tbl.php on line 3
- > PHP Warning
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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: woocommerce
redirect-geo-ip/redirect-geo-ip.php Passed 13 tests
"Redirect via Geo IP WooCommerce" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
110 characters long description:
Redirect via Geo IP plugin automatically determines visitors locations and redirects them to the correct store
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected377 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 41 | 34 | 377 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin