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: ▲1.56MB] [CPU: ▲8.32ms] Passed 4 tests
A check of server-side resources used by Grid/List View for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.02 ▲1.56 | 48.24 ▲7.36 |
Dashboard /wp-admin | 4.91 ▲1.60 | 57.65 ▲9.45 |
Posts /wp-admin/edit.php | 4.96 ▲1.60 | 61.53 ▲17.24 |
Add New Post /wp-admin/post-new.php | 7.43 ▲1.54 | 95.43 ▲3.82 |
Media Library /wp-admin/upload.php | 4.77 ▲1.54 | 51.15 ▲12.63 |
Server storage [IO: ▲2.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 111 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
berocket_admin_notices_rate_stars |
br-list_grid-options |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Grid/List View for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲65 | 14.42 ▼0.22 | 1.63 ▼0.35 | 40.32 ▼4.91 |
Dashboard /wp-admin | 2,230 ▲39 | 5.88 ▲1.01 | 107.38 ▼8.08 | 68.92 ▲23.46 |
Posts /wp-admin/edit.php | 2,124 ▲32 | 2.05 ▲0.00 | 41.88 ▲2.18 | 37.66 ▲3.53 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 20.96 ▼2.20 | 745.40 ▲63.02 | 57.74 ▲7.71 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.24 ▲0.09 | 97.90 ▼17.97 | 74.97 ▲25.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- berocket_key_activated_plugins
- widget_theysaidso_widget
- berocket_admin_notices_rate_stars
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 27× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gridlist-view-for-woocommerce/berocket/includes/error_notices.php:5
- > PHP Fatal error
Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/gridlist-view-for-woocommerce/divi/includes/GridListExtension.php:3
- > PHP Notice
Undefined variable: framework_version in wp-content/plugins/gridlist-view-for-woocommerce/berocket/framework_version.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/gridlist-view-for-woocommerce/divi/includes/modules/brgridlist/brgridlist.php:3
- > PHP Notice
Undefined variable: title in wp-content/plugins/gridlist-view-for-woocommerce/berocket/templates/widget.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gridlist-view-for-woocommerce/berocket/libraries/tutorial.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gridlist-view-for-woocommerce/templates/settings/buttons_styles.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gridlist-view-for-woocommerce/berocket/libraries/tippy.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gridlist-view-for-woocommerce/berocket/includes/updater.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gridlist-view-for-woocommerce/main.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (30 tag instead of maximum 10)
gridlist-view-for-woocommerce/woocommerce-list-grid-view.php 85% from 13 tests
Analyzing the main PHP file in "Grid/List View for WooCommerce" version 1.1.3.9
The following require your attention:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gridlist-view-for-woocommerce.php" instead of "woocommerce-list-grid-view.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin23,591 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 479 | 1,514 | 10,440 |
CSS | 16 | 2,514 | 76 | 9,915 |
JavaScript | 14 | 123 | 245 | 2,267 |
PO File | 3 | 390 | 617 | 854 |
JSX | 1 | 6 | 1 | 78 |
XML | 2 | 0 | 0 | 37 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 47.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 374 | |
▷ Static methods | 136 | 36.36% |
▷ Public methods | 374 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 45 | |
▷ Named functions | 45 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
divi/styles/ico.png | 1.90KB | 1.41KB | ▼ 25.89% |
berocket/includes/ico.png | 1.90KB | 1.41KB | ▼ 25.89% |
berocket/assets/css/mail.png | 2.59KB | 1.92KB | ▼ 26.02% |
berocket/assets/images/submenu-icon.png | 0.62KB | 0.50KB | ▼ 20.13% |
berocket/libraries/templates/default.png | 3.87KB | 2.63KB | ▼ 31.94% |