78% toll-free-sms

Code Review | Toll Free SMS

WordPress plugin Toll Free SMS scored 78% from 54 tests.

About plugin

  • Plugin page: toll-free-sms
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Jul 27, 2012
  • Latest release: Sep 30, 2012
  • Number of updates: 9
  • Update frequency: every 7.7 days
  • Top authors: yawalkarm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,770 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.07 ▼3.34
Dashboard /wp-admin3.31 ▲0.0146.11 ▼2.81
Posts /wp-admin/edit.php3.36 ▲0.0147.36 ▼1.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.71 ▼16.29
Media Library /wp-admin/upload.php3.23 ▲0.0142.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.28 ▼1.104.00 ▲2.2838.60 ▼9.73
Dashboard /wp-admin2,214 ▲235.82 ▲0.97100.92 ▼0.5883.01 ▲40.86
Posts /wp-admin/edit.php2,100 ▲142.01 ▼0.0236.49 ▼4.3733.68 ▼5.31
Add New Post /wp-admin/post-new.php1,677 ▲14321.99 ▼1.04771.35 ▲152.2365.41 ▲11.07
Media Library /wp-admin/upload.php1,399 ▲84.28 ▲0.0996.10 ▲0.0665.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

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.)
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP76230497
CSS234150422
JavaScript309544

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 code0.10
Average class complexity7.00
▷ Minimum class complexity5.00
▷ Maximum class complexity9.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
(invalid) screenshot-2.png74.74KB0.00KB▼ 100.00%
css/images/ui-bg_flat_50_5c5c5c_40x100.png0.18KB0.08KB▼ 51.67%
css/images/ui-icons_cccccc_256x240.png4.27KB4.11KB▼ 3.78%
css/images/ui-icons_a83300_256x240.png5.23KB4.11KB▼ 21.49%
css/images/ui-bg_inset-soft_25_f0efef_1x100.png0.12KB0.11KB▼ 8.26%