Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.02ms] Passed 4 tests
Analyzing server-side resources used by Notify WooSMS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 44.12 ▲5.33 |
Dashboard /wp-admin | 3.36 ▲0.06 | 53.25 ▼2.25 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 46.81 ▼3.23 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.60 ▼8.57 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.17 ▲1.96 |
Notify WooSMS /wp-admin/options-general.php?page=notify_woosms | 3.22 | 32.70 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Notify WooSMS: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.80 ▲0.70 | 1.74 ▼0.10 | 43.98 ▼0.43 |
Dashboard /wp-admin | 2,215 ▲30 | 4.85 ▼0.03 | 105.83 ▼5.49 | 44.57 ▲1.60 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▲0.04 | 37.91 ▲4.53 | 33.71 ▼3.29 |
Add New Post /wp-admin/post-new.php | 1,534 ▲128 | 23.03 ▲5.05 | 661.79 ▲44.92 | 64.72 ▲12.55 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.17 ▼0.01 | 100.22 ▼35.03 | 45.15 ▼10.76 |
Notify WooSMS /wp-admin/options-general.php?page=notify_woosms | 960 | 2.02 | 23.10 | 36.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 14 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=notify_woosms
- > Notice in wp-content/plugins/notify-woosms/admin.php+256
Trying to access array offset on value of type bool
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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/notify-woosms/notify-woosms.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/notify-woosms/woocommerce.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notify-woosms/admin.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (/assets/screenshot-1.png), #2 (/assets/screenshot-2.png)
notify-woosms/notify-woosms.php Passed 13 tests
The principal PHP file in "Notify WooSMS" v. 2.0 is loaded by WordPress automatically on each request
88 characters long description:
WooCommerce order status sms notifications plugin for Bangladeshi SMS service providers.
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
There were no executable files found in this plugin406 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 95 | 21 | 292 |
CSS | 1 | 18 | 0 | 104 |
Markdown | 1 | 8 | 0 | 10 |
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.11 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 26.85KB | 13.93KB | ▼ 48.13% |
assets/screenshot-1.png | 26.28KB | 10.48KB | ▼ 60.11% |