Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.20ms] Passed 4 tests
Server-side resources used by Cool Correo Argentino - WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.21 ▼3.80 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.48 ▼18.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.19 ▲1.33 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.56 ▼10.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.18 ▲0.20 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Cool Correo Argentino - WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.27 ▼0.00 | 1.69 ▼0.07 | 43.79 ▲0.56 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▲0.04 | 90.45 ▼9.08 | 38.98 ▼5.39 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.08 | 38.65 ▼0.13 | 34.93 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.72 ▼4.77 | 624.34 ▼54.37 | 64.95 ▲11.10 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.15 ▼0.01 | 96.37 ▼1.40 | 41.29 ▼0.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 38× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: args in wp-content/plugins/cool-correo-argentino-woo/templates/export-results.php on line 13
- > PHP Notice
Undefined variable: args in wp-content/plugins/cool-correo-argentino-woo/templates/checkout-branch-selector.php on line 14
- > PHP Notice
Undefined variable: args in wp-content/plugins/cool-correo-argentino-woo/templates/export-results.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'MANCA\\CoolCA\\Helper\\Helper' not found in wp-content/plugins/cool-correo-argentino-woo/templates/export-header.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cool-correo-argentino-woo/templates/checkout-branch-selector.php:17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cool-correo-argentino-woo/templates/checkout-branch-selector.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cool-correo-argentino-woo/templates/export-results.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cool-correo-argentino-woo/templates/export-form.php on line 10
- > PHP Notice
Undefined variable: args in wp-content/plugins/cool-correo-argentino-woo/templates/export-form.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cool-correo-argentino-woo/templates/product-shipping-cost.php:18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
3 plugin tags: shipments, woocommerce, correoargentino
cool-correo-argentino-woo/cool-ca.php 85% from 13 tests
The principal PHP file in "Cool Correo Argentino - WooCommerce" v. 1.3.3 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cool-correo-argentino-woo.php" instead of "cool-ca.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
No dangerous file extensions were detected3,562 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 429 | 1,124 | 3,122 |
CSS | 3 | 30 | 13 | 307 |
JavaScript | 3 | 25 | 24 | 133 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 1 | |
Traits | 11 | |
Classes | 18 | |
▷ Abstract classes | 1 | 5.56% |
▷ Concrete classes | 17 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 83 | 76.85% |
▷ Public methods | 97 | 89.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 10.19% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 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
No PNG files were detected