Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼294.08ms] Passed 4 tests
This is a short check of 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.93 ▲0.41 | 56.18 ▼1.42 |
Dashboard /wp-admin | 3.79 ▲0.38 | 44.73 ▲11.75 |
Posts /wp-admin/edit.php | 4.01 ▲0.37 | 42.24 ▲5.12 |
Add New Post /wp-admin/post-new.php | 7.32 ▲0.35 | 97.74 ▼1,180.59 |
Media Library /wp-admin/upload.php | 3.73 ▲0.43 | 26.07 ▲0.59 |
Settings /wp-admin/admin.php?page=phoen_report_setting | 3.70 | 25.36 |
Reports /wp-admin/admin.php?page=advanced_reporting_for_woocommerce | 4.00 | 39.98 |
Install Plugins /wp-admin/themes.php?page=tgm-support-ticket-system-install-plugins | 3.73 | 25.36 |
Server storage [IO: ▲2.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 78 new files
Database: no new tables, 2 new options
New WordPress options |
---|
phoen_reportings_enable |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Reporting for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,842 ▲88 | 16.19 ▲0.53 | 6.79 ▼0.69 | 2.16 ▼0.50 |
Dashboard /wp-admin | 2,969 ▲111 | 6.16 ▼0.08 | 132.94 ▼3.98 | 248.71 ▲87.04 |
Posts /wp-admin/edit.php | 2,775 ▲84 | 3.25 ▲0.02 | 66.37 ▲1.80 | 158.92 ▲10.86 |
Add New Post /wp-admin/post-new.php | 1,722 ▲61 | 19.25 ▼3.54 | 405.32 ▼68.12 | 255.36 ▲98.31 |
Media Library /wp-admin/upload.php | 1,780 ▲82 | 5.59 ▲0.05 | 127.69 ▼15.46 | 305.55 ▲119.98 |
Settings /wp-admin/admin.php?page=phoen_report_setting | 1,904 | 9.05 | 247.72 | 198.48 |
Reports /wp-admin/admin.php?page=advanced_reporting_for_woocommerce | 962 | 1.98 | 38.77 | 134.65 |
Install Plugins /wp-admin/themes.php?page=tgm-support-ticket-system-install-plugins | 1,282 | 2.44 | 55.30 | 133.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 2 options in the database
- phoen_reportings_enable
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > 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(307): phoe_advance_reporting()
#2 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(474): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > 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 add_action() in wp-content/plugins/advanced-reporting-for-woocommerce/phoen_advance_reporting.php:14
- > 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 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
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 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 31 tag instead of maximum 10
advanced-reporting-for-woocommerce/phoen_advance_reporting.php 77% from 13 tests
Analyzing the main PHP file in "Advanced Reporting for Woocommerce" version 3.0
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "2.6.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-reporting-for-woocommerce.php" instead of "phoen_advance_reporting.php")
- Description: Keep the plugin description shorter than 140 characters (currently 227 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin16,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
This plugin has no cyclomatic complexity problems
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 0.47MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/button2.png | 3.58KB | 2.59KB | ▼ 27.61% |
assets/screenshot-5.png | 62.55KB | 17.98KB | ▼ 71.25% |
assets/screenshot-6.png | 23.02KB | 7.24KB | ▼ 68.53% |
assets/screenshot-2.png | 49.74KB | 14.39KB | ▼ 71.07% |
assets/images/premium-head.png | 6.61KB | 5.20KB | ▼ 21.37% |