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.03MB] [CPU: ▼1.87ms] Passed 4 tests
Server-side resources used by Ni Daily Sales Report For Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 39.67 ▼2.00 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.72 ▼5.60 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.32 ▲1.60 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.38 ▲1.49 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 33.87 ▼1.35 |
Daily Sales Report /wp-admin/admin.php?page=nidsrfw-daily-sales-report | 3.33 | 31.96 |
Dashboard /wp-admin/admin.php?page=nidsrfw-dashboard | 3.53 | 31.80 |
Server storage [IO: ▲1.78MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Ni Daily Sales Report For Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲66 | 13.19 ▼1.61 | 1.77 ▼0.47 | 41.73 ▼7.13 |
Dashboard /wp-admin | 2,229 ▲38 | 4.84 ▼0.21 | 114.52 ▲4.61 | 45.12 ▲1.42 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.01 ▼0.04 | 39.49 ▲3.87 | 33.91 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,547 ▲12 | 23.04 ▼0.05 | 603.71 ▼4.18 | 48.45 ▲0.94 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 4.24 ▲0.03 | 99.77 ▼4.76 | 44.23 ▼1.96 |
Daily Sales Report /wp-admin/admin.php?page=nidsrfw-daily-sales-report | 943 | 2.31 | 36.34 | 65.92 |
Dashboard /wp-admin/admin.php?page=nidsrfw-dashboard | 1,380 | 2.20 | 17.20 | 58.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=nidsrfw-dashboard
- > Error in wp-content/plugins/ni-daily-sales-report-for-woocommerce/includes/nidsrfw-dashboard.php+267
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/ni-daily-sales-report-for-woocommerce/includes/nidsrfw-dashboard.php:267
Stack trace:
#0 wp-content/plugins/ni-daily-sales-report-for-woocommerce/includes/ni-daily-sales-report-for-woocommerce-init.php(47): NiDSRFW_Dashboard->page_init()
#1 wp-includes/class-wp-hook.php(310): Ni_Daily_Sales_Report_For_Woocommerce_Init->add_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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Search sales daliy sales report), #2 (Sales summary)
ni-daily-sales-report-for-woocommerce/ni-daily-sales-report-for-woocommerce.php Passed 13 tests
The main PHP file in "Ni Daily Sales Report For Woocommerce" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
88 characters long description:
Ni Daily Sales Report for Woocommerce provides the sales analysis for any sales periods.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin8,261 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 108 | 91 | 3,912 |
SVG | 2 | 0 | 0 | 2,678 |
PHP | 4 | 306 | 82 | 1,565 |
JavaScript | 8 | 4 | 11 | 106 |
PHP code Passed 2 tests
Analyzing 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.18 |
Average class complexity | 21.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/lib/images/ui-icons_444444_256x240.png | 3.19KB | 3.49KB | 0.00% |
screenshot-1.png | 6.30KB | 4.01KB | ▼ 36.37% |
screenshot-2.png | 17.55KB | 10.34KB | ▼ 41.08% |