Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▲264.96ms] 75% from 4 tests
An overview of server-side resources used by Admin Block Country
Please take the time to fix the following items
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 264.96ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 114.21 ▲37.12 |
Dashboard /wp-admin | 3.42 ▲0.01 | 701.95 ▲620.52 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 1,020.83 ▲939.52 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 854.64 ▼537.32 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 1,025.80 ▲971.20 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Admin Block Country
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,810 ▲56 | 16.15 ▲0.53 | 15.04 ▲4.04 | 3.05 ▼0.23 |
Dashboard /wp-admin | 2,938 ▲55 | 6.54 ▼0.02 | 267.99 ▲19.09 | 220.42 ▼33.91 |
Posts /wp-admin/edit.php | 2,708 ▲17 | 3.42 ▼0.01 | 100.32 ▼36.64 | 269.87 ▼4.67 |
Add New Post /wp-admin/post-new.php | 1,648 ▲14 | 16.15 ▲0.07 | 767.91 ▼54.64 | 225.07 ▲18.16 |
Media Library /wp-admin/upload.php | 1,712 ▲20 | 5.70 ▼0.04 | 259.92 ▼30.01 | 260.07 ▼49.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
The following issues need your attention
- 13× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/admin-block-country/geoip-api-php-master/sample.php
- > /wp-content/plugins/admin-block-country/geoip-api-php-master/sample_asn-v6.php
- > /wp-content/plugins/admin-block-country/geoip-api-php-master/benchmark.php
- > /wp-content/plugins/admin-block-country/geoip-api-php-master/sample_distributed.php
- > /wp-content/plugins/admin-block-country/geoip-api-php-master/sample_domain.php
- > /wp-content/plugins/admin-block-country/geoip-api-php-master/sample_netspeed.php
- > /wp-content/plugins/admin-block-country/geoip-api-php-master/sample_netspeedcell.php
- > /wp-content/plugins/admin-block-country/geoip-api-php-master/sample_region.php
- > /wp-content/plugins/admin-block-country/geoip-api-php-master/sample_org.php
- > /wp-content/plugins/admin-block-country/geoip-api-php-master/sample-v6.php
- 4095× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined offset: 1 in wp-content/plugins/admin-block-country/geoip-api-php-master/admin/generate_geoipregionvars.php on line 46
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/admin-block-country/geoip-api-php-master/admin/generate_geoipregionvars.php on line 43
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/admin-block-country/geoip-api-php-master/admin/generate_geoipregionvars.php on line 43
- > PHP Warning
fgets() expects parameter 1 to be resource, bool given in wp-content/plugins/admin-block-country/geoip-api-php-master/admin/generate_geoipregionvars.php on line 44
- > PHP Notice
Undefined offset: 1 in wp-content/plugins/admin-block-country/geoip-api-php-master/admin/generate_geoipregionvars.php on line 46
- > PHP Notice
Undefined offset: 1 in wp-content/plugins/admin-block-country/geoip-api-php-master/admin/generate_geoipregionvars.php on line 46
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/admin-block-country/geoip-api-php-master/admin/generate_geoipregionvars.php on line 43
- > PHP Notice
Undefined offset: 2 in wp-content/plugins/admin-block-country/geoip-api-php-master/admin/generate_geoipregionvars.php on line 46
- > PHP Warning
fgets() expects parameter 1 to be resource, bool given in wp-content/plugins/admin-block-country/geoip-api-php-master/admin/generate_geoipregionvars.php on line 44
- > PHP Warning
fgets() expects parameter 1 to be resource, bool given in wp-content/plugins/admin-block-country/geoip-api-php-master/admin/generate_geoipregionvars.php on line 44
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
admin-block-country/admin-block-country.php Passed 13 tests
The primary PHP file in "Admin Block Country" version 7.1.4 is used by WordPress to initiate all plugin functionality
29 characters long description:
Blocks admin site by country.
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
Success! There were no dangerous files found in this plugin8,274 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 215 | 132 | 8,128 |
Markdown | 1 | 33 | 0 | 62 |
Perl | 1 | 7 | 2 | 39 |
JSON | 1 | 0 | 0 | 21 |
CSS | 1 | 0 | 0 | 14 |
JavaScript | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis 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.46 |
Average class complexity | 41.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 8.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/edit.png | 1.69KB | 0.59KB | ▼ 65.22% |
images/rate-me.png | 2.62KB | 1.53KB | ▼ 41.67% |
images/trash.png | 1.52KB | 0.70KB | ▼ 53.85% |