Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼3.64ms] Passed 4 tests
A check of server-side resources used by Envo's Elementor Templates & Widgets for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.40 ▼2.04 |
Dashboard /wp-admin | 3.46 ▲0.15 | 53.02 ▲2.76 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.36 ▲1.74 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 89.55 ▼15.97 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.78 ▲1.73 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 126 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
etww_do_activation_redirect |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Envo's Elementor Templates & Widgets for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.31 ▼0.04 | 1.66 ▼0.09 | 40.97 ▼0.67 |
Dashboard /wp-admin | 2,200 ▲23 | 5.57 ▼0.08 | 93.22 ▲1.30 | 41.00 ▼4.85 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.10 ▲0.09 | 41.06 ▼0.02 | 38.22 ▲0.80 |
Add New Post /wp-admin/post-new.php | 1,537 ▼0 | 23.13 ▲4.80 | 655.35 ▼11.76 | 52.53 ▼12.64 |
Media Library /wp-admin/upload.php | 1,414 ▲11 | 4.18 ▲0.02 | 96.25 ▼2.86 | 45.15 ▲3.46 |
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 7 options in the database
- etww_do_activation_redirect
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/envo-elementor-for-woocommerce/modules/contact-form/widgets/contact-form.php:13
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/envo-elementor-for-woocommerce/modules/woocommerce/widgets/woo-slider.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/envo-elementor-for-woocommerce/includes/admin/include/templates_list.php:14
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/envo-elementor-for-woocommerce/modules/woocommerce/widgets/woo-add-to-cart.php:14
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/envo-elementor-for-woocommerce/modules/woocommerce/widgets/woo-products.php:14
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/envo-elementor-for-woocommerce/modules/blog-grid/widgets/blog-grid.php:9
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/envo-elementor-for-woocommerce/modules/off-canvas/widgets/off-canvas.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/envo-elementor-for-woocommerce/index.php:3
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/envo-elementor-for-woocommerce/modules/woocommerce/widgets/woo-categories.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
envo-elementor-for-woocommerce/elementor-templates-widgets-woocommerce.php 85% from 13 tests
The principal PHP file in "Envo's Elementor Templates & Widgets for WooCommerce" v. 1.4.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- 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
- Main file name: It is recommended to name the main PHP file as the plugin slug ("envo-elementor-for-woocommerce.php" instead of "elementor-templates-widgets-woocommerce.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
Success! There were no dangerous files found in this plugin24,977 lines of code in 121 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 1,935 | 603 | 10,971 |
JavaScript | 26 | 1,708 | 1,362 | 5,804 |
CSS | 31 | 291 | 99 | 3,583 |
Sass | 13 | 406 | 58 | 2,709 |
JSON | 13 | 4 | 0 | 1,894 |
SVG | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 2 | 6.06% |
▷ Concrete classes | 31 | 93.94% |
▷ Final classes | 2 | 6.45% |
Methods | 218 | |
▷ Static methods | 12 | 5.50% |
▷ Public methods | 178 | 81.65% |
▷ Protected methods | 33 | 15.14% |
▷ Private methods | 7 | 3.21% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 13 | |
▷ Global constants | 9 | 69.23% |
▷ Class constants | 4 | 30.77% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/assets/images/menu-icon.png | 0.40KB | 0.41KB | 0.00% |