Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼297.62ms] Passed 4 tests
Analyzing server-side resources used by Advanced Dashboard for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 53.31 ▲2.09 |
Dashboard /wp-admin | 3.42 ▲0.01 | 33.19 ▼1.08 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.46 ▼1.95 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.09 | 91.39 ▼1,189.32 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 25.79 ▲1.86 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Dashboard for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,836 ▲82 | 15.93 ▼0.01 | 6.37 ▲0.43 | 2.38 ▼0.81 |
Dashboard /wp-admin | 2,909 ▲55 | 6.14 ▼0.03 | 117.72 ▼16.41 | 151.51 ▼7.03 |
Posts /wp-admin/edit.php | 2,704 ▲13 | 3.25 ▲0.02 | 63.18 ▼0.12 | 142.66 ▼1.89 |
Add New Post /wp-admin/post-new.php | 1,695 ▲38 | 19.14 ▼2.33 | 415.87 ▼22.45 | 162.68 ▲10.49 |
Media Library /wp-admin/upload.php | 1,716 ▲15 | 5.53 ▲0.04 | 130.20 ▼8.78 | 157.34 ▼30.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/advanced-dashboard-for-woocommerce/pp-woocommerce-advanced-dashboard.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: reports, woocommerce, dashboard, plugin, quantity...
advanced-dashboard-for-woocommerce/pp-woocommerce-advanced-dashboard.php 92% from 13 tests
The principal PHP file in "Advanced Dashboard for WooCommerce" v. 0.2.5 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-dashboard-for-woocommerce.php" instead of "pp-woocommerce-advanced-dashboard.php")
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
There were no executable files found in this plugin393 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 76 | 13 | 369 |
JavaScript | 1 | 2 | 9 | 16 |
CSS | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 17 | 89.47% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin