Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/branded-sms-pakistan/index.php+631
Undefined offset: 0
Server metrics [RAM: ▲0.58MB] [CPU: ▼2.14ms] Passed 4 tests
Analyzing server-side resources used by Branded SMS Pakistan
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.61 | 44.52 ▲6.38 |
Dashboard /wp-admin | 3.93 ▲0.58 | 49.67 ▼8.32 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 46.52 ▲0.15 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.58 | 90.61 ▼6.77 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 43.55 ▲10.39 |
Bulk Marketing /wp-admin/admin.php?page=branded-sms-pakistan-marketing | 3.75 | 33.50 |
Settings /wp-admin/admin.php?page=branded-sms-pakistan-adminpanel | 3.77 | 40.89 |
Contact Us /wp-admin/admin.php?page=branded-sms-pakistan-adminpanel-contact | 3.76 | 35.05 |
Activate /wp-admin/admin.php?page=branded-sms-pakistan-adminpanel-optin | 3.79 | 34.89 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_bsp_settings |
wp_bsp_users |
wp_bsp_cm |
wp_bsp_otp |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
recovery_mode_email_last_sent |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Branded SMS Pakistan
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 14.20 ▼0.05 | 1.74 ▲0.14 | 48.25 ▼0.83 |
Dashboard /wp-admin | 2,254 ▲74 | 5.61 ▼0.06 | 80.67 ▼10.68 | 81.46 ▲42.31 |
Posts /wp-admin/edit.php | 2,157 ▲57 | 2.01 ▼0.02 | 38.32 ▲3.62 | 33.51 ▼4.08 |
Add New Post /wp-admin/post-new.php | 1,728 ▲200 | 22.23 ▼1.02 | 699.64 ▲16.10 | 55.01 ▼11.45 |
Media Library /wp-admin/upload.php | 1,453 ▲53 | 4.24 ▲0.03 | 97.96 ▼11.08 | 77.28 ▲28.85 |
Bulk Marketing /wp-admin/admin.php?page=branded-sms-pakistan-marketing | 749 | 1.69 | 12.73 | 43.21 |
Settings /wp-admin/admin.php?page=branded-sms-pakistan-adminpanel | 901 | 1.70 | 25.19 | 39.94 |
Contact Us /wp-admin/admin.php?page=branded-sms-pakistan-adminpanel-contact | 1,173 | 2.01 | 25.79 | 54.05 |
Activate /wp-admin/admin.php?page=branded-sms-pakistan-adminpanel-optin | 901 | 1.63 | 24.01 | 33.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=branded-sms-pakistan-marketing
- > Error in wp-content/plugins/branded-sms-pakistan/index.php+137
Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/branded-sms-pakistan/index.php:137
Stack trace:
#0 wp-includes/class-wp-hook.php(310): bsp_marketingPage()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/branded-sms-pakistan/index.php:154
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=branded-sms-pakistan-marketing
- > Network (severe)
wp-content/plugins/branded-sms-pakistan/images/form-wizard-bg.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: Screenshot #4 (Bulk Marketing Feature to send messages to customer who have done purchasing with your store. Easily target to customer by product name or category.) image required
branded-sms-pakistan/index.php 85% from 13 tests
The primary PHP file in "Branded SMS Pakistan" version 3.0.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("branded-sms-pakistan.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 366 characters long)
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 plugin4,982 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 1,004 | 254 | 3,984 |
JavaScript | 8 | 137 | 59 | 501 |
CSS | 7 | 56 | 10 | 497 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 113 | |
▷ Static methods | 6 | 5.31% |
▷ Public methods | 112 | 99.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.88% |
Functions | 31 | |
▷ Named functions | 30 | 96.77% |
▷ Anonymous functions | 1 | 3.23% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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 |
img/bsp_icon.png | 3.42KB | 0.84KB | ▼ 75.36% |
img/icon-256x256.png | 51.41KB | 23.06KB | ▼ 55.15% |