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.14MB] [CPU: ▼4.98ms] Passed 4 tests
Server-side resources used by Ni WooCommerce Sales Report Email
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 41.38 ▲2.92 |
Dashboard /wp-admin | 3.45 ▲0.11 | 46.58 ▼12.11 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 48.49 ▲3.05 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 90.22 ▼10.31 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 35.54 ▼0.40 |
Setting /wp-admin/admin.php?page=niwooer-setting | 3.40 | 31.13 |
Dashboard /wp-admin/admin.php?page=ni-email-dashboard | 3.63 | 31.19 |
Order List /wp-admin/admin.php?page=ni-email-order-list | 3.45 | 30.98 |
Add-ons /wp-admin/admin.php?page=ni-add-ons-email-report | 3.37 | 32.20 |
Server storage [IO: ▲2.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ni WooCommerce Sales Report Email
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲59 | 13.34 ▼1.02 | 4.35 ▲2.45 | 43.51 ▲3.35 |
Dashboard /wp-admin | 2,236 ▲50 | 5.83 ▼0.03 | 95.99 ▼9.14 | 69.58 ▲26.03 |
Posts /wp-admin/edit.php | 2,122 ▲36 | 2.06 ▲0.05 | 35.72 ▲0.84 | 35.07 ▲1.30 |
Add New Post /wp-admin/post-new.php | 1,548 ▲14 | 18.11 ▼4.91 | 630.64 ▼14.55 | 64.70 ▲4.46 |
Media Library /wp-admin/upload.php | 1,412 ▲30 | 4.22 ▲0.01 | 103.53 ▲4.30 | 46.39 ▲3.74 |
Setting /wp-admin/admin.php?page=niwooer-setting | 991 | 2.05 | 14.19 | 50.38 |
Dashboard /wp-admin/admin.php?page=ni-email-dashboard | 1,357 | 2.18 | 15.45 | 84.51 |
Order List /wp-admin/admin.php?page=ni-email-order-list | 887 | 2.12 | 17.74 | 32.00 |
Add-ons /wp-admin/admin.php?page=ni-add-ons-email-report | 1,078 | 1.91 | 11.31 | 38.20 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=ni-email-dashboard
- > Error in wp-content/plugins/ni-woocommerce-sales-report-email/include/ni-email-dashboard.php+249
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/ni-woocommerce-sales-report-email/include/ni-email-dashboard.php:249
Stack trace:
#0 wp-content/plugins/ni-woocommerce-sales-report-email/include/ni-init.php(117): ni_email_dashboard->page_init()
#1 wp-includes/class-wp-hook.php(310): ni_email_report_init->add_menu_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Summary Report.), #2 (Recent Order List), #3 (Order Status Report.), #4 (Payment Gateway Report .), #5 (Sales Order List.), #6 (Email Summary Report.), #7 (Email Settings option.), #8 (Total product sold.), #9 (Send to multiple email comma separated.)
ni-woocommerce-sales-report-email/ni-woocommerce-sales-report-email.php 92% from 13 tests
The main PHP file in "Ni WooCommerce Sales Report Email" ver. 3.1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 304 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected10,003 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 106 | 109 | 3,919 |
PHP | 9 | 522 | 138 | 3,249 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 7 | 23 | 34 | 155 |
HTML | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 27.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 1 | 1.08% |
▷ Public methods | 93 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.41MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 230.40KB | 112.94KB | ▼ 50.98% |
screenshot-2.png | 31.84KB | 19.84KB | ▼ 37.67% |
screenshot-5.png | 24.82KB | 13.20KB | ▼ 46.82% |
include/images/icon.png | 1.05KB | 1.20KB | 0.00% |
screenshot-4.png | 27.64KB | 14.33KB | ▼ 48.18% |