Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼31.30ms] Passed 4 tests
Server-side resources used by XT Visitor Counter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.02 | 40.15 ▲2.20 |
Dashboard /wp-admin | 3.00 ▼0.30 | 23.40 ▼24.45 |
Posts /wp-admin/edit.php | 3.00 ▼0.35 | 26.15 ▼19.11 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.88 | 22.85 ▼65.05 |
Media Library /wp-admin/upload.php | 3.00 ▼0.22 | 19.33 ▼16.59 |
XT Visitor Counter /wp-admin/options-general.php?page=xtvc_options_general | 3.00 | 22.36 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 142 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_xt_statistic |
New WordPress options |
---|
widget_recent-comments |
widget_xt_visitor_counter |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for XT Visitor Counter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.23 ▼1.20 | 1.64 ▼0.05 | 41.77 ▲0.69 |
Dashboard /wp-admin | 2,213 ▲25 | 5.84 ▲0.96 | 98.83 ▼13.09 | 39.35 ▼4.36 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.04 | 38.34 ▲2.50 | 33.90 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,545 ▲11 | 18.55 ▼4.69 | 611.31 ▼73.82 | 51.04 ▲7.73 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▼0.01 | 93.64 ▼13.17 | 42.39 ▼0.78 |
XT Visitor Counter /wp-admin/options-general.php?page=xtvc_options_general | 1,276 | 2.53 | 41.16 | 111.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_xt_statistic
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_xt_visitor_counter
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=xtvc_options_general
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=xtvc_options_general
- > Notice in wp-content/plugins/xt-visitor-counter/xt-visitor-counter-options-general.php+6
Undefined index: reset_xtvc
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=xtvc_options_general
- > Notice in wp-content/plugins/xt-visitor-counter/xt-visitor-counter.php+102
Undefined variable: done
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=xtvc_options_general
- > Notice in wp-content/plugins/xt-visitor-counter/xt-visitor-counter.php+102
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xt-visitor-counter/xt-visitor-counter-widgets.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xt-visitor-counter/xt-visitor-counter-widgets.php:2
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/xt-visitor-counter/xt-visitor-counter.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/xt-visitor-counter/xt-visitor-counter-options-general.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=xtvc_options_general
- > Network (severe)
https://promo.propellerads.com/728x90_06.gif - Failed to load resource: net::ERR_CERT_DATE_INVALID
Optimizations
Plugin configuration Passed 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
7 plugin tags: blog traffic, traffic count, visitor traffic, blog stats, traffic counter...
xt-visitor-counter/xt-visitor-counter.php Passed 13 tests
This is the main PHP file of "XT Visitor Counter" version 1.4.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
107 characters long description:
XT Visitor Counter is a widgets which will display the Visitor counter and traffic statistics on WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin470 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 41 | 21 | 440 |
CSS | 1 | 0 | 2 | 30 |
HTML | 1 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 8.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
counter/mvcyesterday.png | 0.56KB | 0.38KB | ▼ 32.06% |
counter/mvctoday.png | 0.42KB | 0.26KB | ▼ 38.89% |
counter/mvcvisit.png | 0.60KB | 0.47KB | ▼ 22.53% |
counter/online.png | 0.56KB | 0.38KB | ▼ 31.36% |
counter/yesterday.png | 0.56KB | 0.38KB | ▼ 32.06% |