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.01MB] [CPU: ▼6.12ms] Passed 4 tests
Server-side resources used by Metorik - Reports & Email Automation for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.45 ▼4.41 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.90 ▼9.73 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.34 ▼0.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 105.92 ▼9.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.77 ▼1.13 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
metorik_show_activation_notice |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Metorik - Reports & Email Automation for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 13.62 ▼0.69 | 2.10 ▲0.10 | 45.35 ▲3.26 |
Dashboard /wp-admin | 2,227 ▲27 | 5.85 ▼0.03 | 110.91 ▼4.06 | 44.75 ▲2.48 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.06 ▲0.01 | 40.57 ▲0.73 | 41.75 ▲3.68 |
Add New Post /wp-admin/post-new.php | 1,551 ▼3 | 23.21 ▲5.07 | 656.88 ▼4.97 | 54.96 ▲1.58 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.17 ▼0.08 | 110.70 ▼10.75 | 48.53 ▼0.47 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- metorik_show_activation_notice
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_Posts_Controller' not found in wp-content/plugins/metorik-helper/inc/api/coupons.php:6
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_Posts_Controller' not found in wp-content/plugins/metorik-helper/inc/api/refunds.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/metorik-helper/inc/ui.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_Posts_Controller' not found in wp-content/plugins/metorik-helper/inc/api/customers.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/metorik-helper/metorik-helper.php:122
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/metorik-helper/inc/import.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/metorik-helper/inc/api.php:14
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_Posts_Controller' not found in wp-content/plugins/metorik-helper/inc/api/products.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/metorik-helper/inc/custom.php:44
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_Posts_Controller' not found in wp-content/plugins/metorik-helper/inc/api/metorik.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 19 tag instead of maximum 10
metorik-helper/metorik-helper.php 85% from 13 tests
The entry point to "Metorik - Reports & Email Automation for WooCommerce" version 1.7.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4.0" instead of "4.0.0")
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
Good job! No executable or dangerous file extensions detected3,386 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 492 | 1,018 | 2,168 |
JavaScript | 5 | 157 | 93 | 1,156 |
CSS | 1 | 9 | 2 | 41 |
Markdown | 1 | 9 | 0 | 14 |
JSON | 1 | 0 | 0 | 7 |
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 issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 20.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 3 | 2.46% |
▷ Public methods | 119 | 97.54% |
▷ Protected methods | 1 | 0.82% |
▷ Private methods | 2 | 1.64% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 |
assets/img/metorik.png | 4.51KB | 2.60KB | ▼ 42.40% |