Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Error in wp-content/plugins/enviopack/utils.php+416
Uncaught Error: Class 'WC_Shipping_Zone' not found in wp-content/plugins/enviopack/utils.php:416
Stack trace:
#0 wp-includes/class-wp-hook.php(310): Ecomerciar\Enviopack\Utils\create_page()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.60ms] Passed 4 tests
This is a short check of server-side resources used by EnvíoPack (Chile)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.39 ▼1.97 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.97 ▼4.86 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.02 ▼3.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.87 ▼12.44 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.85 ▼0.22 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
enviopack_api_key |
enviopack_api_secret |
Browser metrics Passed 4 tests
An overview of browser requirements for EnvíoPack (Chile)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.16 ▼0.04 | 1.77 ▲0.10 | 37.71 ▼6.95 |
Dashboard /wp-admin | 2,189 ▲12 | 5.47 ▼0.18 | 85.56 ▼13.21 | 40.29 ▼2.88 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.95 ▼0.02 | 34.90 ▼3.19 | 34.39 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.55 ▲0.40 | 597.18 ▼85.69 | 51.17 ▼2.32 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.21 ▼0.04 | 97.32 ▼4.42 | 44.07 ▲1.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- enviopack_api_key
- theysaidso_admin_options
- can_compress_scripts
- enviopack_api_secret
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
10 plugin tags: envios, chile, enviopack, downloadable, logistics...
enviopack/woocommerce-enviopack.php 85% from 13 tests
The principal PHP file in "EnvíoPack (Chile)" v. 1.0.14 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("enviopack.php" instead of "woocommerce-enviopack.php")
- Requires PHP: Periods and digits should be used for the required version number (ex. "7.0" instead of "7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,611 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 340 | 223 | 2,446 |
JavaScript | 2 | 40 | 2 | 162 |
CSS | 2 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 118.33 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 184.00 |
Average method complexity | 7.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 8 | 14.55% |
▷ Public methods | 52 | 94.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.45% |
Functions | 54 | |
▷ Named functions | 52 | 96.30% |
▷ Anonymous functions | 2 | 3.70% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/screenshot-2.png | 64.47KB | 21.72KB | ▼ 66.31% |