Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.11ms] Passed 4 tests
Server-side resources used by Quick View Products
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 45.26 ▲2.86 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.66 ▼7.55 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.83 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 96.43 ▲7.00 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 41.28 ▲3.92 |
Quick View Products /wp-admin/admin.php?page=dewp-omn-admin-settings | 3.21 | 35.53 |
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu | 3.23 | 33.52 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/quick-view-products/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Quick View Products
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 13.28 ▼1.08 | 4.92 ▲3.08 | 38.86 ▼6.42 |
Dashboard /wp-admin | 2,246 ▲43 | 4.86 ▼0.02 | 109.23 ▼7.87 | 52.49 ▲9.04 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.09 ▲0.08 | 40.95 ▲2.34 | 39.00 ▲6.01 |
Add New Post /wp-admin/post-new.php | 1,561 ▲16 | 23.39 ▼0.27 | 740.37 ▲8.30 | 55.18 ▼1.46 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.23 ▼0.05 | 94.71 ▼12.41 | 43.30 ▼2.45 |
Quick View Products /wp-admin/admin.php?page=dewp-omn-admin-settings | 842 | 2.03 | 24.54 | 29.56 |
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu | 817 | 2.02 | 25.34 | 31.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=dewp-omn-admin-settings
- > Notice in wp-content/plugins/quick-view-products/includes/wc-quickview-product-admin.php+109
Trying to access array offset on value of type bool
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/quick-view-products/wc-quickview-product.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-view-products/includes/wc-quickview-product-admin.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Requires php: The plugin version is formatted incorrectly
quick-view-products/wc-quickview-product.php 85% from 13 tests
Analyzing the main PHP file in "Quick View Products" version 1.0
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quick-view-products.php" instead of "wc-quickview-product.php")
- Description: Keep the plugin description shorter than 140 characters (currently 191 characters long)
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
Everything looks great! No dangerous files found in this plugin590 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 63 | 7 | 418 |
PHP | 4 | 44 | 35 | 171 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected