Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/hit-counter-max/image.php+186
Function create_function() is deprecated
Server metrics [RAM: ▼1.95MB] [CPU: ▼55.33ms] Passed 4 tests
An overview of server-side resources used by Hit Counter Max
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 4.66 ▼39.59 |
Dashboard /wp-admin | 2.06 ▼1.24 | 5.45 ▼48.97 |
Posts /wp-admin/edit.php | 2.06 ▼1.29 | 6.24 ▼46.78 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.82 | 5.87 ▼85.96 |
Media Library /wp-admin/upload.php | 2.06 ▼1.17 | 5.23 ▼33.45 |
Hit Counter Max /wp-admin/options-general.php?page=hit-counter-max | 2.06 | 5.52 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- Illegal file modification found: 2 files (0.00KB) outside of "wp-content/plugins/hit-counter-max/" and "wp-content/uploads/"
- (new file) wp-content/cache/hookd/wp.com/8b8203326e2a9c70947a
- (new file) wp-content/cache/hookd/wp.com/index.html
Filesystem: 1,456 new files
Database: no new tables, 15 new options
New WordPress options |
---|
wphcu_count_only_unique |
wphcu_style |
wphcu_check_update |
theysaidso_admin_options |
widget_recent-comments |
wphcu_display_credit |
wphcu_display_footer |
wphcu_data |
wphcu_css |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hit Counter Max
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,449 ▼312 | 14.02 ▼0.25 | 0.52 ▼1.41 | 20.78 ▼24.14 |
Dashboard /wp-admin | 2,193 ▲13 | 5.55 ▼0.10 | 89.48 ▼11.60 | 39.14 ▼5.93 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.05 | 40.02 ▲2.18 | 34.29 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.30 ▲5.79 | 682.02 ▼4.75 | 67.97 ▲12.63 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▼0.05 | 107.03 ▼6.43 | 50.62 ▲1.80 |
Hit Counter Max /wp-admin/options-general.php?page=hit-counter-max | 2,827 | 1.27 | 33.11 | 111.92 |
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
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/hit-counter-max/image.php+186
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- wphcu_align
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_whitcounter
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=hit-counter-max
- > Deprecated in wp-content/plugins/hit-counter-max/image.php+186
Function create_function() is deprecated
- 144 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=hit-counter-max
- > Notice in wp-content/plugins/hit-counter-max/settings_wphcu.php+60
Undefined variable: done
- 144 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=hit-counter-max
- > Notice in wp-content/plugins/hit-counter-max/settings_wphcu.php+60
Trying to access array offset on value of type null
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hit-counter-max/image.php:101
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hit-counter-max/settings_wphcu.php:17
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: There are too many tags (13 tag instead of maximum 10)
- Screenshots: Screenshot #1 (View sample of the setting menu.) image not found
hit-counter-max/image.php 92% from 13 tests
The main PHP file in "Hit Counter Max" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hit-counter-max.php" instead of "image.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin432 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 60 | 48 | 432 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 41.94KB | 16.90KB | ▼ 59.70% |