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.03MB] [CPU: ▼4.62ms] Passed 4 tests
A check of server-side resources used by Shop Metrics Report for WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 34.78 ▼2.09 |
Dashboard /wp-admin | 3.36 ▲0.01 | 52.34 ▼5.49 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.16 ▲3.51 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.18 ▼12.97 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.24 ▲2.06 |
Test API connection /wp-admin/admin.php?page=smr_for_wp_test | 3.23 | 419.33 |
Settings /wp-admin/admin.php?page=smr_for_wp_settings | 3.25 | 32.86 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
shopmetrics_for_woocommerce |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Shop Metrics Report for WP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.34 ▼0.24 | 1.58 ▲0.06 | 36.95 ▼3.72 |
Dashboard /wp-admin | 2,218 ▲46 | 5.50 ▼0.10 | 82.82 ▼17.79 | 38.63 ▼7.56 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.03 ▲0.05 | 38.98 ▲0.36 | 35.18 ▼2.71 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.79 ▲0.26 | 663.97 ▼7.12 | 52.97 ▼3.78 |
Media Library /wp-admin/upload.php | 1,432 ▲38 | 4.16 ▼0.08 | 97.83 ▲0.06 | 42.72 ▼1.55 |
Test API connection /wp-admin/admin.php?page=smr_for_wp_test | 832 | 2.03 | 22.70 | 26.53 |
Settings /wp-admin/admin.php?page=smr_for_wp_settings | 879 | 1.68 | 22.96 | 29.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- can_compress_scripts
- shopmetrics_for_woocommerce
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=smr_for_wp_settings
- > Notice in wp-content/plugins/shop-metrics-report/templates/settings.php+33
Trying to access array offset on value of type bool
SRP 0% 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
Almost there! Just fix the following items
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/shop-metrics-report/templates/test.php
- > /wp-content/plugins/shop-metrics-report/images/index.php
- > /wp-content/plugins/shop-metrics-report/translations/index.php
- > /wp-content/plugins/shop-metrics-report/lib/index.php
- > /wp-content/plugins/shop-metrics-report/templates/settings.php
- > /wp-content/plugins/shop-metrics-report/lib/plugins/index.php
- > /wp-content/plugins/shop-metrics-report/templates/index.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/shop-metrics-report/lib/plugins/class-edd.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/shop-metrics-report/lib/plugins/class-woocommerce.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/shop-metrics-report/shopmetrics-for-wp.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shop-metrics-report/lib/class-admin.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: shop metrics, ecommerce dashboard, woocommerce, charts
shop-metrics-report/shopmetrics-for-wp.php 85% from 13 tests
The primary PHP file in "Shop Metrics Report for WP" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 232 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("shop-metrics-report.php" instead of "shopmetrics-for-wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin631 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 103 | 76 | 475 |
PO File | 1 | 45 | 48 | 156 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 12 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 25.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/favicon.png | 2.20KB | 1.15KB | ▼ 47.60% |