Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼0.28ms] Passed 4 tests
An overview of server-side resources used by TP Product Quick View for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 40.61 ▼2.15 |
Dashboard /wp-admin | 3.48 ▲0.17 | 47.12 ▲2.06 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 51.96 ▲0.09 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 93.36 ▼0.53 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.79 ▲1.48 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 44 new options
New WordPress options |
---|
tppqw_title_background |
tppqw_infinite_loop |
tppqw_sale_font_size |
can_compress_scripts |
tppqw_sale_background |
tppqw_more_details_label |
tppqw_title_color |
tppqw_product_fields_to_show |
widget_recent-posts |
tppqw_share_buttons |
... |
Browser metrics Passed 4 tests
A check of browser resources used by TP Product Quick View for Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲156 | 13.54 ▼0.82 | 9.17 ▲7.47 | 37.24 ▼8.59 |
Dashboard /wp-admin | 2,204 ▲30 | 5.67 ▲0.00 | 83.74 ▼12.05 | 77.36 ▲37.00 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.19 ▲0.24 | 38.97 ▲5.38 | 37.52 ▲1.46 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 18.50 ▼4.57 | 628.54 ▼84.13 | 55.72 ▼2.28 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.38 ▲0.16 | 103.81 ▲0.47 | 73.44 ▲28.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- 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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-product-quick-view-for-woocommerce/admin/partials/tp-product-quick-view-for-woocommerce-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/tp-product-quick-view-for-woocommerce/public/partials/tp-product-quick-view-for-woocommerce-public-display.php:2
- > 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 on the user side
Optimizations
Plugin configuration 96% 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
4 plugin tags: quick view, product quick view, woocommerce product quick view, product quick view for woocommerce
tp-product-quick-view-for-woocommerce/tp-product-quick-view-for-woocommerce.php 92% from 13 tests
The main PHP script in "TP Product Quick View for Woocommerce" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("4.5" instead of "3.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,193 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 323 | 556 | 1,312 |
CSS | 4 | 66 | 34 | 854 |
JavaScript | 4 | 13 | 14 | 27 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/tp.png | 1.24KB | 0.26KB | ▼ 79.08% |
admin/partials/images/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
admin/partials/images/tp.png | 1.24KB | 0.26KB | ▼ 79.08% |
admin/images/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |