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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.98ms] Passed 4 tests
A check of server-side resources used by Live sales notification for WooCommerce, Fake sales notification for WooCommerce, Recent sales popup for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.35 ▲2.59 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.59 ▼5.52 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 40.78 ▼6.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.99 ▼17.20 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.46 ▼3.12 |
Server storage [IO: ▲2.70MB] [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: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Live sales notification for WooCommerce, Fake sales notification for WooCommerce, Recent sales popup for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.40 | 1.69 ▲0.04 | 42.91 ▲1.70 |
Dashboard /wp-admin | 2,198 ▲21 | 5.57 ▲0.04 | 86.93 ▼1.43 | 38.49 ▼1.67 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.00 | 35.42 ▼1.70 | 32.83 ▼4.12 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.05 ▼0.00 | 647.48 ▼22.82 | 54.67 ▼3.38 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.11 ▼0.17 | 97.82 ▼13.39 | 41.61 ▼6.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/live-sales-notifications-for-woocommerce/includes/pisol.class.form.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/live-sales-notifications-for-woocommerce/admin/class-pisol-sales-notification-text.php:192
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/live-sales-notifications-for-woocommerce/includes/includes.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/live-sales-notifications-for-woocommerce/admin/class-pisol-sales-notification-translate.php:138
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/live-sales-notifications-for-woocommerce/admin/class-pisol-sales-notification-option.php:120
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-sales-notifications-for-woocommerce/includes/conflict-fixer.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/live-sales-notifications-for-woocommerce/admin/class-pisol-sales-notification-design.php:212
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/live-sales-notifications-for-woocommerce/admin/class-pisol-sales-notification-control.php:112
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/live-sales-notifications-for-woocommerce/admin/class-pisol-sales-notification-product.php:355
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/live-sales-notifications-for-woocommerce/includes/banner-sample.php:63
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots need descriptions #2, #3, #4, #5, #6, #7, #8, #9 in live-sales-notifications-for-woocommerce/assets to your readme.txt
- Donate link: Invalid url: "piwebsolution.com"
live-sales-notifications-for-woocommerce/pisol-sales-notification.php 85% from 13 tests
This is the main PHP file of "Live sales notification for WooCommerce, Fake sales notification for WooCommerce, Recent sales popup for WooCommerce" version 2.2.42, 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:
- 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
- Main file name: Name the main plugin file the same as the plugin slug ("live-sales-notifications-for-woocommerce.php" instead of "pisol-sales-notification.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin16,976 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 2,066 | 21 | 9,459 |
SVG | 7 | 45 | 6 | 4,586 |
PHP | 30 | 753 | 445 | 2,585 |
JavaScript | 6 | 69 | 63 | 346 |
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.32 |
Average class complexity | 12.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 145 | |
▷ Static methods | 11 | 7.59% |
▷ Public methods | 140 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.45% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/close.png | 4.32KB | 3.39KB | ▼ 21.57% |
includes/background.png | 74.27KB | 26.29KB | ▼ 64.60% |
admin/img/pi.png | 1.48KB | 1.11KB | ▼ 24.83% |
admin/img/pi-web-solution.png | 21.25KB | 9.42KB | ▼ 55.67% |