Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.25ms] Passed 4 tests
This is a short check of server-side resources used by Frenet Shipping Gateway for WooCommerce - Correios, Etiquetas e Rastreio
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.09 ▼3.84 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.54 ▼12.93 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.83 ▼2.03 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.05 ▼2.19 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.20 ▲1.24 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Frenet Shipping Gateway for WooCommerce - Correios, Etiquetas e Rastreio
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲32 | 14.70 ▲0.51 | 1.64 ▼0.33 | 39.97 ▼2.99 |
Dashboard /wp-admin | 2,212 ▲32 | 5.63 ▲0.01 | 94.04 ▲5.77 | 37.30 ▼2.86 |
Posts /wp-admin/edit.php | 2,115 ▲18 | 2.02 ▲0.06 | 42.31 ▲2.90 | 36.53 ▼2.30 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.27 ▼0.10 | 665.16 ▼8.28 | 51.54 ▼10.75 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.18 ▼0.01 | 100.19 ▲0.83 | 43.99 ▲1.74 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woo-shipping-gateway/woo-shipping-gateway.php:14
- > PHP Fatal error
Uncaught Error: Class 'WC_Frenet' not found in wp-content/plugins/woo-shipping-gateway/includes/class-wc-frenet-shipping-simulator.php:6
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/woo-shipping-gateway/includes/class-wc-frenet.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 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
8 plugin tags: shipping, tnt, correios, jadlog, jamef...
woo-shipping-gateway/woo-shipping-gateway.php 85% from 13 tests
Analyzing the main PHP file in "Frenet Shipping Gateway for WooCommerce - Correios, Etiquetas e Rastreio" version 2.1.15
The following require your attention:
- Domain Path: Prefix the domain path with a forward slash character ("/languages/")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected945 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 183 | 241 | 735 |
PO File | 1 | 38 | 2 | 95 |
JavaScript | 1 | 30 | 21 | 85 |
CSS | 1 | 5 | 0 | 28 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 26.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 8 | 22.22% |
▷ Public methods | 23 | 63.89% |
▷ Protected methods | 10 | 27.78% |
▷ Private methods | 3 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin