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
It is recommended to fix the following installer errors
- Install procedure had errors
- > Error in wp-content/plugins/enviopack-argentina/utils.php+419
Uncaught Error: Class 'WC_Shipping_Zone' not found in wp-content/plugins/enviopack-argentina/utils.php:419
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.01MB] [CPU: ▼5.99ms] Passed 4 tests
Analyzing server-side resources used by Envíopack (Argentina)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.19 ▼1.34 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.71 ▼13.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.94 ▲6.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.85 ▼9.28 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.55 ▲0.46 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
enviopack_api_key |
enviopack_api_secret |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Envíopack (Argentina)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.69 ▲0.35 | 1.75 ▲0.02 | 38.21 ▲0.96 |
Dashboard /wp-admin | 2,198 ▲23 | 5.62 ▼0.07 | 89.04 ▼14.96 | 40.20 ▼1.01 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.03 | 41.23 ▲5.45 | 36.77 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.13 ▼0.12 | 570.48 ▼107.24 | 55.37 ▼15.02 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.20 ▲0.03 | 98.31 ▲1.30 | 43.89 ▲2.88 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- enviopack_api_key
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- enviopack_api_secret
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: store, argentina, logistica, woocommerce, downloadable...
enviopack-argentina/woocommerce-enviopack.php 85% from 13 tests
Analyzing the main PHP file in "Envíopack (Argentina)" version 1.0.15
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("enviopack-argentina.php" instead of "woocommerce-enviopack.php")
- Requires PHP: Required version number should only contain digits separated by dots (ex. "7.0" instead of "7")
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 plugin2,511 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 324 | 188 | 2,425 |
JavaScript | 1 | 16 | 0 | 86 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 121.67 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 7.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.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 | 56 | |
▷ Static methods | 9 | 16.07% |
▷ Public methods | 53 | 94.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.36% |
Functions | 50 | |
▷ Named functions | 48 | 96.00% |
▷ Anonymous functions | 2 | 4.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin