Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.23ms] Passed 4 tests
Analyzing server-side resources used by Transmit SMS Share
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.25 ▲2.62 |
Dashboard /wp-admin | 3.40 ▲0.09 | 51.05 ▼4.99 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 50.84 ▼2.15 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.57 ▼9.58 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.59 ▼4.18 |
Transmit SMS Share /wp-admin/admin.php?page=transmitSMSSC | 3.39 | 32.83 |
Transmit SMS /wp-admin/admin.php?page=transmit-sms | 3.13 | 26.08 |
Server storage [IO: ▲1.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Transmit SMS Share
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲97 | 13.55 ▼1.19 | 1.95 ▲0.26 | 30.70 ▼10.18 |
Dashboard /wp-admin | 2,249 ▲52 | 5.08 ▼0.81 | 107.08 ▼0.58 | 86.18 ▲38.25 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.24 ▲0.27 | 34.73 ▼6.32 | 38.84 ▲3.35 |
Add New Post /wp-admin/post-new.php | 1,713 ▲173 | 22.76 ▼0.38 | 723.33 ▲27.97 | 32.83 ▼20.95 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.41 ▲0.18 | 103.37 ▼5.45 | 72.45 ▲25.78 |
Transmit SMS Share /wp-admin/admin.php?page=transmitSMSSC | 1,213 | 1.82 | 26.16 | 36.00 |
Transmit SMS /wp-admin/admin.php?page=transmit-sms | 28 | 0.44 | 0.09 | 3.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant TSC_PLUGIN_DIR - assumed 'TSC_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/transmit-sms-share/admin/admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/transmit-sms-share/transmitsms.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/transmit-sms-share/admin/admin-functions.php:2
- > PHP Warning
Use of undefined constant TSC_PLUGIN_DIR - assumed 'TSC_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/transmit-sms-share/settings.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'TSC_PLUGIN_DIR/classTransmitSareCard.php' (include_path='.:/usr/share/php') in wp-content/plugins/transmit-sms-share/settings.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'TSC_PLUGIN_DIR/admin/admin-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/transmit-sms-share/admin/admin.php on line 3
- > PHP Warning
require_once(TSC_PLUGIN_DIR/admin/admin-functions.php): failed to open stream: No such file or directory in wp-content/plugins/transmit-sms-share/admin/admin.php on line 3
- > PHP Warning
require_once(TSC_PLUGIN_DIR/classTransmitSareCard.php): failed to open stream: No such file or directory in wp-content/plugins/transmit-sms-share/settings.php on line 3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=transmit-sms
- > Network (severe)
wp-admin/admin.php?page=transmit-sms - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
transmit-sms-share/transmitsms.php 92% from 13 tests
"Transmit SMS Share" version 1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("transmit-sms-share.php" instead of "transmitsms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin12,389 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 7 | 1,263 | 6,794 |
JavaScript | 3 | 508 | 188 | 1,312 |
Sass | 13 | 23 | 24 | 1,256 |
PHP | 8 | 146 | 312 | 1,252 |
LESS | 13 | 23 | 33 | 1,247 |
SVG | 1 | 0 | 0 | 520 |
Markdown | 1 | 6 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 86.67% |
▷ Protected methods | 6 | 13.33% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 22 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/simple-php-captcha-master/backgrounds/white-wave.png | 1.25KB | 0.42KB | ▼ 66.59% |
assets/simple-php-captcha-master/backgrounds/polyester-lite.png | 1.03KB | 0.16KB | ▼ 84.86% |
assets/images/trash.png | 0.49KB | 0.58KB | 0.00% |
assets/simple-php-captcha-master/backgrounds/kinda-jean.png | 3.32KB | 2.51KB | ▼ 24.22% |
assets/images/error.png | 1.44KB | 1.43KB | 0.27% |