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
Install script ran successfully
Server metrics [RAM: ▼0.18MB] [CPU: ▼16.98ms] Passed 4 tests
An overview of server-side resources used by Paulo Cezario - RTE Rodonaves shipping for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 22.61 ▼16.13 |
Dashboard /wp-admin | 3.20 ▼0.10 | 30.01 ▼16.51 |
Posts /wp-admin/edit.php | 3.27 ▼0.09 | 34.96 ▼13.51 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.44 | 65.47 ▼21.77 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 29.30 ▼4.77 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Paulo Cezario - RTE Rodonaves shipping for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,467 ▼279 | 13.52 ▼0.86 | 0.47 ▼1.38 | 15.54 ▼28.69 |
Dashboard /wp-admin | 2,208 ▲20 | 5.85 ▲0.93 | 111.77 ▲6.97 | 43.01 ▼1.78 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.01 ▼0.01 | 41.04 ▲3.85 | 34.36 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 23.57 ▲0.37 | 653.46 ▼27.14 | 69.14 ▲8.88 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.23 ▼0.02 | 99.20 ▼5.28 | 44.05 ▼1.79 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
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)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-rte-rodonaves-shipping/views/wc-rte-shipping-product-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-rte-rodonaves-shipping/views/wc-rte-shipping-extra-meta-admin.php:38
- > PHP Notice
Undefined variable: product in wp-content/plugins/wc-rte-rodonaves-shipping/views/wc-rte-shipping-extra-meta-admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-rte-rodonaves-shipping/views/wc-rte-shipping-user-order-infos.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-rte-rodonaves-shipping/views/wc-rte-shipping-cart-page.php:2
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: rte rodonaves, shipping, woocommerce, delivery
wc-rte-rodonaves-shipping/wc-rte-rodonaves-shipping.php Passed 13 tests
The main PHP file in "Paulo Cezario - RTE Rodonaves shipping for WooCommerce" ver. 0.2.0 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
Plugin add RTE Rodonaves Shippging to WooCommerce.
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
Success! There were no dangerous files found in this plugin1,175 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 138 | 74 | 700 |
JavaScript | 2 | 29 | 1 | 211 |
PO File | 1 | 60 | 63 | 152 |
Markdown | 1 | 39 | 0 | 57 |
CSS | 3 | 0 | 0 | 55 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 13.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 4 | 20.00% |
▷ Public methods | 12 | 60.00% |
▷ Protected methods | 7 | 35.00% |
▷ Private methods | 1 | 5.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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