Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.47ms] Passed 4 tests
Analyzing server-side resources used by Bears WooCommerce Product Quick View
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.60 ▼2.55 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.01 ▼0.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.78 ▲1.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.80 ▼4.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.28 ▼2.35 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Bears WooCommerce Product Quick View
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.31 ▼1.44 | 1.74 ▼0.56 | 39.03 ▼10.73 |
Dashboard /wp-admin | 2,206 ▲21 | 5.88 ▲1.05 | 102.60 ▼5.12 | 41.09 ▲1.20 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.04 | 33.07 ▼7.87 | 36.54 ▲0.73 |
Add New Post /wp-admin/post-new.php | 1,535 ▲22 | 23.21 ▲5.61 | 645.31 ▲32.82 | 51.00 ▼6.91 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.17 ▼0.03 | 98.32 ▼6.16 | 46.08 ▼1.46 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
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)
Good news, no errors were detected
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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bears-woocommerce-product-quick-view/i/bwc-functions.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bears-woocommerce-product-quick-view/i/bwc-functions.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/bears-woocommerce-product-quick-view/templates/modal-template.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Add a description for screenshot #1 in bears-woocommerce-product-quick-view/assets to your readme.txt
- Donate link: Please fix this invalid URI: "#"
bears-woocommerce-product-quick-view/bears-woocommerce-product-quick-view.php 85% from 13 tests
The principal PHP file in "Bears WooCommerce Product Quick View" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "3.0")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected786 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 48 | 30 | 338 |
PHP | 6 | 71 | 91 | 229 |
CSS | 1 | 22 | 3 | 165 |
SVG | 1 | 0 | 1 | 54 |
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.20 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected