Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.10MB] [CPU: ▲6.75ms] Passed 4 tests
This is a short check of server-side resources used by ChaChing - New Order Notifications for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.56 ▲1.10 | 49.00 ▲8.94 |
Dashboard /wp-admin | 4.40 ▲1.10 | 52.41 ▲3.73 |
Posts /wp-admin/edit.php | 4.51 ▲1.16 | 55.04 ▲4.70 |
Add New Post /wp-admin/post-new.php | 6.98 ▲1.09 | 104.28 ▲9.62 |
Media Library /wp-admin/upload.php | 4.32 ▲1.09 | 45.54 ▲10.17 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 4.33 | 42.03 |
Server storage [IO: ▲2.77MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 151 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for ChaChing - New Order Notifications for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.17 ▼1.19 | 1.88 ▲0.11 | 42.55 ▼5.23 |
Dashboard /wp-admin | 2,214 ▲29 | 4.87 ▼1.03 | 108.92 ▲3.14 | 43.30 ▼3.06 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.01 | 39.82 ▼1.96 | 36.19 ▲1.14 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 18.34 ▼4.78 | 605.37 ▼39.08 | 47.38 ▼2.21 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.22 ▲0.05 | 102.99 ▲3.74 | 42.98 ▼3.09 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 1,417 | 3.62 | 53.69 | 60.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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: woocommerce notification, woocommerce order notification, woocommerce new order, woocommerce order
bp-new-order-notifications-for-woocommerce/main.php 77% from 13 tests
"ChaChing - New Order Notifications for WooCommerce" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "4.9")
- Requires PHP: Required version must match the one declared in readme.txt ("7.4" instead of "7.2.0")
- Main file name: Name the main plugin file the same as the plugin slug ("bp-new-order-notifications-for-woocommerce.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected17,270 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 80 | 2,331 | 1,218 | 10,304 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
JavaScript | 7 | 57 | 23 | 336 |
CSS | 6 | 6 | 14 | 107 |
JSON | 2 | 0 | 0 | 21 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 20.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 5.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 229 | |
▷ Static methods | 37 | 16.16% |
▷ Public methods | 228 | 99.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.44% |
Functions | 26 | |
▷ Named functions | 23 | 88.46% |
▷ Anonymous functions | 3 | 11.54% |
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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/bp-logo-icon.png | 1.09KB | 0.87KB | ▼ 20.45% |
assets/img/bp-logo.png | 4.99KB | 2.68KB | ▼ 46.35% |
include/codestar/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |