Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.51ms] Passed 4 tests
This is a short check of server-side resources used by Order Tracker for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.82 ▼8.04 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.95 ▲1.89 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 48.40 ▼0.43 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.27 ▼7.45 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 44.78 ▲5.72 |
Server storage [IO: ▲1.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Order Tracker for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲156 | 13.42 ▼1.33 | 8.85 ▲6.64 | 43.32 ▼1.48 |
Dashboard /wp-admin | 2,211 ▲31 | 5.63 ▲0.02 | 87.85 ▼11.38 | 43.04 ▲0.55 |
Posts /wp-admin/edit.php | 2,110 ▲13 | 2.00 ▼0.10 | 34.67 ▼0.08 | 33.90 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 23.73 ▲0.52 | 678.14 ▼2.09 | 66.31 ▲13.21 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.23 ▲0.15 | 109.87 ▼4.21 | 47.56 ▲0.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #3, #4 in wc-order-tracker/assets to your readme.txt
wc-order-tracker/cbwct.php 85% from 13 tests
The primary PHP file in "Order Tracker for WooCommerce" version 1.2.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-order-tracker.php" instead of "cbwct.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
No dangerous file extensions were detected875 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 142 | 55 | 471 |
CSS | 3 | 59 | 6 | 379 |
JavaScript | 1 | 4 | 0 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 7 | |
▷ Static methods | 6 | 85.71% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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
11 PNG files occupy 0.43MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/delivered.png | 5.86KB | 4.92KB | ▼ 15.92% |
img/payment.png | 16.85KB | 6.89KB | ▼ 59.09% |
img/delivery.png | 18.04KB | 7.06KB | ▼ 60.86% |
screenshots/Screenshot_1.png | 52.71KB | 20.04KB | ▼ 61.97% |
screenshots/Screenshot_3.png | 68.79KB | 24.27KB | ▼ 64.72% |