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.28MB] [CPU: ▼4.03ms] Passed 4 tests
An overview of server-side resources used by TP Price Drop Notifier for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 32.13 ▼9.73 |
Dashboard /wp-admin | 3.66 ▲0.31 | 83.53 ▲20.18 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 46.25 ▼6.45 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 90.87 ▼2.41 |
Media Library /wp-admin/upload.php | 3.51 ▲0.27 | 37.65 ▲2.48 |
Settings /wp-admin/admin.php?page=tppdn_plugin_settings_page | 3.49 | 33.80 |
Statistics /wp-admin/admin.php?page=tppdn-statistics-page | 3.47 | 38.83 |
Server storage [IO: ▲0.63MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 61 new files
Database: 1 new table, 60 new options
New tables |
---|
wp_tppdn_products |
New WordPress options |
---|
tppdn_label_my_account_table_in_stock_yes |
tppdn_loading_type |
tppdn_label_my_account_table_date |
tppdn_submit_background |
tppdn_label_btn_title_shop_stock |
tppdn_email_body |
tppdn_email_body_back_to_stock |
tppdn_label_your_email |
tppdn_label_name_icon |
tppdn_email_subject |
... |
Browser metrics Passed 4 tests
TP Price Drop Notifier for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,488 ▼258 | 14.30 ▼0.06 | 0.53 ▼1.16 | 18.37 ▼28.41 |
Dashboard /wp-admin | 2,214 ▲37 | 5.74 ▲0.06 | 96.53 ▲5.18 | 78.24 ▲36.68 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.20 ▲0.20 | 30.94 ▼9.23 | 29.84 ▼4.74 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 23.23 ▲0.13 | 695.58 ▲66.34 | 64.57 ▲9.33 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.30 ▲0.11 | 98.33 ▲2.80 | 60.62 ▲17.71 |
Settings /wp-admin/admin.php?page=tppdn_plugin_settings_page | 2,697 | 2.47 | 46.27 | 68.81 |
Statistics /wp-admin/admin.php?page=tppdn-statistics-page | 815 | 1.74 | 25.01 | 26.32 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 26 options
- widget_theysaidso_widget
- tppdn_already_registered_message
- tppdn_label_my_account_table_price
- tppdn_label_my_account_title
- tppdn_label_my_account_table_in_stock
- tppdn_label_my_account_table_image
- tppdn_label_my_account_empty
- tppdn_label_my_account_table_status_yes
- theysaidso_admin_options
- tppdn_label_my_account_table_new_price
- ...
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/tp-price-drop-notifier-for-woocommerce/public/partials/tp-price-drop-notifier-for-woocommerce-public-display.php
- 1× 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/tp-price-drop-notifier-for-woocommerce/admin/partials/tp-price-drop-notifier-for-woocommerce-admin-display.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: notifier, woocommerce product price drop, back to stock, price drop, woocommerce price track...
tp-price-drop-notifier-for-woocommerce/tp-price-drop-notifier-for-woocommerce.php 85% from 13 tests
This is the main PHP file of "TP Price Drop Notifier for WooCommerce" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: Required version must 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin4,307 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 181 | 141 | 2,082 |
PHP | 12 | 435 | 572 | 1,390 |
HTML | 1 | 11 | 0 | 340 |
JavaScript | 4 | 25 | 40 | 242 |
JSON | 1 | 0 | 0 | 210 |
SVG | 1 | 31 | 0 | 43 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 8.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 39 | |
▷ Static methods | 3 | 7.69% |
▷ Public methods | 34 | 87.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.82% |
Functions | 14 | |
▷ Named functions | 14 | 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
9 PNG files occupy 0.13MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
admin/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
admin/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
admin/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
admin/partials/images/tp.png | 1.24KB | 0.26KB | ▼ 79.08% |