Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.21ms] Passed 4 tests
An overview of server-side resources used by Notifications on Discord for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.26 ▼7.16 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.61 ▼1.39 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.24 ▲1.85 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 80.14 ▼16.39 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.80 ▲0.12 |
Discord Notifications /wp-admin/options-general.php?page=wc-discord-notifications | 3.24 | 32.22 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Notifications on Discord for Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.58 ▼0.71 | 1.98 ▼0.00 | 41.46 ▼2.29 |
Dashboard /wp-admin | 2,207 ▲25 | 5.79 ▼0.08 | 97.35 ▼4.19 | 39.44 ▼6.94 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.04 | 38.78 ▼3.55 | 37.30 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 22.99 ▲4.75 | 659.47 ▲43.50 | 58.22 ▲7.70 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.19 ▼0.00 | 93.16 ▼9.20 | 42.51 ▼0.02 |
Discord Notifications /wp-admin/options-general.php?page=wc-discord-notifications | 901 | 2.06 | 23.50 | 25.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-discord-notifications/wc-discord-notifications.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wc-discord-notifications/includes/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-discord-notifications/includes/woocommerce.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% 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: discord, ecommerce, woocommerce, notifications
wc-discord-notifications/wc-discord-notifications.php 85% from 13 tests
The main PHP script in "Notifications on Discord for Woocommerce" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("5.4" instead of "4.0")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Everything looks great! No dangerous files found in this plugin232 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 59 | 29 | 232 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin