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.09MB] [CPU: ▼10.07ms] Passed 4 tests
A check of server-side resources used by Ni WooCommerce Dashboard Sales Report
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 40.55 ▼3.03 |
Dashboard /wp-admin | 3.39 ▲0.04 | 41.05 ▼20.49 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.28 ▼0.85 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 88.99 ▼15.91 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 35.82 ▲1.82 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
recovery_mode_email_last_sent |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Ni WooCommerce Dashboard Sales Report
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,334 ▼412 | 12.42 ▼2.17 | 1.88 ▼0.55 | 31.76 ▼17.23 |
Dashboard /wp-admin | 1,743 ▼442 | 1.38 ▼3.48 | 13.84 ▼93.15 | 39.79 ▼2.31 |
Posts /wp-admin/edit.php | 2,094 ▲2 | 2.02 ▼0.00 | 43.82 ▲7.44 | 44.82 ▲11.01 |
Add New Post /wp-admin/post-new.php | 1,531 ▼11 | 23.07 ▲5.11 | 674.06 ▲44.05 | 35.13 ▼17.19 |
Media Library /wp-admin/upload.php | 1,393 ▲11 | 4.25 ▲0.05 | 94.40 ▼13.02 | 40.27 ▼3.96 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Ni WooCommerce Sales Order Status), #2 (Ni WooCommerce Recent Order), #3 (WooCommerce Sales Analysis Reports), #4 (Ni WooCommerce Sales By Month Report), #5 (Last Order Date), #6 (New Customer Report), #7 (Top 10 Sold Product)
ni-woocommerce-dashboard-report/ni-woocommerce-dashboard-report.php 85% from 13 tests
"Ni WooCommerce Dashboard Sales Report" version 2.2.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please keep the plugin description shorter than 140 characters (currently 179 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin787 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 151 | 46 | 672 |
PO File | 1 | 43 | 93 | 106 |
CSS | 1 | 0 | 6 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 52.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 11.22KB | 5.06KB | ▼ 54.87% |
screenshot-7.png | 19.99KB | 7.40KB | ▼ 62.99% |
screenshot-6.png | 7.56KB | 2.99KB | ▼ 60.47% |
screenshot-2.png | 14.46KB | 7.30KB | ▼ 49.49% |
screenshot-5.png | 8.83KB | 3.93KB | ▼ 55.48% |