Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.39ms] Passed 4 tests
Server-side resources used by Notify.lk SMS for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 43.16 ▼8.16 |
Dashboard /wp-admin | 3.37 ▲0.06 | 51.92 ▼1.96 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 55.51 ▲3.82 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 100.12 ▼9.45 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.20 ▲2.01 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/notifylk-sms-for-woocommerce/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Notify.lk SMS for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.24 ▼1.14 | 1.66 ▼0.30 | 43.59 ▲0.25 |
Dashboard /wp-admin | 2,224 ▲24 | 5.86 ▲0.00 | 98.90 ▼9.53 | 39.08 ▼4.53 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▼0.05 | 37.74 ▲0.39 | 37.48 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.21 ▲5.80 | 631.15 ▲3.22 | 66.40 ▲14.21 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.17 ▼0.06 | 96.75 ▼3.15 | 42.71 ▼1.61 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/notifylk-sms-for-woocommerce/includes/NotifyLKTrigger.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
6 plugin tags: notifylk, sri lanka, woocommerce, woocommerce sms, notify sms...
notifylk-sms-for-woocommerce/notifylk-woocommerce.php 85% from 13 tests
The principal PHP file in "Notify.lk SMS for WooCommerce" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("notifylk-sms-for-woocommerce.php" instead of "notifylk-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin947 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 210 | 888 | 947 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 19.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 7 | 9.86% |
▷ Public methods | 67 | 94.37% |
▷ Protected methods | 1 | 1.41% |
▷ Private methods | 3 | 4.23% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin