Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/wc-reports-lite/includes/admin-pages/wcrl-overview.php+3
include_once(wp-content/plugins/woocommerce/includes/admin/reports/class-wc-admin-report.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.00MB] [CPU: ▼143.56ms] Passed 4 tests
Analyzing server-side resources used by NikanWP WooCommerce Reporting
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 39.22 ▲15.51 |
Dashboard /wp-admin | 3.06 ▲0.00 | 42.54 ▼2.66 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 43.33 ▼1.65 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 88.00 ▼571.48 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 30.33 ▲1.55 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for NikanWP WooCommerce Reporting
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.99 ▲0.45 | 8.16 ▼5.44 | 45.72 ▼3.59 |
Dashboard /wp-admin | 2,970 ▲39 | 6.08 ▲0.13 | 152.17 ▲9.45 | 116.54 ▲2.48 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 64.23 ▼5.51 | 92.96 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 18.95 ▲0.28 | 376.07 ▲14.14 | 113.44 ▼10.22 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.00 ▼0.04 | 158.35 ▲20.55 | 119.82 ▲0.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 to be fixed:
- Requires at least: Invalid plugin version format
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wc-reports-lite/wcrl.php 92% from 13 tests
Analyzing the main PHP file in "NikanWP WooCommerce Reporting" version 1.0.0
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-reports-lite.php" instead of "wcrl.php")
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
Everything looks great! No dangerous files found in this plugin4,923 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 255 | 505 | 2,388 |
CSS | 4 | 64 | 52 | 1,491 |
JavaScript | 2 | 52 | 68 | 758 |
PO File | 1 | 207 | 350 | 286 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 12.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 1 | 5.56% |
Methods | 141 | |
▷ Static methods | 13 | 9.22% |
▷ Public methods | 137 | 97.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.84% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
14 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
assets/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/images/wooreports.png | 10.04KB | 3.95KB | ▼ 60.71% |
assets/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
assets/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |