Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'woonotify_activate' not found or invalid function name
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.64ms] Passed 4 tests
Server-side resources used by WPNotify - Notifications for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 41.79 ▲4.40 |
Dashboard /wp-admin | 3.33 ▼0.02 | 48.00 ▼10.60 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.31 ▼2.59 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.48 ▼13.75 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.09 ▲5.91 |
Server storage [IO: ▲2.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WPNotify - Notifications for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲210 | 13.83 ▼0.54 | 10.09 ▲8.37 | 52.93 ▲11.46 |
Dashboard /wp-admin | 2,243 ▲69 | 5.62 ▼0.03 | 94.71 ▲7.47 | 45.89 ▲1.49 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.00 ▼0.02 | 36.42 ▼3.38 | 37.44 ▼1.56 |
Add New Post /wp-admin/post-new.php | 1,639 ▲103 | 22.58 ▲4.38 | 665.59 ▲45.61 | 39.97 ▼21.56 |
Media Library /wp-admin/upload.php | 1,448 ▲45 | 4.21 ▲0.00 | 112.83 ▲11.80 | 52.73 ▲5.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpnotify-notifications-for-woocommerce/admin/pages/settings.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WOONOTIFY_DB' not found in wp-content/plugins/wpnotify-notifications-for-woocommerce/include/classes/woonotify_notify.php:13
- > PHP Warning
include_once(): Failed opening 'WOONOTIFY_DIR/include/classes/woonotify_db.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wpnotify-notifications-for-woocommerce/include/classes/woonotify_notify.php on line 3
- > PHP Warning
Use of undefined constant WOONOTIFY_DIR - assumed 'WOONOTIFY_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpnotify-notifications-for-woocommerce/include/classes/woonotify_notify.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpnotify-notifications-for-woocommerce/woonotify.php:30
- > PHP Warning
include_once(WOONOTIFY_DIR/include/classes/woonotify_format.php): failed to open stream: No such file or directory in wp-content/plugins/wpnotify-notifications-for-woocommerce/include/classes/woonotify_notify.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wpnotify-notifications-for-woocommerce/admin/woonotify-admin.php:4
- > PHP Warning
include_once(): Failed opening 'WOONOTIFY_DIR/include/classes/woonotify_format.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wpnotify-notifications-for-woocommerce/include/classes/woonotify_notify.php on line 4
- > PHP Warning
include_once(WOONOTIFY_DIR/include/classes/woonotify_db.php): failed to open stream: No such file or directory in wp-content/plugins/wpnotify-notifications-for-woocommerce/include/classes/woonotify_notify.php on line 3
- > PHP Warning
Use of undefined constant WOONOTIFY_DIR - assumed 'WOONOTIFY_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpnotify-notifications-for-woocommerce/include/classes/woonotify_notify.php on line 3
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: "- https://WooNotify.xyz"
wpnotify-notifications-for-woocommerce/woonotify.php 92% from 13 tests
Analyzing the main PHP file in "WPNotify - Notifications for WooCommerce" version 1.0.0
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wpnotify-notifications-for-woocommerce.php" instead of "woonotify.php")
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
Good job! No executable or dangerous file extensions detected3,452 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 15 | 326 | 1,451 |
CSS | 3 | 6 | 4 | 923 |
PHP | 8 | 228 | 165 | 832 |
JSON | 1 | 0 | 0 | 245 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.26MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/ssl.png | 19.69KB | 3.38KB | ▼ 82.83% |
admin/assets/img/flags2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
admin/assets/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |
admin/assets/img/icon.png | 4.52KB | 0.41KB | ▼ 90.88% |