Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.62ms] Passed 4 tests
Analyzing server-side resources used by PB Unblock some IPs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.79 ▼1.81 |
Dashboard /wp-admin | 3.35 ▲0.04 | 49.14 ▼7.00 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.73 ▼4.63 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 98.52 ▲8.90 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.22 ▼1.04 |
PB Unblock some IPs /wp-admin/options-general.php?page=pb-unblock-some-ips | 3.23 | 35.22 |
Server storage [IO: ▲0.04MB] [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: 1 file (4.00KB) outside of "wp-content/plugins/pb-unblock-some-ips/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for PB Unblock some IPs
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲107 | 13.24 ▼1.14 | 4.83 ▲2.94 | 45.38 ▲2.00 |
Dashboard /wp-admin | 2,238 ▲71 | 4.88 ▼0.77 | 103.20 ▼7.49 | 41.48 ▼0.77 |
Posts /wp-admin/edit.php | 2,117 ▲20 | 2.05 ▲0.07 | 42.55 ▲7.45 | 38.03 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,535 ▼10 | 23.15 ▼0.26 | 637.53 ▲7.46 | 62.04 ▲11.86 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.27 ▲0.00 | 96.99 ▼7.80 | 46.51 ▲1.59 |
PB Unblock some IPs /wp-admin/options-general.php?page=pb-unblock-some-ips | 922 | 2.18 | 27.82 | 51.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
pb-unblock-some-ips/pb-unblock-some-ips.php Passed 13 tests
This is the main PHP file of "PB Unblock some IPs" version 0.7.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
Block your website from being viewed - But unblock some IPs!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin465 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 30 | 21 | 169 |
CSS | 1 | 0 | 0 | 135 |
LESS | 1 | 15 | 0 | 102 |
PO File | 1 | 14 | 14 | 59 |
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 issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 5 | |
▷ Global constants | 5 | 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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/linkedin.png | 1.19KB | 0.75KB | ▼ 36.86% |
assets/images/facebook.png | 0.76KB | 0.47KB | ▼ 37.85% |
assets/images/mail.png | 1.16KB | 0.69KB | ▼ 40.34% |
assets/images/pbusi-logo.png | 11.91KB | 7.30KB | ▼ 38.65% |
assets/images/internet.png | 3.28KB | 1.84KB | ▼ 43.84% |