Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼290.67ms] Passed 4 tests
A check of server-side resources used by Tracking: Emails and Notifications for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.20 | 56.77 ▲4.36 |
Dashboard /wp-admin | 3.54 ▲0.13 | 35.31 ▲2.03 |
Posts /wp-admin/edit.php | 3.77 ▲0.13 | 39.55 ▲2.27 |
Add New Post /wp-admin/post-new.php | 7.01 ▲0.04 | 94.57 ▼1,171.33 |
Media Library /wp-admin/upload.php | 3.42 ▲0.13 | 27.02 ▲4.38 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Tracking: Emails and Notifications for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲45 | 15.58 ▼0.04 | 6.41 ▲0.24 | 2.42 ▼0.07 |
Dashboard /wp-admin | 2,893 ▲32 | 6.13 ▼0.06 | 117.26 ▼23.60 | 154.46 ▼15.65 |
Posts /wp-admin/edit.php | 2,711 ▲17 | 3.23 ▼0.00 | 63.77 ▲0.51 | 139.11 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,765 ▲104 | 21.09 ▲5.35 | 466.75 ▲32.38 | 157.03 ▼3.18 |
Media Library /wp-admin/upload.php | 1,714 ▲16 | 5.60 ▲0.17 | 144.76 ▲3.95 | 189.24 ▲1.63 |
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
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/email-tracking-notification-for-woocommerce/assets/class.php
- > /wp-content/plugins/email-tracking-notification-for-woocommerce/emails/tracking_email.php
- > /wp-content/plugins/email-tracking-notification-for-woocommerce/tracking_email.php
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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
- Screenshots: These screenshots require images: #4 (Email), #6 (Tracking on the customer's order page)
email-tracking-notification-for-woocommerce/tracking_email.php 85% from 13 tests
The main PHP script in "Tracking: Emails and Notifications for WooCommerce" version 1.7.4 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Name the main plugin file the same as the plugin slug ("email-tracking-notification-for-woocommerce.php" instead of "tracking_email.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected935 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 106 | 299 | 656 |
JavaScript | 1 | 15 | 12 | 132 |
PO File | 1 | 55 | 124 | 109 |
Markdown | 1 | 12 | 0 | 38 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 34.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 4.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 15 | 60.00% |
▷ Protected methods | 1 | 4.00% |
▷ Private methods | 9 | 36.00% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
No PNG files were detected