Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/spot-hit/spothit.php+42
Undefined variable: wpdb
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.76ms] Passed 4 tests
An overview of server-side resources used by Spot-Hit - Send mail, sms (Compatible with Woocommerce)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 40.79 ▼0.71 |
Dashboard /wp-admin | 3.39 ▲0.04 | 51.59 ▼15.62 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 51.95 ▲0.52 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 95.61 ▼7.23 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 44.19 ▲8.81 |
Server storage [IO: ▲18.14MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 783 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_spothit_hooks |
wp_spothit_hooks_meta |
wp_spothit_settings |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Spot-Hit - Send mail, sms (Compatible with Woocommerce)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,042 ▲281 | 16.97 ▲2.61 | 18.32 ▲16.48 | 45.09 ▲1.45 |
Dashboard /wp-admin | 2,276 ▲96 | 6.58 ▲0.99 | 120.67 ▲25.82 | 37.27 ▼7.66 |
Posts /wp-admin/edit.php | 2,187 ▲87 | 3.83 ▲1.82 | 58.70 ▲17.37 | 63.10 ▲25.41 |
Add New Post /wp-admin/post-new.php | 6,431 ▲4,903 | 23.82 ▲0.57 | 864.94 ▲185.52 | 55.08 ▼7.65 |
Media Library /wp-admin/upload.php | 1,610 ▲210 | 6.24 ▲2.05 | 131.35 ▲17.71 | 43.82 ▼3.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/spot-hit/components/notification.php
- 40× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/spot-hit/views/sms_campaign.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/spot-hit/views/sms_campaign/step6.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/spot-hit/views/email_campaign.php:29
- > PHP Warning
Use of undefined constant SH_URL_PATH - assumed 'SH_URL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/spot-hit/views/login.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/spot-hit/views/settings.php:36
- > PHP Warning
Use of undefined constant SH_URL_PATH - assumed 'SH_URL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/spot-hit/components/loader.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/spot-hit/views/sms_campaign/step4.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/spot-hit/views/email_campaign/step4.php:2
- > PHP Warning
Use of undefined constant SH_URL_PATH - assumed 'SH_URL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/spot-hit/components/header.php on line 45
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/spot-hit/components/loader.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
spot-hit/spothit.php 85% from 13 tests
The main file in "Spot-Hit - Send mail, sms (Compatible with Woocommerce)" v. 2.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("spot-hit.php" instead of "spothit.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .ps1 - Windows PowerShell Cmdlet in Windows
- ☣ wp-content/plugins/spot-hit/node_modules/bootstrap-select/nuget/MyGet.ps1
- .ps1 - Windows PowerShell Cmdlet in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 301 | 10,457 | 6,398 | 112,475 |
CSS | 50 | 8,325 | 306 | 52,256 |
JSON | 15 | 2 | 0 | 28,337 |
Sass | 105 | 1,744 | 1,261 | 8,696 |
Markdown | 13 | 974 | 0 | 4,974 |
PHP | 36 | 807 | 332 | 4,929 |
TypeScript | 1 | 0 | 0 | 2,876 |
PO File | 1 | 443 | 568 | 953 |
HTML | 9 | 105 | 8 | 832 |
LESS | 2 | 89 | 15 | 449 |
YAML | 6 | 8 | 15 | 92 |
XML | 1 | 0 | 0 | 24 |
PowerShell | 1 | 5 | 6 | 9 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 24.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 27 | 90.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 37 | 88.10% |
▷ Anonymous functions | 5 | 11.90% |
Constants | 3 | |
▷ Global constants | 3 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 10.18KB | 0.94KB | ▼ 90.80% |
assets/img/icon-128x128.png | 1.54KB | 0.52KB | ▼ 66.39% |