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
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼3.77ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Sales Notifications - Recent Sales Popup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 37.85 ▼4.47 |
Dashboard /wp-admin | 3.50 ▲0.20 | 47.14 ▼2.57 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 47.18 ▲0.84 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 86.75 ▼8.86 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.04 ▲3.95 |
Woo Live Sale Notification /wp-admin/admin.php?page=woocommerce_live_sale | 3.39 | 32.06 |
Support /wp-admin/admin.php?page=xslsn-support | 3.39 | 32.61 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
xslsn-live-sale-notification |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Sales Notifications - Recent Sales Popup
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,121 ▲375 | 13.89 ▼0.46 | 8.65 ▲6.75 | 38.85 ▼8.81 |
Dashboard /wp-admin | 2,237 ▲46 | 5.14 ▲0.24 | 115.97 ▲4.71 | 40.24 ▼7.10 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.31 ▲0.32 | 39.88 ▲0.42 | 38.05 ▲3.60 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 23.57 ▲0.26 | 659.28 ▼8.81 | 61.17 ▲9.45 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.50 ▲0.32 | 98.96 ▲0.82 | 42.80 ▼0.18 |
Woo Live Sale Notification /wp-admin/admin.php?page=woocommerce_live_sale | 790 | 1.90 | 24.45 | 24.63 |
Support /wp-admin/admin.php?page=xslsn-support | 790 | 1.90 | 25.46 | 23.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- xslsn-live-sale-notification
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-live-sale-notifications/xslsn-includes/xslsn-message-tab.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-live-sale-notifications/xslsn-includes/xslsn-general-tab.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wc-live-sale-notifications/xs-live-sales-notifications.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-live-sale-notifications/xslsn-includes/xslsn-support.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-live-sale-notifications/xslsn-includes/xslsn-products-tab.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-live-sale-notifications/xslsn-includes/xslsn-time-tab.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-live-sale-notifications/xslsn-includes/xslsn-frontendpopup.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-live-sale-notifications/xslsn-includes/xslsn-assign-tab.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-live-sale-notifications/xslsn-includes/xslsn-productsdetails-tab.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-live-sale-notifications/xslsn-includes/xslsn-design-tab.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wc-live-sale-notifications/xs-live-sales-notifications.php 85% from 13 tests
The primary PHP file in "WooCommerce Sales Notifications - Recent Sales Popup" version 2.0.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wc-live-sale-notifications.php" instead of "xs-live-sales-notifications.php")
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.4.0")
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
There were no executable files found in this plugin3,682 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 194 | 172 | 2,420 |
JavaScript | 3 | 36 | 37 | 652 |
CSS | 2 | 97 | 35 | 609 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
xslsn-assets/xslsn-img/xslsn_style6.png | 5.99KB | 1.91KB | ▼ 68.15% |
xslsn-assets/xslsn-img/xslsn_style8.png | 6.62KB | 2.14KB | ▼ 67.71% |
xslsn-assets/xslsn-img/xslsn_style12.png | 15.25KB | 7.48KB | ▼ 50.92% |
xslsn-assets/xslsn-img/xslsn_style1.png | 11.78KB | 4.77KB | ▼ 59.55% |
xslsn-assets/xslsn-img/pink.png | 9.25KB | 8.73KB | ▼ 5.63% |