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.08MB] [CPU: ▲0.57ms] Passed 4 tests
Server-side resources used by Advanced Reporting for Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.18 ▼0.69 |
Dashboard /wp-admin | 3.42 ▲0.12 | 50.69 ▼0.38 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 52.60 ▲1.57 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 97.37 ▲6.81 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.19 ▲1.78 |
Install Plugins /wp-admin/themes.php?page=tgm-support-ticket-system-install-plugins | 3.36 | 33.96 |
Settings /wp-admin/admin.php?page=phoen_report_setting | 3.29 | 32.38 |
Reports /wp-admin/admin.php?page=advanced_reporting_for_woocommerce | 3.70 | 54.74 |
Server storage [IO: ▲2.73MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 78 new files
Database: no new tables, 8 new options
New WordPress options |
---|
phoen_reportings_enable |
theysaidso_admin_options |
recovery_mode_email_last_sent |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Reporting for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲86 | 14.15 ▼0.15 | 1.68 ▲0.11 | 44.03 ▼0.95 |
Dashboard /wp-admin | 2,241 ▲61 | 5.79 ▲0.12 | 89.82 ▲2.91 | 75.92 ▲32.20 |
Posts /wp-admin/edit.php | 2,171 ▲71 | 2.05 ▲0.08 | 40.86 ▲3.46 | 39.75 ▲1.46 |
Add New Post /wp-admin/post-new.php | 1,576 ▲48 | 23.17 ▲0.11 | 711.89 ▲17.53 | 59.73 ▼8.02 |
Media Library /wp-admin/upload.php | 1,460 ▲60 | 4.14 ▼0.06 | 99.93 ▼9.77 | 86.63 ▲40.17 |
Install Plugins /wp-admin/themes.php?page=tgm-support-ticket-system-install-plugins | 1,017 | 2.19 | 26.53 | 31.77 |
Settings /wp-admin/admin.php?page=phoen_report_setting | 1,471 | 9.41 | 284.06 | 77.14 |
Reports /wp-admin/admin.php?page=advanced_reporting_for_woocommerce | 773 | 1.12 | 6.91 | 29.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-comments
- phoen_reportings_enable
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=advanced_reporting_for_woocommerce
- > Error in wp-content/plugins/advanced-reporting-for-woocommerce/includes/phoe_reporting.php+608
Uncaught Error: Call to undefined function get_woocommerce_currency_symbol() in wp-content/plugins/advanced-reporting-for-woocommerce/includes/phoe_reporting.php:608
Stack trace:
#0 wp-content/plugins/advanced-reporting-for-woocommerce/phoen_advance_reporting.php(59): include_once()
#1 wp-includes/class-wp-hook.php(310): phoe_advance_reporting()
#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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-reporting-for-woocommerce/phoen_advance_reporting.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/advanced-reporting-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advanced-reporting-for-woocommerce/includes/phoen_reporting_settings.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/advanced-reporting-for-woocommerce/includes/phoe_reporting.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/advanced-reporting-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/advanced-reporting-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (31 tag instead of maximum 10); only the first 5 tags are used in your directory listing
advanced-reporting-for-woocommerce/phoen_advance_reporting.php 77% from 13 tests
The main PHP file in "Advanced Reporting for Woocommerce" ver. 3.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 227 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-reporting-for-woocommerce.php" instead of "phoen_advance_reporting.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "2.6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected16,670 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 64 | 40 | 9,569 |
PHP | 7 | 1,238 | 1,663 | 3,114 |
Sass | 14 | 34 | 34 | 1,656 |
LESS | 14 | 34 | 44 | 1,646 |
SVG | 1 | 0 | 0 | 685 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 48.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 101 | |
▷ Static methods | 5 | 4.95% |
▷ Public methods | 78 | 77.23% |
▷ Protected methods | 23 | 22.77% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
17 PNG files occupy 0.47MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/premium-head.png | 6.61KB | 5.20KB | ▼ 21.37% |
assets/images/image-frame-odd.png | 0.90KB | 0.81KB | ▼ 10.31% |
assets/screenshot-5.png | 62.55KB | 17.98KB | ▼ 71.25% |
assets/images/image-frame-even.png | 0.67KB | 0.62KB | ▼ 8.42% |
assets/images/csv_sheet.png | 98.85KB | 24.79KB | ▼ 74.92% |