Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.89MB] [CPU: ▲0.04ms] Passed 4 tests
Server-side resources used by iQ Block Country
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.38 ▲0.92 | 55.05 ▲9.71 |
Dashboard /wp-admin | 4.22 ▲0.92 | 56.82 ▲6.05 |
Posts /wp-admin/edit.php | 4.28 ▲0.92 | 48.80 ▼3.48 |
Add New Post /wp-admin/post-new.php | 6.74 ▲0.86 | 84.79 ▼12.13 |
Media Library /wp-admin/upload.php | 4.08 ▲0.86 | 48.59 ▲14.10 |
iQ Block Country /wp-admin/options-general.php?page=iq-block-country/libs/blockcountry-settings.php | 4.07 | 41.19 |
Server storage [IO: ▲0.99MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 365 new files
Database: 1 new table, 20 new options
New tables |
---|
wp_iqblock_logging |
New WordPress options |
---|
blockcountry_blockfeed |
blockcountry_ipoverride |
db_upgraded |
blockcountry_backendwhitelist |
blockcountry_backendnrblocks |
blockcountry_frontendnrblocks |
blockcountry_nrstatistics |
blockcountry_dbversion |
blockcountry_frontendwhitelist |
blockcountry_banlist_inverse |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for iQ Block Country
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲26 | 14.35 ▼0.18 | 2.16 ▲0.22 | 44.06 ▼1.02 |
Dashboard /wp-admin | 2,218 ▲38 | 5.54 ▼0.06 | 99.55 ▲13.83 | 49.05 ▲10.13 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.15 ▲0.15 | 33.30 ▼1.54 | 36.99 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,548 ▲11 | 23.67 ▲5.47 | 647.80 ▲48.50 | 53.91 ▼10.95 |
Media Library /wp-admin/upload.php | 1,426 ▲32 | 4.32 ▲0.13 | 95.37 ▲1.31 | 44.76 ▲1.89 |
iQ Block Country /wp-admin/options-general.php?page=iq-block-country/libs/blockcountry-settings.php | 1,358 | 1.87 | 29.12 | 46.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- blockcountry_nrstatistics
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 37× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractRecord' not found in wp-content/plugins/iq-block-country/vendor/geoip2/geoip2/src/Record/Postal.php:20
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/iq-block-country/vendor/maxmind/web-service-common/src/Exception/PermissionRequiredException.php:8
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractRecord' not found in wp-content/plugins/iq-block-country/vendor/geoip2/geoip2/src/Record/MaxMind.php:13
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Exception\\GeoIp2Exception' not found in wp-content/plugins/iq-block-country/vendor/geoip2/geoip2/src/Exception/OutOfQueriesException.php:8
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\City' not found in wp-content/plugins/iq-block-country/vendor/geoip2/geoip2/src/Model/Enterprise.php:45
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\WebServiceException' not found in wp-content/plugins/iq-block-country/vendor/maxmind/web-service-common/src/Exception/HttpException.php:8
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/iq-block-country/vendor/maxmind/web-service-common/src/Exception/IpAddressNotFoundException.php:5
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\Country' not found in wp-content/plugins/iq-block-country/vendor/geoip2/geoip2/src/Record/RepresentedCountry.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/iq-block-country/iq-block-country.php:141
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/iq-block-country/vendor/maxmind/web-service-common/src/Exception/InsufficientFundsException.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
iq-block-country/iq-block-country.php 92% from 13 tests
"iQ Block Country" version 1.2.21's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 207 characters long)
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
Everything looks great! No dangerous files found in this plugin11,270 lines of code in 92 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 69 | 983 | 1,780 | 6,285 |
PO File | 4 | 684 | 814 | 1,714 |
JavaScript | 2 | 97 | 14 | 1,165 |
Markdown | 7 | 346 | 0 | 784 |
C | 1 | 73 | 15 | 476 |
CSS | 1 | 10 | 25 | 415 |
JSON | 5 | 0 | 0 | 369 |
Bourne Shell | 1 | 20 | 0 | 40 |
m4 | 1 | 5 | 0 | 14 |
C/C++ Header | 1 | 4 | 12 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 5.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 3 | 6.12% |
▷ Concrete classes | 46 | 93.88% |
▷ Final classes | 0 | 0.00% |
Methods | 140 | |
▷ Static methods | 9 | 6.43% |
▷ Public methods | 92 | 65.71% |
▷ Protected methods | 1 | 0.71% |
▷ Private methods | 47 | 33.57% |
Functions | 77 | |
▷ Named functions | 73 | 94.81% |
▷ Anonymous functions | 4 | 5.19% |
Constants | 23 | |
▷ Global constants | 21 | 91.30% |
▷ Class constants | 2 | 8.70% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
260 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/ph.png | 0.53KB | 0.71KB | 0.00% |
icons/us.png | 0.59KB | 0.65KB | 0.00% |
icons/tc.png | 0.61KB | 0.73KB | 0.00% |
icons/ar.png | 0.49KB | 0.69KB | 0.00% |
icons/hn.png | 0.52KB | 0.70KB | 0.00% |