Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼13.36ms] Passed 4 tests
An overview of server-side resources used by Notification WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 44.28 ▼1.36 |
Dashboard /wp-admin | 3.36 ▲0.06 | 37.35 ▼20.42 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 40.08 ▼8.22 |
Add New Post /wp-admin/post-new.php | 5.61 ▼0.28 | 73.65 ▼22.89 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.86 ▼1.90 |
Cybercraft Products /wp-admin/admin.php?page=notification-woocommerce/cc-products-page.php | 3.34 | 31.33 |
Notification WooCommerce /wp-admin/admin.php?page=notification_woocommerce | 3.34 | 33.02 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wcn_notification |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
wcn_settings |
db_upgraded |
Browser metrics Passed 4 tests
Notification WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲158 | 14.45 ▲0.09 | 1.82 ▼0.09 | 44.78 ▲2.99 |
Dashboard /wp-admin | 2,319 ▲142 | 5.08 ▼0.50 | 94.18 ▼7.63 | 40.36 ▼6.80 |
Posts /wp-admin/edit.php | 2,231 ▲131 | 2.43 ▲0.46 | 42.19 ▲5.16 | 38.58 ▲3.46 |
Add New Post /wp-admin/post-new.php | 1,630 ▲92 | 23.37 ▲5.08 | 673.16 ▲46.17 | 35.87 ▼41.03 |
Media Library /wp-admin/upload.php | 1,533 ▲133 | 4.59 ▲0.39 | 117.64 ▲20.86 | 46.11 ▲4.99 |
Cybercraft Products /wp-admin/admin.php?page=notification-woocommerce/cc-products-page.php | 1,245 | 1.95 | 31.77 | 23.75 |
Notification WooCommerce /wp-admin/admin.php?page=notification_woocommerce | 1,034 | 1.96 | 31.55 | 27.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_wcn_notification
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- wcn_settings
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=notification_woocommerce
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=notification_woocommerce
- > Notice in wp-content/plugins/notification-woocommerce/admin/admin-product.php+110
Trying to get property 'ID' of non-object
- 42 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=notification-woocommerce/cc-products-page.php
- > Notice in wp-content/plugins/notification-woocommerce/cc-products-page.php+33
Trying to get property 'slug' of non-object
- 21 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=notification-woocommerce/cc-products-page.php
- > Notice in wp-content/plugins/notification-woocommerce/cc-products-page.php+31
Trying to get property 'name' of non-object
- 21 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=notification-woocommerce/cc-products-page.php
- > Notice in wp-content/plugins/notification-woocommerce/cc-products-page.php+32
Trying to get property 'short_description' of non-object
SRP 50% 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
Almost there! Just fix the following items
- 7× 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/notification-woocommerce/cc-products-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/notification-woocommerce/inc/basic/admin/templates.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notification-woocommerce/admin/admin-product.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notification-woocommerce/admin/admin-wcn-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/notification-woocommerce/inc/basic/loader.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notification-woocommerce/inc/basic/admin/seller-admin-dashboard.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notification-woocommerce/user-public.php:6
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (15 tag instead of maximum 10)
- Screenshots: A description for screenshot #3 is missing in notification-woocommerce/assets to your readme.txt
- Donate link: Invalid URI found ("")
notification-woocommerce/woocommerce-notification.php 85% from 13 tests
The primary PHP file in "Notification WooCommerce" version 0.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("notification-woocommerce.php" instead of "woocommerce-notification.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 215 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin7,094 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,053 | 3,094 | 6,012 |
PHP | 11 | 239 | 175 | 851 |
LESS | 2 | 12 | 8 | 105 |
CSS | 2 | 0 | 10 | 102 |
Markdown | 1 | 16 | 0 | 24 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 17 | 41.46% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected