Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WWN::wwn_install() should not be called statically
Server metrics [RAM: ▲0.10MB] [CPU: ▲2.31ms] Passed 4 tests
Analyzing server-side resources used by Woocommerce Watchlist Notifications
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 48.31 ▲6.58 |
Dashboard /wp-admin | 3.41 ▲0.11 | 53.57 ▲4.72 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 55.38 ▲6.66 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 90.26 ▼8.73 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 42.79 ▲9.75 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_woocommerce_watchlist_notification |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Woocommerce Watchlist Notifications
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲210 | 13.89 ▼0.86 | 10.97 ▲9.02 | 41.31 ▼0.50 |
Dashboard /wp-admin | 2,226 ▲38 | 5.88 ▼0.05 | 105.40 ▲2.00 | 40.92 ▼1.75 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.05 ▲0.01 | 38.64 ▼1.55 | 34.00 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,531 ▼3 | 17.67 ▼5.49 | 667.87 ▲4.53 | 50.82 ▼23.14 |
Media Library /wp-admin/upload.php | 1,408 ▲26 | 4.42 ▲0.21 | 98.25 ▲1.25 | 46.58 ▲5.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_woocommerce_watchlist_notification
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woo-watchlist-notifications/assets/css/dynamic-style.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/woo-watchlist-notifications/woocommerce-watchlist-notification.php on line 39
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: woocommerce, new product watchlist, watchlist, email notifications, new arrival notification
woo-watchlist-notifications/woocommerce-watchlist-notification.php 85% from 13 tests
This is the main PHP file of "Woocommerce Watchlist Notifications" version 1.0.0, 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:
- Description: Please don't use more than 140 characters for the plugin description (currently 156 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("woo-watchlist-notifications.php" instead of "woocommerce-watchlist-notification.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,163 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 104 | 154 | 920 |
JavaScript | 3 | 26 | 8 | 198 |
CSS | 2 | 0 | 2 | 45 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 1 | 2.33% |
▷ Public methods | 42 | 97.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/twitter.png | 0.69KB | 0.73KB | 0.00% |
assets/images/email.png | 0.61KB | 0.64KB | 0.00% |
assets/images/facebook.png | 0.59KB | 0.62KB | 0.00% |