Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.70ms] Passed 4 tests
Server-side resources used by Transdirect Shipping Plugin for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.24 ▼2.28 |
Dashboard /wp-admin | 3.31 ▲0.00 | 54.90 ▼15.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 65.74 ▲6.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.27 ▲0.75 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.73 ▼2.18 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Transdirect Shipping Plugin for Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲36 | 13.56 ▼1.22 | 4.72 ▲2.90 | 41.79 ▼3.47 |
Dashboard /wp-admin | 2,206 ▲3 | 4.86 ▼1.03 | 108.62 ▼3.47 | 41.25 ▼6.04 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 40.08 ▲0.56 | 37.57 ▲1.78 |
Add New Post /wp-admin/post-new.php | 1,544 ▲171 | 18.34 ▲0.52 | 592.22 ▼79.11 | 55.84 ▲1.11 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▲0.04 | 98.94 ▼7.49 | 40.20 ▼6.99 |
Uninstaller [IO: ✅] [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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 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 50% 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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/transdirect-shipping/templates/part_htm.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/transdirect-shipping/part_htm.php:201
- > PHP Fatal error
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 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #3, #4, #5 in transdirect-shipping/assets to your readme.txt
- Tags: You are using too many tags: 25 tag instead of maximum 10
transdirect-shipping/transdirect_shipping.php 77% from 13 tests
The entry point to "Transdirect Shipping Plugin for Woocommerce" version 7.7.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Domain Path: The domain path folder was not found ("/lang")
- Main file name: Name the main plugin file the same as the plugin slug ("transdirect-shipping.php" instead of "transdirect_shipping.php")
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
Everything looks great! No dangerous files found in this plugin7,497 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 507 | 589 | 3,600 |
JavaScript | 4 | 61 | 380 | 2,935 |
CSS | 3 | 13 | 9 | 958 |
Markdown | 1 | 3 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 31.20 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 5.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 88.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 11.54% |
Functions | 40 | |
▷ Named functions | 39 | 97.50% |
▷ Anonymous functions | 1 | 2.50% |
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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/countryflags.png | 74.75KB | 25.52KB | ▼ 65.86% |
countryflags.png | 74.75KB | 25.52KB | ▼ 65.86% |
assets/images/logo-transdirect.png | 11.86KB | 5.75KB | ▼ 51.54% |
logo-transdirect.png | 11.86KB | 5.75KB | ▼ 51.54% |