Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▲0.35ms] 75% from 4 tests
An overview of server-side resources used by WC Sales Notification
Please fix the following
- CPU: You should keep total CPU usage under 500.00ms (currently 1,640.05ms on /wp-admin/admin.php?page=slasnotification-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.96 ▲3.64 |
Dashboard /wp-admin | 3.54 ▲0.23 | 48.55 ▲1.16 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 50.02 ▲5.15 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 94.37 ▼4.74 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 35.78 ▲1.36 |
Recommendations /wp-admin/admin.php?page=slasnotification-recommendations | 7.67 | 1,640.05 |
Settings /wp-admin/admin.php?page=wcsalenotification | 3.36 | 38.25 |
Server storage [IO: ▲0.52MB] [DB: ▲0.67MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
wcsales_fakes_data_tabs |
db_upgraded |
wcsales_general_tabs |
widget_recent-posts |
wcsales_style_tabs |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
wcsales_settings_tabs |
Browser metrics Passed 4 tests
WC Sales Notification: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,002 ▲267 | 15.25 ▲0.85 | 1.88 ▲0.07 | 44.02 ▼0.93 |
Dashboard /wp-admin | 2,401 ▲209 | 6.81 ▲1.87 | 127.30 ▲19.01 | 39.91 ▼0.15 |
Posts /wp-admin/edit.php | 2,318 ▲229 | 3.75 ▲1.73 | 50.71 ▲9.75 | 32.75 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,567 ▲25 | 23.38 ▲5.30 | 580.70 ▼28.12 | 32.89 ▼21.24 |
Media Library /wp-admin/upload.php | 1,457 ▲69 | 4.62 ▲0.41 | 86.17 ▼10.55 | 44.00 ▲1.21 |
Recommendations /wp-admin/admin.php?page=slasnotification-recommendations | 3,108 | 3.50 | 49.78 | 103.59 |
Settings /wp-admin/admin.php?page=wcsalenotification | 2,646 | 4.20 | 77.63 | 65.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- wcsales_general_tabs
- wcsales_settings_tabs
- widget_theysaidso_widget
- widget_recent-posts
- wcsales_fakes_data_tabs
- widget_recent-comments
- wcsales_style_tabs
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× 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/wc-sales-notification/includes/class.sale_notification.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-sales-notification/includes/class.sale_notification_fake.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: custom notification, woocommerce, manual notification, sale notification, popup notification
wc-sales-notification/wc_sales_notification.php 92% from 13 tests
The main PHP script in "WC Sales Notification" version 1.2.4 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wc-sales-notification.php" instead of "wc_sales_notification.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin5,421 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 534 | 20 | 3,066 |
PHP | 8 | 436 | 347 | 2,217 |
JavaScript | 2 | 34 | 28 | 138 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 33.17 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 4 | 5.06% |
▷ Public methods | 76 | 96.20% |
▷ Protected methods | 1 | 1.27% |
▷ Private methods | 2 | 2.53% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) admin/assets/images/extensions/docus-pro.png | 3.98KB | 0.00KB | ▼ 100.00% |
admin/assets/images/extensions/ht-slider-addons-pro.png | 6.41KB | 4.35KB | ▼ 32.23% |
admin/assets/images/fake_data_placeholder.png | 2.07KB | 2.35KB | 0.00% |
(invalid) admin/assets/images/extensions/ht-menu.png | 2.85KB | 0.00KB | ▼ 100.00% |
admin/assets/images/extensions/multicurrencypro.png | 19.01KB | 9.36KB | ▼ 50.77% |