Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.86MB] [CPU: ▼285.50ms] Passed 4 tests
An overview of server-side resources used by Who Hit The Page - Hit Counter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.41 ▲0.90 | 58.96 ▲5.23 |
Dashboard /wp-admin | 4.26 ▲0.85 | 39.67 ▲4.58 |
Posts /wp-admin/edit.php | 4.49 ▲0.85 | 44.01 ▲5.81 |
Add New Post /wp-admin/post-new.php | 7.79 ▲0.83 | 101.78 ▼1,152.58 |
Media Library /wp-admin/upload.php | 4.20 ▲0.90 | 31.74 ▲0.79 |
/wp-admin/admin.php?page=whtp-force-update | 4.17 | 29.12 |
Who Hit The Page /wp-admin/admin.php?page=whtp-admin-menu | 4.21 | 34.52 |
View Page Hits /wp-admin/admin.php?page=whtp-view-page-hits | 4.21 | 29.85 |
View IP Hits /wp-admin/admin.php?page=whtp-view-ip-hits | 4.22 | 28.05 |
Denied IPs /wp-admin/admin.php?page=whtp-denied-ips | 4.23 | 29.25 |
Help /wp-admin/admin.php?page=whtp-help | 4.20 | 27.43 |
Settings /wp-admin/admin.php?page=whtp-settings | 4.24 | 30.60 |
Visitor Stats /wp-admin/admin.php?page=whtp-visitor-stats | 4.23 | 27.29 |
Server storage [IO: ▲3.14MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 808 new files
Database: 6 new tables, 2 new options
New tables |
---|
wp_whtp_hitinfo |
wp_whtp_ip2location |
wp_whtp_ip_hits |
wp_whtp_visiting_countries |
wp_whtp_user_agents |
wp_whtp_hits |
New WordPress options |
---|
whtp_version |
whtp_installed |
Browser metrics Passed 4 tests
Checking browser requirements for Who Hit The Page - Hit Counter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,862 ▲140 | 15.87 ▲0.03 | 5.93 ▲0.19 | 2.22 ▼0.49 |
Dashboard /wp-admin | 2,968 ▲107 | 6.25 ▼0.13 | 123.95 ▼12.52 | 177.60 ▲16.37 |
Posts /wp-admin/edit.php | 2,764 ▲70 | 3.43 ▼0.00 | 62.75 ▼1.88 | 136.54 ▼10.08 |
Add New Post /wp-admin/post-new.php | 1,708 ▼3 | 17.43 ▼3.67 | 431.13 ▼8.20 | 155.32 ▼7.33 |
Media Library /wp-admin/upload.php | 1,769 ▲74 | 5.68 ▼0.04 | 124.01 ▼19.14 | 205.97 ▲9.38 |
/wp-admin/admin.php?page=whtp-force-update | 1,056 | 2.70 | 55.21 | 89.34 |
Who Hit The Page /wp-admin/admin.php?page=whtp-admin-menu | 1,169 | 3.02 | 59.63 | 92.27 |
View Page Hits /wp-admin/admin.php?page=whtp-view-page-hits | 1,231 | 3.10 | 60.88 | 101.80 |
View IP Hits /wp-admin/admin.php?page=whtp-view-ip-hits | 1,085 | 2.97 | 60.20 | 84.81 |
Denied IPs /wp-admin/admin.php?page=whtp-denied-ips | 1,112 | 2.99 | 59.06 | 89.38 |
Help /wp-admin/admin.php?page=whtp-help | 1,267 | 2.98 | 58.18 | 94.27 |
Settings /wp-admin/admin.php?page=whtp-settings | 3,352 | 3.09 | 60.34 | 100.08 |
Visitor Stats /wp-admin/admin.php?page=whtp-visitor-stats | 1,099 | 2.97 | 60.93 | 80.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 tables in the database
- wp_whtp_user_agents
- wp_whtp_hits
- wp_whtp_ip2location
- wp_whtp_hitinfo
- wp_whtp_ip_hits
- wp_whtp_visiting_countries
- Zombie WordPress options were found after uninstall: 2 options
- whtp_version
- whtp_installed
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=whtp-view-page-hits
- > Warning in wp-content/plugins/who-hit-the-page-hit-counter/partials/view/all-page-hits.php+24
count(): Parameter must be an array or an object that implements Countable
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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/who-hit-the-page-hit-counter/vendor/mahlamusa/material-php/tests/test.php
- 74× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/who-hit-the-page-hit-counter/vendor/guzzlehttp/guzzle/src/Pool.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/who-hit-the-page-hit-counter/vendor/guzzlehttp/psr7/src/FnStream.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/who-hit-the-page-hit-counter/partials/update/force-update.php:1
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/who-hit-the-page-hit-counter/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:7
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/who-hit-the-page-hit-counter/includes/config.php on line 22
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/who-hit-the-page-hit-counter/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Notice
Undefined variable: filter_field_id in wp-content/plugins/who-hit-the-page-hit-counter/partials/pagination.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/who-hit-the-page-hit-counter/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:4
- > PHP Warning
include(): Failed opening './vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/who-hit-the-page-hit-counter/vendor/mahlamusa/material-php/tests/bootstrap.php on line 2
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/who-hit-the-page-hit-counter/includes/config.php on line 11
- > 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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: ip statistics, geolocation, visit counter, hit counter, visitor stats...
who-hit-the-page-hit-counter/who-hit-the-page.php 77% from 13 tests
"Who Hit The Page - Hit Counter" version 1.4.14.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 379 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("who-hit-the-page-hit-counter.php" instead of "who-hit-the-page.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin20,709 lines of code in 179 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 149 | 2,861 | 7,540 | 15,992 |
Markdown | 17 | 1,134 | 0 | 3,492 |
JSON | 2 | 0 | 0 | 509 |
Sass | 1 | 21 | 0 | 321 |
PO File | 1 | 138 | 140 | 287 |
JavaScript | 2 | 7 | 0 | 39 |
XML | 2 | 1 | 0 | 27 |
YAML | 2 | 6 | 0 | 22 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 14.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 203.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 19 | |
Traits | 3 | |
Classes | 95 | |
▷ Abstract classes | 3 | 3.16% |
▷ Concrete classes | 92 | 96.84% |
▷ Final classes | 9 | 9.78% |
Methods | 967 | |
▷ Static methods | 204 | 21.10% |
▷ Public methods | 800 | 82.73% |
▷ Protected methods | 50 | 5.17% |
▷ Private methods | 117 | 12.10% |
Functions | 185 | |
▷ Named functions | 93 | 50.27% |
▷ Anonymous functions | 92 | 49.73% |
Constants | 143 | |
▷ Global constants | 18 | 12.59% |
▷ Class constants | 125 | 87.41% |
▷ Public constants | 125 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
596 compressed PNG files occupy 0.26MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/flags/im.png | 0.24KB | 0.26KB | 0.00% |
assets/src/images/flags/bw.png | 0.30KB | 0.23KB | ▼ 25.72% |
assets/images/flags/ki.png | 0.54KB | 0.66KB | 0.00% |
assets/images/flags/mg.png | 0.14KB | 0.18KB | 0.00% |
assets/src/images/flags/fr.png | 0.26KB | 0.23KB | ▼ 11.94% |