Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/visitor-counter/image.php+129
Methods with the same name as their class will not be constructors in a future version of PHP; wHitCounter has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼60.03ms] Passed 4 tests
This is a short check of server-side resources used by Online Counter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.37 | 4.87 ▼40.18 |
Dashboard /wp-admin | 2.12 ▼1.19 | 6.10 ▼44.16 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.07 ▼46.99 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 6.54 ▼108.79 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.09 ▼29.39 |
Hit Counter /wp-admin/options-general.php?page=visitor-hit-counter | 2.12 | 5.53 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 1,553 new files
Database: no new tables, 13 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
vthc_display_credit |
vthc_data |
vthc_display_footer |
theysaidso_admin_options |
widget_recent-posts |
vthc_style |
vthc_count_only_unique |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Online Counter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,475 ▼311 | 14.35 ▼0.02 | 0.59 ▼1.32 | 13.27 ▼28.59 |
Dashboard /wp-admin | 2,211 ▲31 | 5.56 ▼0.08 | 96.32 ▲5.73 | 45.42 ▼2.86 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 1.93 ▼0.01 | 40.28 ▲3.04 | 41.30 ▲5.77 |
Add New Post /wp-admin/post-new.php | 1,387 ▼141 | 20.89 ▼2.16 | 533.68 ▼188.53 | 46.26 ▼15.07 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.19 ▲0.09 | 100.27 ▼14.64 | 43.08 ▼9.05 |
Hit Counter /wp-admin/options-general.php?page=visitor-hit-counter | 690 | 1.24 | 7.12 | 28.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/visitor-counter/image.php+129
Methods with the same name as their class will not be constructors in a future version of PHP; wHitCounter has a deprecated constructor
- This plugin does not fully uninstall, leaving 13 options in the database
- vthc_data
- widget_recent-posts
- can_compress_scripts
- vthc_count_only_unique
- vthc_display_footer
- widget_recent-comments
- vthc_style
- widget_theysaidso_widget
- vthc_check_update
- widget_whitcounter
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=visitor-hit-counter
- > Deprecated in wp-content/plugins/visitor-counter/image.php+129
Methods with the same name as their class will not be constructors in a future version of PHP; wHitCounter has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=visitor-hit-counter
- > Deprecated in wp-content/plugins/visitor-counter/image.php+169
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=visitor-hit-counter
- > Warning in wp-content/plugins/visitor-counter/hitcounter_menu.php+41
opendir(wp-content/plugins/visitor-hit-counter/styles/): failed to open dir: No such file or directory
SRP 50% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visitor-counter/hitcounter_menu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/visitor-counter/image.php:93
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% 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 your attention:
- Tags: You are using too many tags: 22 tag instead of maximum 10
visitor-counter/image.php 92% from 13 tests
This is the main PHP file of "Online Counter" version 2.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("visitor-counter.php" instead of "image.php")
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
Good job! No executable or dangerous file extensions detected282 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 34 | 28 | 282 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin