Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼289.55ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Advance Reporting
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 56.77 ▲4.98 |
Dashboard /wp-admin | 3.42 ▲0.02 | 32.70 ▼1.45 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.17 ▼0.05 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 97.16 ▼1,160.11 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 26.65 ▲3.42 |
Advance Reporting /wp-admin/admin.php?page=advance-reporting | 3.24 | 21.80 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Advance Reporting
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,773 ▲18 | 16.28 ▲0.34 | 5.83 ▼0.51 | 2.38 ▼0.15 |
Dashboard /wp-admin | 2,898 ▲37 | 6.45 ▲0.41 | 123.05 ▼10.01 | 159.15 ▼6.95 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.26 ▲0.01 | 61.99 ▼1.94 | 142.20 ▼4.93 |
Add New Post /wp-admin/post-new.php | 1,723 ▲62 | 20.75 ▲4.36 | 440.70 ▼1.22 | 158.35 ▼2.44 |
Media Library /wp-admin/upload.php | 1,705 ▲13 | 5.62 ▲0.10 | 128.38 ▼24.18 | 184.07 ▼12.21 |
Advance Reporting /wp-admin/admin.php?page=advance-reporting | 833 | 2.28 | 37.86 | 70.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- recovery_mode_email_last_sent
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=advance-reporting
- > Error in wp-content/plugins/woo-advance-reporting/reporting.php+13
Uncaught Error: Call to undefined function get_woocommerce_currency() in wp-content/plugins/woo-advance-reporting/reporting.php:13
Stack trace:
#0 wp-includes/class-wp-hook.php(307): advance_reporting_callback()
#1 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(474): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
SRP 0% from 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-advance-reporting/woocommerce-advance-reporting.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-advance-reporting/reporting.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Requires at least: Invalid version format
woo-advance-reporting/woocommerce-advance-reporting.php 85% from 13 tests
Analyzing the main PHP file in "WooCommerce Advance Reporting" version 1.0.1
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-advance-reporting.php" instead of "woocommerce-advance-reporting.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 214 characters long)
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
Good job! No executable or dangerous file extensions detected372 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 18 | 13 | 344 |
CSS | 1 | 17 | 0 | 28 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
There were not PNG files found in your plugin