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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.89ms] Passed 4 tests
A check of server-side resources used by Toll Free SMS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 37.07 ▼3.34 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.11 ▼2.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.36 ▼1.12 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.71 ▼16.29 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 42.39 ▲9.22 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Toll Free SMS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 13.28 ▼1.10 | 4.00 ▲2.28 | 38.60 ▼9.73 |
Dashboard /wp-admin | 2,214 ▲23 | 5.82 ▲0.97 | 100.92 ▼0.58 | 83.01 ▲40.86 |
Posts /wp-admin/edit.php | 2,100 ▲14 | 2.01 ▼0.02 | 36.49 ▼4.37 | 33.68 ▼5.31 |
Add New Post /wp-admin/post-new.php | 1,677 ▲143 | 21.99 ▼1.04 | 771.35 ▲152.23 | 65.41 ▲11.07 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.28 ▲0.09 | 96.10 ▲0.06 | 65.13 ▲21.54 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/toll-free-sms/smsform.php
- > /wp-content/plugins/toll-free-sms/login.php
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined index: pass in wp-content/plugins/toll-free-sms/tfs.config.php on line 5
- > PHP Notice
Undefined index: uname in wp-content/plugins/toll-free-sms/tfs.config.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/toll-free-sms/toll-free-sms.php:303
- > PHP Notice
Undefined index: pwd in wp-content/plugins/toll-free-sms/login.php on line 4
- > PHP Notice
Undefined index: to in wp-content/plugins/toll-free-sms/sms.php on line 3
- > PHP Notice
Undefined index: uname in wp-content/plugins/toll-free-sms/sms.php on line 11
- > PHP Notice
Undefined index: pass in wp-content/plugins/toll-free-sms/sms.php on line 12
- > PHP Notice
Undefined index: sms in wp-content/plugins/toll-free-sms/sms.php on line 4
- > PHP Notice
Undefined variable: error in wp-content/plugins/toll-free-sms/sms.php on line 24
- > PHP Notice
Undefined index: uname in wp-content/plugins/toll-free-sms/login.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Login to your way2sms account), #2 (Send SMS Form. Type the text and mobile no. and click on send button to send the sms.)
toll-free-sms/toll-free-sms.php Passed 13 tests
Analyzing the main PHP file in "Toll Free SMS" version 1.0
97 characters long description:
Send Free SMS to your Subscribers using your Way2SMS Account withour leaving wordpress dashboard.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected963 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 62 | 30 | 497 |
CSS | 2 | 34 | 150 | 422 |
JavaScript | 3 | 0 | 95 | 44 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
18 PNG files occupy 0.17MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) screenshot-2.png | 74.74KB | 0.00KB | ▼ 100.00% |
css/images/ui-bg_flat_50_5c5c5c_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
css/images/ui-icons_cccccc_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-icons_a83300_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
css/images/ui-bg_inset-soft_25_f0efef_1x100.png | 0.12KB | 0.11KB | ▼ 8.26% |