Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.15MB] [CPU: ▼327.68ms] Passed 4 tests
This is a short check of server-side resources used by XT Visitor Counter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.09 | 60.08 ▲3.79 |
Dashboard /wp-admin | 3.18 ▼0.23 | 19.63 ▼19.79 |
Posts /wp-admin/edit.php | 3.18 ▼0.46 | 21.79 ▼21.78 |
Add New Post /wp-admin/post-new.php | 3.18 ▼3.79 | 18.67 ▼1,264.48 |
Media Library /wp-admin/upload.php | 3.18 ▼0.12 | 22.34 ▼4.66 |
XT Visitor Counter /wp-admin/options-general.php?page=xtvc_options_general | 3.18 | 22.30 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 142 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_xt_statistic |
New WordPress options |
---|
widget_xt_visitor_counter |
Browser metrics Passed 4 tests
A check of browser resources used by XT Visitor Counter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲42 | 15.79 ▲0.23 | 6.78 ▲0.47 | 2.79 ▲0.39 |
Dashboard /wp-admin | 2,897 ▲39 | 6.13 ▼0.06 | 122.06 ▼18.22 | 156.64 ▼8.13 |
Posts /wp-admin/edit.php | 2,696 ▲8 | 3.23 ▼0.00 | 64.30 ▼1.34 | 140.87 ▼3.45 |
Add New Post /wp-admin/post-new.php | 1,714 ▼3 | 20.81 ▼1.13 | 444.42 ▼18.75 | 162.50 ▲2.54 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.57 ▲0.06 | 138.35 ▼11.13 | 187.40 ▲1.02 |
XT Visitor Counter /wp-admin/options-general.php?page=xtvc_options_general | 1,768 | 3.08 | 74.66 | 151.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5600
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie tables detected upon uninstall: 1 table
- wp_xt_statistic
- The uninstall procedure has failed, leaving 1 option in the database
- widget_xt_visitor_counter
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just 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+5600
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > 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
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
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: blog stats, traffic count, visitor counter, traffic counter, visitor traffic...
xt-visitor-counter/xt-visitor-counter.php Passed 13 tests
The main PHP file in "XT Visitor Counter" ver. 1.4.2 adds more information about the plugin and also serves as the entry point for this plugin
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 an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
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
PNG files should be compressed to save space and minimize bandwidth usage
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/mvcmonth.png | 0.39KB | 0.25KB | ▼ 36.02% |
counter/hits.png | 0.56KB | 0.38KB | ▼ 32.06% |
counter/yesterday.png | 0.56KB | 0.38KB | ▼ 32.06% |
counter/visit.png | 0.60KB | 0.47KB | ▼ 22.53% |
counter/year.png | 0.39KB | 0.25KB | ▼ 36.34% |