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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▼3.02ms] Passed 4 tests
Server-side resources used by TP Product Tooltip for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 43.37 ▼3.45 |
Dashboard /wp-admin | 3.51 ▲0.21 | 51.58 ▼4.40 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 53.59 ▲5.63 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 94.11 ▼8.37 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 41.97 ▲4.16 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for TP Product Tooltip for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲197 | 13.60 ▼0.71 | 6.10 ▲4.19 | 43.76 ▼1.65 |
Dashboard /wp-admin | 2,249 ▲46 | 4.92 ▲0.04 | 106.82 ▲0.44 | 37.89 ▼11.41 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 2.10 ▲0.04 | 38.26 ▼2.85 | 32.78 ▼4.59 |
Add New Post /wp-admin/post-new.php | 1,553 ▲22 | 23.46 ▼0.23 | 640.34 ▼7.67 | 68.22 ▲20.95 |
Media Library /wp-admin/upload.php | 1,422 ▲19 | 4.32 ▲0.15 | 100.55 ▼13.88 | 41.56 ▼6.10 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- 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 fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tp-product-tooltip/admin/partials/tp-woocommerce-product-tooltip-admin-display.php
- > /wp-content/plugins/tp-product-tooltip/public/partials/tp-woocommerce-product-tooltip-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: woocommerce tooltip, woocommerce product tooltip, tooltip, product tooltip
tp-product-tooltip/tp-product-tooltip.php 85% from 13 tests
The main PHP script in "TP Product Tooltip for WooCommerce" version 1.0.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "3.0")
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 detected6,106 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 730 | 92 | 4,827 |
PHP | 13 | 267 | 663 | 1,116 |
SVG | 1 | 0 | 0 | 98 |
JavaScript | 6 | 20 | 86 | 65 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 9.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 12 | 25.00% |
▷ Public methods | 43 | 89.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.42% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
public/images/tp_play.png | 6.80KB | 3.92KB | ▼ 42.28% |
admin/images/tp_tooltip_minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
admin/images/tp.png | 1.24KB | 0.26KB | ▼ 79.08% |