Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.97ms] Passed 4 tests
This is a short check of server-side resources used by SMS Order Notification for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.11 ▲1.24 |
Dashboard /wp-admin | 3.42 ▲0.11 | 43.90 ▼0.84 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.86 ▼6.03 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 88.19 ▼6.25 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.92 ▲5.66 |
WC SMS NOTIFICATIONS /wp-admin/admin.php?page=sms-notifications | 3.32 | 259.29 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for SMS Order Notification for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.18 | 1.66 ▲0.08 | 39.92 ▼3.03 |
Dashboard /wp-admin | 2,202 ▲22 | 5.68 ▲0.04 | 95.21 ▲8.95 | 41.85 ▼2.85 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.03 | 43.89 ▼0.85 | 35.30 ▼3.53 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.43 ▲0.39 | 599.96 ▼70.32 | 56.15 ▲1.32 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.38 ▲0.18 | 104.05 ▼2.06 | 43.97 ▼0.77 |
WC SMS NOTIFICATIONS /wp-admin/admin.php?page=sms-notifications | 860 | 2.01 | 21.68 | 29.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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: sms, woocommerce, woocommerce order status, notification
wc-sms-order-notification/wc-sms-notification.php 85% from 13 tests
Analyzing the main PHP file in "SMS Order Notification for WooCommerce" version 0.1.3
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-sms-order-notification.php" instead of "wc-sms-notification.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected784 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 216 | 179 | 702 |
PO File | 1 | 14 | 15 | 44 |
JSON | 2 | 0 | 0 | 18 |
CSS | 1 | 1 | 0 | 12 |
JavaScript | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 21 | 42.86% |
▷ Public methods | 46 | 93.88% |
▷ Protected methods | 1 | 2.04% |
▷ Private methods | 2 | 4.08% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin