Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.80ms] Passed 4 tests
An overview of server-side resources used by GeoRouter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.05 ▼7.17 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.41 ▼15.41 |
Posts /wp-admin/edit.php | 3.48 ▲0.11 | 48.40 ▼1.79 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.04 ▼1.65 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.10 ▼2.83 |
GeoRouter /wp-admin/options-general.php?page=georouter | 3.23 | 32.85 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GeoRouter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.05 ▼0.30 | 1.82 ▲0.23 | 43.87 ▼2.24 |
Dashboard /wp-admin | 2,196 ▲16 | 5.54 ▼0.06 | 81.96 ▼12.55 | 40.26 ▲0.63 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.04 | 39.72 ▼0.04 | 36.07 ▲0.23 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.32 ▲0.33 | 637.68 ▼27.18 | 56.99 ▲2.65 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.09 | 102.98 ▼4.84 | 42.37 ▼7.38 |
GeoRouter /wp-admin/options-general.php?page=georouter | 887 | 1.97 | 21.60 | 28.14 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=georouter
- > Warning in wp-content/plugins/georouter/includes/class-georouter-config.php+171
array_key_exists() expects parameter 2 to be array, bool given
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=georouter
- > Notice in wp-content/plugins/georouter/includes/class-georouter-config.php+166
Trying to access array offset on value of type bool
SRP Passed 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 SRP test was a success
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in georouter/assets to your readme.txt
georouter/georouter.php Passed 13 tests
Analyzing the main PHP file in "GeoRouter" version 1.0.1
123 characters long description:
Auto-redirect website visitors using IP geolocation technology. Configure your routing by continent, country, state & city.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected291 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 34 | 52 | 291 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 6 | 22.22% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
4 compressed PNG files occupy 0.21MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 18.95KB | 18.87KB | 0.39% |
assets/screenshot-1.png | 176.02KB | 179.77KB | 0.00% |
assets/icon-256x256.png | 15.45KB | 12.71KB | ▼ 17.76% |
assets/screenshot-3.png | 8.52KB | 8.04KB | ▼ 5.62% |