Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.29ms] Passed 4 tests
Analyzing server-side resources used by DrEnvio for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.06 ▼0.17 |
Dashboard /wp-admin | 3.34 ▲0.04 | 58.36 ▲6.91 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.09 ▼2.71 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.44 ▼10.91 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.42 ▼3.36 |
Server storage [IO: ▲4.92MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DrEnvio for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲18 | 14.72 ▲0.16 | 1.88 ▲0.09 | 43.80 ▲0.40 |
Dashboard /wp-admin | 2,207 ▲30 | 5.55 ▼0.11 | 87.40 ▼0.70 | 72.66 ▲29.94 |
Posts /wp-admin/edit.php | 2,115 ▲18 | 1.98 ▼0.04 | 40.85 ▲3.68 | 34.71 ▲0.60 |
Add New Post /wp-admin/post-new.php | 1,553 ▲18 | 23.07 ▲4.82 | 757.01 ▲100.62 | 57.88 ▼5.93 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.21 ▲0.01 | 97.45 ▼12.30 | 73.05 ▲25.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/drenvio-for-woocommerce/public/templates/cart-shipping.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/drenvio-for-woocommerce/public/templates/cart-shipping.php on line 3
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/drenvio-for-woocommerce/public/templates/cart-shipping.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/drenvio-for-woocommerce/drenvio.php:126
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: drenvio, paqueteras, envos, woocommerce, logstica
drenvio-for-woocommerce/drenvio.php 77% from 13 tests
The main PHP script in "DrEnvio for WooCommerce" version 2.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("drenvio-for-woocommerce.php" instead of "drenvio.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 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
Everything looks great! No dangerous files found in this plugin34,788 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 21 | 0 | 0 | 33,863 |
PHP | 5 | 133 | 23 | 575 |
JSON | 2 | 1 | 0 | 202 |
CSS | 1 | 24 | 0 | 107 |
JavaScript | 2 | 13 | 20 | 41 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 31.50 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 5.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 5 | 35.71% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/aexpress.png | 50.18KB | 20.20KB | ▼ 59.75% |
public/img/icono.png | 0.52KB | 0.63KB | 0.00% |
public/img/scm.png | 21.98KB | 9.71KB | ▼ 55.84% |
public/img/icon.png | 0.63KB | 0.50KB | ▼ 21.11% |
public/img/interrapidisimo.png | 32.40KB | 13.66KB | ▼ 57.84% |