Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.33ms] Passed 4 tests
An overview of server-side resources used by Easy WooCommerce Tracking Code Free
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.99 ▲3.88 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.79 ▼3.44 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.09 ▼2.61 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.45 ▼12.26 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.92 ▲0.98 |
Contenuto email /wp-admin/admin.php?page=easy-woocommerce-tracking-code-email | 3.22 | 30.85 |
Invio email /wp-admin/admin.php?page=easy-woocommerce-tracking-code-send | 3.22 | 32.79 |
Impostazioni /wp-admin/admin.php?page=easy-woocommerce-tracking-code-settings | 3.22 | 62.67 |
Gestione corrieri /wp-admin/admin.php?page=easy-woocommerce-tracking-code-couriers | 3.22 | 34.39 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Easy WooCommerce Tracking Code Free: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲151 | 13.96 ▼0.33 | 8.61 ▲5.91 | 43.50 ▲0.68 |
Dashboard /wp-admin | 2,260 ▲54 | 5.91 ▲1.04 | 111.42 ▲6.10 | 44.25 ▲1.52 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.05 ▲0.02 | 33.96 ▼2.40 | 33.45 ▼5.99 |
Add New Post /wp-admin/post-new.php | 1,559 ▲19 | 23.07 ▲4.86 | 652.48 ▼22.96 | 56.05 ▲3.71 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.20 ▲0.07 | 97.42 ▼22.13 | 43.58 ▼6.48 |
Contenuto email /wp-admin/admin.php?page=easy-woocommerce-tracking-code-email | 824 | 2.07 | 27.34 | 31.62 |
Invio email /wp-admin/admin.php?page=easy-woocommerce-tracking-code-send | 830 | 2.07 | 24.80 | 25.23 |
Impostazioni /wp-admin/admin.php?page=easy-woocommerce-tracking-code-settings | 827 | 2.04 | 24.53 | 29.20 |
Gestione corrieri /wp-admin/admin.php?page=easy-woocommerce-tracking-code-couriers | 827 | 2.04 | 28.50 | 31.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=easy-woocommerce-tracking-code-couriers
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% from 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/easy-woocommerce-tracking-code-free/public/partials/easy-woocommerce-tracking-code-free-public-display.php
- > /wp-content/plugins/easy-woocommerce-tracking-code-free/admin/partials/easy-woocommerce-tracking-code-free-admin-display.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/easy-woocommerce-tracking-code-free/templates/lib/phpmailer/get_oauth_token.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-woocommerce-tracking-code-free/templates/email-send-settings.php:150
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-woocommerce-tracking-code-free/templates/general-settings.php:125
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-woocommerce-tracking-code-free/metaboxes/order-columns.php:6
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-woocommerce-tracking-code-free/templates/lib/phpmailer/get_oauth_token.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-woocommerce-tracking-code-free/templates/couriers-settings.php:86
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-woocommerce-tracking-code-free/metaboxes/order-meta-box.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-woocommerce-tracking-code-free/templates/email-text-settings.php:154
- > PHP Fatal error
Uncaught Error: Class 'PHPMailer' not found in wp-content/plugins/easy-woocommerce-tracking-code-free/templates/lib/phpmailer/class.phpmaileroauth.php:26
- > PHP Warning
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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: woocommerce, spedizione, spedizioni, tracking, corrieri...
easy-woocommerce-tracking-code-free/easy-woocommerce-tracking-code-free.php Passed 13 tests
The principal PHP file in "Easy WooCommerce Tracking Code Free" v. 1.0.3 is loaded by WordPress automatically on each request
131 characters long description:
Con Easy WooCommerce Tracking Code Free è possibile inserire all'interno di un ordinativo WooCommerce, il numero di tracking code.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,658 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 600 | 2,984 | 4,590 |
JavaScript | 2 | 9 | 54 | 51 |
CSS | 2 | 3 | 8 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 42.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 425.00 |
Average method complexity | 3.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 192 | |
▷ Static methods | 12 | 6.25% |
▷ Public methods | 146 | 76.04% |
▷ Protected methods | 37 | 19.27% |
▷ Private methods | 9 | 4.69% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 25 | |
▷ Global constants | 9 | 36.00% |
▷ Class constants | 16 | 64.00% |
▷ Public constants | 16 | 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
PNG images were not found in this plugin