Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.41ms] Passed 4 tests
Analyzing server-side resources used by Order Notification for WooCommerce – Get Audio Alert on new Orders
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.31 ▼3.26 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.21 ▼16.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.38 ▼3.90 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.96 ▼18.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.46 ▲4.16 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 96 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Order Notification for WooCommerce – Get Audio Alert on new Orders
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.21 ▼0.55 | 1.62 ▲0.03 | 37.27 ▼7.51 |
Dashboard /wp-admin | 2,192 ▲15 | 5.50 ▼0.08 | 91.47 ▼8.08 | 38.40 ▼4.88 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.06 ▲0.10 | 39.97 ▲0.21 | 35.60 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.03 ▲0.02 | 696.78 ▲85.30 | 53.53 ▲0.77 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.19 ▼0.05 | 102.20 ▲0.15 | 46.53 ▲2.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPDK_Settings_Abstract' not found in wp-content/plugins/woc-order-alert/includes/wpdk/settings/classes/admin-options.class.php:11
- > PHP Fatal error
Uncaught Error: Class 'WPDK_Settings_Abstract' not found in wp-content/plugins/woc-order-alert/includes/wpdk/settings/classes/fields.class.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #2, #3, #4 in woc-order-alert/assets to your readme.txt
woc-order-alert/woc-order-alert.php Passed 13 tests
The main PHP file in "Order Notification for WooCommerce – Get Audio Alert on new Orders" ver. 3.5.0 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
Play sound as notification instantly on new order in your WooCommerce store.
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
No dangerous file extensions were detected20,715 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 76 | 2,693 | 1,302 | 8,105 |
JavaScript | 6 | 1,340 | 523 | 6,762 |
CSS | 6 | 1,092 | 543 | 5,833 |
Markdown | 1 | 8 | 0 | 13 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 25.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 6.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 67 | |
▷ Abstract classes | 2 | 2.99% |
▷ Concrete classes | 65 | 97.01% |
▷ Final classes | 0 | 0.00% |
Methods | 293 | |
▷ Static methods | 46 | 15.70% |
▷ Public methods | 293 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/wpdk/settings/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |