Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.99ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Multi Currency Report
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.87 ▼3.84 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.99 ▼0.06 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.44 ▼0.31 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.90 ▼11.74 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.20 ▲2.16 |
Dashboard /wp-admin/admin.php?page=niwoomcr-dashboard | 3.28 | 33.70 |
Order Report /wp-admin/admin.php?page=niwoomcr-order-report | 3.29 | 31.13 |
Currency Report /wp-admin/admin.php?page=niwoomcr-currency-report | 3.29 | 33.17 |
Server storage [IO: ▲1.54MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
WooCommerce Multi Currency Report: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲55 | 14.67 ▲0.39 | 2.08 ▲0.44 | 38.63 ▼5.38 |
Dashboard /wp-admin | 2,222 ▲48 | 5.63 ▼0.05 | 93.86 ▼18.72 | 42.80 ▼1.00 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▲0.07 | 40.36 ▲1.42 | 36.23 ▲4.25 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.34 ▲0.06 | 626.35 ▲37.05 | 59.95 ▲11.02 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.13 ▼0.12 | 95.48 ▼1.38 | 41.04 ▼2.04 |
Dashboard /wp-admin/admin.php?page=niwoomcr-dashboard | 1,054 | 1.90 | 26.55 | 89.11 |
Order Report /wp-admin/admin.php?page=niwoomcr-order-report | 969 | 1.95 | 35.13 | 33.13 |
Currency Report /wp-admin/admin.php?page=niwoomcr-currency-report | 1,000 | 1.94 | 32.19 | 35.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Dashboard Sales count and amount), #2 (Order Report Information), #3 (Currency report)
ni-woocommerce-multi-currency-report/ni-woocommerce-multi-currency-report.php 92% from 13 tests
The primary PHP file in "WooCommerce Multi Currency Report" version 1.3.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin11,159 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 717 | 29 | 3,983 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP | 7 | 166 | 75 | 853 |
PO File | 1 | 38 | 58 | 99 |
JavaScript | 2 | 2 | 7 | 18 |
HTML | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 12.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 40.47KB | 23.64KB | ▼ 41.59% |
screenshot-3.png | 37.19KB | 19.97KB | ▼ 46.32% |
screenshot-2.png | 62.20KB | 30.18KB | ▼ 51.47% |