Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▼0.40ms] 75% from 4 tests
An overview of server-side resources used by GEO Traffic Control and Redirect
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 1,002.57ms on /wp-admin/admin.php?page=plgsggeo_extensions_page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 41.10 ▼1.21 |
Dashboard /wp-admin | 3.70 ▲0.40 | 74.18 ▲27.78 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 56.97 ▲10.55 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 88.71 ▼16.19 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 39.94 ▲5.23 |
Settings & Support /wp-admin/admin.php?page=plgsggeo_protection&tab=4 | 3.93 | 65.40 |
Get Full Version /wp-admin/admin.php?page=register_plgsggeo_upgrade_redirect | 3.81 | 35.23 |
Backend protection /wp-admin/admin.php?page=plgsggeo_protection&tab=1 | 3.85 | 48.83 |
GEO Redirect /wp-admin/admin.php?page=plgsggeo_protection&tab=5 | 3.82 | 51.35 |
Logs /wp-admin/admin.php?page=plgsggeo_protection&tab=2 | 3.82 | 50.83 |
Security Extensions /wp-admin/admin.php?page=plgsggeo_extensions_page | 4.05 | 1,002.57 |
Front-end protection /wp-admin/admin.php?page=plgsggeo_protection | 3.85 | 52.35 |
Customize & Style /wp-admin/admin.php?page=plgsggeo_protection&tab=3 | 3.82 | 48.47 |
Server storage [IO: ▲11.02MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- Illegal file modification detected: 2 files (5.70KB) outside of "wp-content/plugins/geo-traffic-control-and-redirect/" and "wp-content/uploads/"
- (modified) wp-config.php
- (modified) .htaccess
Filesystem: 64 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_plgsggeo_stats |
wp_plgsggeo_ip |
wp_plgsggeo_config |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GEO Traffic Control and Redirect
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲82 | 14.55 ▼0.04 | 1.58 ▼0.44 | 39.19 ▼5.67 |
Dashboard /wp-admin | 2,237 ▲60 | 4.99 ▼0.70 | 97.47 ▲1.30 | 70.54 ▲33.54 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 2.35 ▲0.29 | 34.98 ▼9.46 | 36.85 ▼2.27 |
Add New Post /wp-admin/post-new.php | 1,723 ▲178 | 22.88 ▼0.36 | 672.56 ▲65.89 | 31.23 ▼19.18 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.55 ▲0.34 | 103.01 ▼4.70 | 81.91 ▲35.96 |
Settings & Support /wp-admin/admin.php?page=plgsggeo_protection&tab=4 | 1,344 | 2.36 | 37.42 | 141.39 |
Get Full Version /wp-admin/admin.php?page=register_plgsggeo_upgrade_redirect | 2,599 | 4.70 | 76.51 | 75.17 |
Backend protection /wp-admin/admin.php?page=plgsggeo_protection&tab=1 | 2,529 | 2.23 | 34.42 | 74.88 |
GEO Redirect /wp-admin/admin.php?page=plgsggeo_protection&tab=5 | 8,381 | 2.31 | 42.76 | 183.45 |
Logs /wp-admin/admin.php?page=plgsggeo_protection&tab=2 | 1,345 | 2.92 | 68.61 | 71.28 |
Security Extensions /wp-admin/admin.php?page=plgsggeo_extensions_page | 1,640 | 1.95 | 27.26 | 73.75 |
Front-end protection /wp-admin/admin.php?page=plgsggeo_protection | 2,560 | 2.28 | 34.89 | 71.19 |
Customize & Style /wp-admin/admin.php?page=plgsggeo_protection&tab=3 | 1,373 | 2.33 | 36.98 | 65.49 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% 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
- > GET request to /wp-admin/admin.php?page=plgsggeo_protection&tab=4
- > Notice in wp-content/plugins/geo-traffic-control-and-redirect/geo-traffic-control-and-redirect.php+2602
Constant DIRSEP already defined
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: You are using too many tags: 25 tag instead of maximum 10
- Screenshots: Please describe screenshot #4 in geo-traffic-control-and-redirect/assets to your readme.txt
geo-traffic-control-and-redirect/geo-traffic-control-and-redirect.php Passed 13 tests
"GEO Traffic Control and Redirect" version 2.9.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
138 characters long description:
Adds more security for your WordPress website. Blocks unwanted traffic, protects backend page. Blocks specific countries and IP addresses.
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
Success! There were no dangerous files found in this plugin11,839 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 9 | 3 | 16 | 6,729 |
PHP | 4 | 775 | 101 | 4,291 |
CSS | 1 | 30 | 372 | 439 |
JavaScript | 2 | 2 | 15 | 375 |
HTML | 1 | 0 | 0 | 4 |
JSON | 1 | 0 | 0 | 1 |
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.39 |
Average class complexity | 68.20 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 45 | 56.96% |
▷ Public methods | 57 | 72.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 27.85% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
11 PNG files occupy 0.27MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/livechat.png | 14.97KB | 6.22KB | ▼ 58.43% |
images/b10.png | 45.38KB | 12.07KB | ▼ 73.40% |
images/b13.png | 34.81KB | 8.06KB | ▼ 76.86% |
images/rek2.png | 18.78KB | 8.07KB | ▼ 57.02% |
images/geo-protection-logo.png | 1.24KB | 0.65KB | ▼ 47.88% |