Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▼5.28ms] Passed 4 tests
Analyzing server-side resources used by Hitsteps Web Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.75 | 40.48 ▲4.22 |
Dashboard /wp-admin | 4.05 ▲0.74 | 50.89 ▼0.25 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 37.01 ▼16.04 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.68 | 90.35 ▼7.92 |
Media Library /wp-admin/upload.php | 3.91 ▲0.68 | 39.20 ▲3.09 |
Hitsteps /wp-admin/options-general.php?page=hitsteps-visitor-manager/hitsteps.php | 3.87 | 38.02 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_hst_stats |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_hst_support |
Browser metrics Passed 4 tests
Checking browser requirements for Hitsteps Web Analytics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲212 | 14.35 ▼0.00 | 2.04 ▲0.47 | 45.31 ▲7.43 |
Dashboard /wp-admin | 2,354 ▲174 | 5.59 ▼0.13 | 83.42 ▼2.62 | 39.09 ▼2.81 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.03 ▲0.04 | 34.83 ▼6.02 | 35.37 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 18.15 ▼4.93 | 639.22 ▼42.59 | 60.99 ▲3.18 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.28 ▲0.04 | 93.12 ▼4.03 | 43.27 ▼0.14 |
Hitsteps /wp-admin/options-general.php?page=hitsteps-visitor-manager/hitsteps.php | 1,488 | 6.17 | 186.03 | 57.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 8 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_hst_stats
- widget_hst_support
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 5× 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/hitsteps-visitor-manager/init.woocommerce.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hitsteps-visitor-manager/init.ninjaform.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hitsteps-visitor-manager/init.jetpack.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hitsteps-visitor-manager/init.gravityform.php:321
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hitsteps-visitor-manager/hitsteps.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=hitsteps-visitor-manager/hitsteps.php
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 38 tag instead of maximum 10
hitsteps-visitor-manager/hitsteps.php 92% from 13 tests
"Hitsteps Web Analytics" version 5.87's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hitsteps-visitor-manager.php" instead of "hitsteps.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,733 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 8 | 1,270 | 1,367 | 3,071 |
PHP | 7 | 1,539 | 999 | 1,662 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 32.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 24 | 50.00% |
▷ Public methods | 45 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.25% |
Functions | 48 | |
▷ Named functions | 46 | 95.83% |
▷ Anonymous functions | 2 | 4.17% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
favicon.png | 1.83KB | 1.51KB | ▼ 17.72% |
logo.png | 11.55KB | 6.22KB | ▼ 46.20% |
favicon_trans.png | 5.61KB | 2.98KB | ▼ 46.87% |