Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼6.37ms] Passed 4 tests
This is a short check of server-side resources used by Orders Tracking for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 45.25 ▲5.32 |
Dashboard /wp-admin | 3.81 ▲0.46 | 51.88 ▼8.75 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 47.90 ▼3.09 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 83.18 ▼18.50 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 38.11 ▲4.85 |
Server storage [IO: ▲3.30MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 114 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wotv_woo_track_info |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
woo_orders_tracking_settings |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Orders Tracking for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲52 | 14.36 ▲0.00 | 1.67 ▲0.13 | 43.30 ▲4.80 |
Dashboard /wp-admin | 2,207 ▲30 | 5.62 ▼0.01 | 93.55 ▲7.33 | 43.18 ▲1.10 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.08 | 33.75 ▼7.10 | 34.51 ▼2.77 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 23.01 ▼0.16 | 613.15 ▼68.73 | 49.74 ▼3.51 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.22 ▲0.09 | 94.00 ▲0.77 | 41.11 ▼2.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_wotv_woo_track_info
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- woo_orders_tracking_settings
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
woo-orders-tracking/woo-orders-tracking.php Passed 13 tests
The main PHP file in "Orders Tracking for WooCommerce" ver. 1.2.7 adds more information about the plugin and also serves as the entry point for this plugin
117 characters long description:
Easily import/manage your tracking numbers, add tracking numbers to PayPal and send email notifications to customers.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected28,385 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 759 | 828 | 14,752 |
JavaScript | 22 | 1,337 | 455 | 7,685 |
PO File | 2 | 958 | 1,389 | 2,539 |
CSS | 33 | 434 | 198 | 2,176 |
SVG | 3 | 2 | 6 | 1,233 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 135)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 61.93 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 328.00 |
Average method complexity | 6.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 135.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 305 | |
▷ Static methods | 115 | 37.70% |
▷ Public methods | 250 | 81.97% |
▷ Protected methods | 15 | 4.92% |
▷ Private methods | 40 | 13.11% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/fs-sprite.png | 0.22KB | 0.18KB | ▼ 15.63% |
assets/images/paypal.png | 4.91KB | 2.89KB | ▼ 41.12% |