Benchmarks
Plugin footprint 83% from 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.03MB] [CPU: ▼0.72ms] Passed 4 tests
This is a short check of server-side resources used by YITH WooCommerce Order & Shipment Tracking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.35 ▼1.38 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.03 ▼0.39 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 52.45 ▲7.16 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 93.57 ▼7.16 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.57 ▲6.06 |
Server storage [IO: ▲3.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 305 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
yit_recently_activated |
Browser metrics Passed 4 tests
Checking browser requirements for YITH WooCommerce Order & Shipment Tracking
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲9 | 14.73 ▲0.39 | 1.55 ▼0.39 | 36.13 ▼12.54 |
Dashboard /wp-admin | 2,201 ▲27 | 5.58 ▲0.03 | 92.86 ▲0.99 | 42.24 ▲2.43 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.08 | 40.12 ▼3.75 | 35.90 ▼4.03 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.61 ▲0.67 | 603.42 ▼46.13 | 62.55 ▲7.89 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.19 ▲0.00 | 97.69 ▲3.59 | 40.96 ▲0.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- yit_recently_activated
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: carrier, shipping, delivery, yith, woocommerce...
yith-woocommerce-order-tracking/init.php 77% from 13 tests
"YITH WooCommerce Order & Shipment Tracking" version 2.20.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("6.2" instead of "8.1")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yith-woocommerce-order-tracking.php" instead of "init.php")
- Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)
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 plugin40,746 lines of code in 254 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 167 | 2,622 | 5,292 | 14,772 |
CSS | 21 | 1,711 | 246 | 9,367 |
JavaScript | 48 | 1,311 | 828 | 9,273 |
PO File | 6 | 1,566 | 1,920 | 4,307 |
SVG | 10 | 0 | 1 | 2,982 |
XML | 2 | 12 | 9 | 45 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 46.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 1 | 3.70% |
▷ Concrete classes | 26 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 380 | |
▷ Static methods | 49 | 12.89% |
▷ Public methods | 308 | 81.05% |
▷ Protected methods | 52 | 13.68% |
▷ Private methods | 20 | 5.26% |
Functions | 138 | |
▷ Named functions | 130 | 94.20% |
▷ Anonymous functions | 8 | 5.80% |
Constants | 20 | |
▷ Global constants | 19 | 95.00% |
▷ Class constants | 1 | 5.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
29 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-fw/assets/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/images/x.png | 0.70KB | 0.71KB | 0.00% |
plugin-fw/assets/css/jquery-ui/images/ui-icons_2e83ff_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.08KB | 0.17KB | 0.00% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png | 0.11KB | 0.14KB | 0.00% |