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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.32ms] Passed 4 tests
An overview of server-side resources used by Easy Bouncer - Redirect by IP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.11 ▼7.44 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.16 ▼2.92 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 46.10 ▼5.64 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 92.83 ▼1.29 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.98 ▲1.14 |
Redirect by IP /wp-admin/options-general.php?page=eri-options-page | 3.26 | 31.42 |
Server storage [IO: ▲0.05MB] [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: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
eri_safe_ips |
widget_theysaidso_widget |
eri_pass_key |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Easy Bouncer - Redirect by IP: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 14.80 ▲0.43 | 1.67 ▼0.53 | 38.95 ▼6.59 |
Dashboard /wp-admin | 2,220 ▲29 | 4.85 ▼1.03 | 105.97 ▼9.83 | 40.66 ▼3.77 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 1.96 ▼0.09 | 42.46 ▲1.26 | 38.35 ▲3.17 |
Add New Post /wp-admin/post-new.php | 1,555 ▲33 | 23.17 ▼0.05 | 604.29 ▼40.43 | 68.45 ▲2.45 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.23 ▼0.00 | 98.46 ▲3.79 | 43.28 ▲3.43 |
Redirect by IP /wp-admin/options-general.php?page=eri-options-page | 910 | 1.78 | 28.43 | 50.21 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: redirect, redirection by ip address, beforesite, private website, site redirection...
easy-redirect-by-ip/easy-redirect-by-ip.php 92% from 13 tests
The primary PHP file in "Easy Bouncer - Redirect by IP" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 215 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
No dangerous file extensions were detected277 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 33 | 42 | 264 |
JavaScript | 2 | 2 | 5 | 11 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.67KB | 1.01KB | ▼ 39.73% |
images/gvw-clouds-2.png | 3.44KB | 2.60KB | ▼ 24.59% |
images/gvw-clouds-01.png | 3.64KB | 2.78KB | ▼ 23.64% |
images/erip-icon-32by32.png | 1.47KB | 1.03KB | ▼ 29.65% |