Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.82ms] Passed 4 tests
An overview of server-side resources used by EnvíaYa: Ship with all carriers (Rating, Booking and Tracking)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 44.61 ▼0.32 |
Dashboard /wp-admin | 3.45 ▲0.10 | 50.95 ▼17.56 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 49.47 ▲1.58 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 86.10 ▼14.98 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 43.20 ▲8.11 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for EnvíaYa: Ship with all carriers (Rating, Booking and Tracking)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.34 ▼0.01 | 1.82 ▲0.04 | 42.42 ▼4.89 |
Dashboard /wp-admin | 2,198 ▲18 | 5.63 ▲0.01 | 85.84 ▼15.30 | 40.18 ▼5.45 |
Posts /wp-admin/edit.php | 2,100 ▲21 | 2.02 ▲0.03 | 40.91 ▲4.57 | 52.16 ▲14.94 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.52 ▼0.13 | 676.53 ▼15.78 | 62.06 ▲6.59 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.29 ▲0.05 | 96.92 ▼3.41 | 43.54 ▼1.92 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 83% 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 your attention:
- Contributors: Plugin contributors field is missing
enviaya-shipping-for-woocommerce/wc-enviaya-shipping.php 69% from 13 tests
"EnvíaYa: Ship with all carriers (Rating, Booking and Tracking)" version 1.0.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("5.0" instead of "6.0")
- Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("enviaya-shipping-for-woocommerce.php" instead of "wc-enviaya-shipping.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin7,180 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 1,380 | 519 | 4,162 |
PO File | 2 | 1,335 | 0 | 2,682 |
JavaScript | 1 | 128 | 3 | 249 |
CSS | 2 | 18 | 1 | 87 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 36.94 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 243.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 3 | 17.65% |
▷ Concrete classes | 14 | 82.35% |
▷ Final classes | 0 | 0.00% |
Methods | 262 | |
▷ Static methods | 2 | 0.76% |
▷ Public methods | 164 | 62.60% |
▷ Protected methods | 92 | 35.11% |
▷ Private methods | 6 | 2.29% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
18 PNG files occupy 0.22MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/carriers/Ampm.png | 5.52KB | 4.21KB | ▼ 23.73% |
assets/images/carriers/Treggo.png | 5.30KB | 3.88KB | ▼ 26.83% |
assets/images/carriers/Tresguerras.png | 40.48KB | 18.13KB | ▼ 55.23% |
assets/images/carriers/Pickit.png | 2.13KB | 2.10KB | ▼ 1.10% |
assets/images/carriers/DHL.png | 1.38KB | 1.37KB | 0.50% |