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.00MB] [CPU: ▼1.32ms] Passed 4 tests
An overview of server-side resources used by Entregar for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.97 ▲1.32 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.42 ▼3.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.10 ▲2.58 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.76 ▼0.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.40 ▼2.38 |
Ayuda /wp-admin/admin.php?page=entregar-help | 3.00 | 25.08 |
Mapeo /wp-admin/admin.php?page=entregar-mapping | 3.00 | 21.95 |
Ajustes /wp-admin/admin.php?page=entregar-settings | 3.00 | 24.65 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Entregar for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.19 ▼1.46 | 1.65 ▼0.24 | 43.36 ▼3.56 |
Dashboard /wp-admin | 2,203 ▲18 | 5.80 ▲0.70 | 95.45 ▼10.67 | 39.82 ▼4.01 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.00 | 40.26 ▲1.33 | 35.65 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.17 ▲0.07 | 626.36 ▼52.20 | 58.42 ▲3.37 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▼0.00 | 95.79 ▼8.07 | 42.89 ▼2.47 |
Ayuda /wp-admin/admin.php?page=entregar-help | 28 | 0.44 | 0.07 | 4.06 |
Mapeo /wp-admin/admin.php?page=entregar-mapping | 28 | 0.44 | 0.09 | 3.62 |
Ajustes /wp-admin/admin.php?page=entregar-settings | 28 | 0.44 | 0.06 | 3.85 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Plugin\\Entregar\\Settings\\Fields\\FieldInterface' not found in wp-content/plugins/entregar-shipping-method/Settings/Fields/Field.php:7
- > PHP Fatal error
Uncaught Error: Class 'Plugin\\Entregar\\Settings\\Sections\\Section' not found in wp-content/plugins/entregar-shipping-method/Settings/Mapping/SendingStatusSection.php:12
- > PHP Fatal error
Uncaught Error: Class 'Plugin\\Entregar\\Settings\\Fields\\Field' not found in wp-content/plugins/entregar-shipping-method/Settings/Fields/DescriptionField.php:5
- > PHP Fatal error
Uncaught Error: Class 'Plugin\\Entregar\\Api\\ApiConnector' not found in wp-content/plugins/entregar-shipping-method/Api/EntregarApi.php:7
- > PHP Fatal error
Uncaught Error: Class 'Plugin\\Entregar\\Settings\\Fields\\Field' not found in wp-content/plugins/entregar-shipping-method/Settings/Fields/SelectField.php:5
- > PHP Fatal error
Uncaught Error: Class 'Plugin\\Entregar\\Settings\\Sections\\Section' not found in wp-content/plugins/entregar-shipping-method/Settings/GeneralSettings/IntegrationSection.php:11
- > PHP Fatal error
Trait 'Plugin\\Entregar\\Helper\oticesTrait' not found in wp-content/plugins/entregar-shipping-method/Helper/Helper.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Plugin\\Entregar\\Settings\\Fields\\Field' not found in wp-content/plugins/entregar-shipping-method/Settings/Fields/TextField.php:5
- > PHP Fatal error
Uncaught Error: Class 'Plugin\\Entregar\\Settings\\Sections\\Section' not found in wp-content/plugins/entregar-shipping-method/Settings/GeneralSettings/SellerSection.php:12
- > PHP Fatal error
Uncaught Error: Class 'Plugin\\Entregar\\Settings\\Fields\\Field' not found in wp-content/plugins/entregar-shipping-method/Settings/Fields/NumberField.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=entregar-help
- > Network (severe)
wp-admin/admin.php?page=entregar-help - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=entregar-mapping
- > Network (severe)
wp-admin/admin.php?page=entregar-mapping - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=entregar-settings
- > Network (severe)
wp-admin/admin.php?page=entregar-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: shipments, entregar
entregar-shipping-method/entregar.php 77% from 13 tests
"Entregar for WooCommerce" version 1.2.01'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:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("entregar-shipping-method.php" instead of "entregar.php")
- Requires at least: The required version number must match the one declared in readme.txt ("4.8" instead of "4.9")
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
Success! There were no dangerous files found in this plugin2,802 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 993 | 864 | 2,362 |
PO File | 1 | 76 | 81 | 190 |
JavaScript | 3 | 20 | 27 | 149 |
Sass | 1 | 8 | 0 | 61 |
Markdown | 1 | 7 | 0 | 33 |
SVG | 1 | 0 | 0 | 6 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 3 | |
Traits | 7 | |
Classes | 30 | |
▷ Abstract classes | 1 | 3.33% |
▷ Concrete classes | 29 | 96.67% |
▷ Final classes | 4 | 13.79% |
Methods | 153 | |
▷ Static methods | 84 | 54.90% |
▷ Public methods | 133 | 86.93% |
▷ Protected methods | 2 | 1.31% |
▷ Private methods | 18 | 11.76% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo_black.png | 5.05KB | 3.15KB | ▼ 37.54% |
assets/img/logo.png | 6.20KB | 3.20KB | ▼ 48.31% |
assets/img/icono-menu.png | 0.61KB | 0.72KB | 0.00% |