Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.62ms] Passed 4 tests
An overview of server-side resources used by Ravioli for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.95 ▼5.99 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.35 ▼5.53 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.45 ▲2.99 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.06 ▼0.37 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.89 ▼2.58 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Ravioli for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.23 ▲0.02 | 1.76 ▲0.03 | 37.01 ▼5.50 |
Dashboard /wp-admin | 2,195 ▲20 | 5.63 ▲0.03 | 94.34 ▼20.14 | 39.53 ▼7.59 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.95 ▼0.07 | 39.93 ▲2.47 | 36.33 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.90 ▼0.95 | 613.94 ▼91.10 | 58.32 ▲7.00 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.15 ▼0.11 | 94.98 ▼2.58 | 45.03 ▼2.03 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ravioli-for-woocommerce/public/partials/ravioli_banner_full.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ravioli-for-woocommerce/public/partials/ravioli_modal.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/ravioli-for-woocommerce/public/partials/ravioli_banner.php:9
- > 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 90% 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: ecommerce, shipping, ravioli
ravioli-for-woocommerce/ravioli.php 77% from 13 tests
The main file in "Ravioli for WooCommerce" v. 1.5.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: The description should be shorter than 140 characters (currently 152 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ravioli-for-woocommerce.php" instead of "ravioli.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,713 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 132 | 70 | 713 |
Markdown | 1 | 121 | 0 | 553 |
JavaScript | 3 | 64 | 43 | 247 |
CSS | 2 | 33 | 1 | 200 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 42 | |
▷ Static methods | 1 | 2.38% |
▷ Public methods | 34 | 80.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 19.05% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 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