Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.08MB] [CPU: ▼14.16ms] Passed 4 tests
Analyzing server-side resources used by NotifyVisitors : Email & SMS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▼0.53 | 25.50 ▼18.06 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.40 ▼7.98 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 46.80 ▼7.65 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 84.17 ▼22.96 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.12 ▲0.12 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for NotifyVisitors : Email & SMS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,480 ▼291 | 13.60 ▼0.78 | 0.65 ▼1.53 | 18.61 ▼28.84 |
Dashboard /wp-admin | 2,224 ▲36 | 5.90 ▲0.04 | 97.22 ▼24.56 | 62.14 ▲19.65 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.03 ▲0.03 | 35.99 ▼0.16 | 30.24 ▼6.77 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.17 ▲0.12 | 707.56 ▲63.67 | 69.68 ▲13.21 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.18 ▼0.05 | 99.68 ▼20.34 | 75.11 ▲25.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifyvisitors/wnv-integration-code.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifyvisitors/wnv-viewed-product.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifyvisitors/wnv-integration-code.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifyvisitors/wnv-added-to-cart.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifyvisitors/wnv-checkout.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifyvisitors/wnv-user-login.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (NotifyVisitors), #2 (NotifyVisitors), #3 (NotifyVisitors), #4 (NotifyVisitors), #5 (NotifyVisitors)
notifyvisitors/nv-package.php 92% from 13 tests
"NotifyVisitors : Email & SMS" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("notifyvisitors.php" instead of "nv-package.php")
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
No dangerous file extensions were detected528 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 76 | 99 | 409 |
CSS | 1 | 20 | 3 | 115 |
JavaScript | 4 | 3 | 21 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.75MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) screenshot-5.png | 103.74KB | 0.00KB | ▼ 100.00% |
(invalid) screenshot-2.png | 177.78KB | 0.00KB | ▼ 100.00% |
assets/img/notifyvisitors-logo.png | 1.43KB | 0.63KB | ▼ 56.13% |
assets/img/notifyvisitors-woocommerce.png | 105.28KB | 58.87KB | ▼ 44.08% |
screenshot-1.png | 117.93KB | 54.47KB | ▼ 53.82% |