Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.03ms] Passed 4 tests
This is a short check of server-side resources used by pd Woo Tracking Order
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.68 ▲0.62 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.69 ▼7.50 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.65 ▼1.12 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.60 ▼13.30 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.66 ▼2.20 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by pd Woo Tracking Order
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.76 ▲0.38 | 1.95 ▲0.18 | 45.76 ▼10.41 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲1.03 | 100.34 ▼19.44 | 44.15 ▼2.08 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▼0.04 | 35.44 ▲0.67 | 31.81 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 18.20 ▲0.53 | 637.13 ▼60.71 | 57.27 ▲2.60 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.19 ▲0.02 | 98.66 ▼1.52 | 39.74 ▼8.95 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pd-woo-tracking-order/admin/settings/inc/placeholder.php
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pd-woo-tracking-order/ajax/status-visibility.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pd-woo-tracking-order/admin/metaboxes/shop-metabox.php:13
- > PHP Fatal error
Uncaught Error: Class 'pd_Woo_Tracking_Send_Email' not found in wp-content/plugins/pd-woo-tracking-order/class/class-admin.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pd-woo-tracking-order/admin/settings/inc/settings.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/pd-woo-tracking-order/admin/settings/main.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/pd-woo-tracking-order/admin/metaboxes/admin-metabox.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/pd-woo-tracking-order/admin/metaboxes/placeholders.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pd-woo-tracking-order/admin/custom-column/order-status.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pd-woo-tracking-order/admin/settings/inc/carriers.php:11
- > PHP Fatal error
Uncaught Error: Class 'pd_Woo_Tracking_Order_Front' not found in wp-content/plugins/pd-woo-tracking-order/class/class-email.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: tracking, woocommerce, woocommerce order tracking, order tracking
pd-woo-tracking-order/pd-woo-tracking-order.php 85% from 13 tests
This is the main PHP file of "pd Woo Tracking Order" version 2.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 171 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.4.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,898 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 294 | 135 | 1,130 |
JSON | 1 | 0 | 0 | 321 |
Sass | 8 | 1 | 0 | 223 |
JavaScript | 2 | 32 | 1 | 218 |
Ruby | 1 | 5 | 17 | 4 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.75 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin