Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/transmit-sms-two-factor-authentication/transmitsms.php+321
Undefined variable: pagenow
Server metrics [RAM: ▼0.83MB] [CPU: ▼34.78ms] Passed 4 tests
An overview of server-side resources used by Transmit SMS Two Factor Authentication
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.99 ▲0.98 |
Dashboard /wp-admin | 3.12 ▼0.22 | 23.33 ▼40.74 |
Posts /wp-admin/edit.php | 3.13 ▼0.23 | 24.21 ▼17.92 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.76 | 23.15 ▼75.37 |
Media Library /wp-admin/upload.php | 3.13 ▼0.10 | 26.87 ▼5.07 |
Transmit SMS /wp-admin/admin.php?page=transmit-sms | 3.13 | 24.53 |
2FA Transmit SMS /wp-admin/admin.php?page=2FA-Transmit-SMS | 3.13 | 24.31 |
Server storage [IO: ▲1.01MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 53 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_T2FAtransmit_country |
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
Checking browser requirements for Transmit SMS Two Factor Authentication
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 13.37 ▼1.42 | 1.78 ▼0.03 | 34.08 ▼8.94 |
Dashboard /wp-admin | 2,242 ▲54 | 4.95 ▼0.90 | 115.38 ▲10.15 | 74.21 ▲30.04 |
Posts /wp-admin/edit.php | 2,153 ▲61 | 2.23 ▲0.26 | 35.60 ▼6.54 | 37.65 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,707 ▲193 | 22.70 ▲4.87 | 705.63 ▲82.60 | 79.91 ▲28.24 |
Media Library /wp-admin/upload.php | 1,431 ▲40 | 4.43 ▲0.18 | 100.63 ▼1.43 | 75.69 ▲31.78 |
Transmit SMS /wp-admin/admin.php?page=transmit-sms | 28 | 0.44 | 0.10 | 3.82 |
2FA Transmit SMS /wp-admin/admin.php?page=2FA-Transmit-SMS | 1,025 | 1.81 | 28.56 | 37.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/transmit-sms-two-factor-authentication/admin/admin-functions.php+19
Use of undefined constant TSC_PLUGIN_URL - assumed 'TSC_PLUGIN_URL' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=2FA-Transmit-SMS
- > Warning in wp-content/plugins/transmit-sms-two-factor-authentication/admin/admin-functions.php+19
Use of undefined constant TSC_PLUGIN_URL - assumed 'TSC_PLUGIN_URL' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=2FA-Transmit-SMS
- > Notice in wp-content/plugins/transmit-sms-two-factor-authentication/admin/admin-functions.php+52
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=2FA-Transmit-SMS
- > Notice in wp-content/plugins/transmit-sms-two-factor-authentication/admin/admin-functions.php+178
Undefined variable: T2FAOptionThankyouPage
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
Please take a closer look at the following
- 8× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(T2FA_PLUGIN_DIR/classTransmitAuth.php): failed to open stream: No such file or directory in wp-content/plugins/transmit-sms-two-factor-authentication/settings.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/transmit-sms-two-factor-authentication/transmitsms.php:13
- > PHP Warning
Use of undefined constant T2FA_PLUGIN_DIR - assumed 'T2FA_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/transmit-sms-two-factor-authentication/settings.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/transmit-sms-two-factor-authentication/admin/admin-functions.php:2
- > PHP Warning
Use of undefined constant T2FA_PLUGIN_DIR - assumed 'T2FA_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/transmit-sms-two-factor-authentication/admin/admin.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'T2FA_PLUGIN_DIR/classTransmitAuth.php' (include_path='.:/usr/share/php') in wp-content/plugins/transmit-sms-two-factor-authentication/settings.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'T2FA_PLUGIN_DIR/admin/admin-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/transmit-sms-two-factor-authentication/admin/admin.php on line 3
- > PHP Warning
require_once(T2FA_PLUGIN_DIR/admin/admin-functions.php): failed to open stream: No such file or directory in wp-content/plugins/transmit-sms-two-factor-authentication/admin/admin.php on line 3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser 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)
- > GET request to /wp-admin/admin.php?page=2FA-Transmit-SMS
- > Network (severe)
http://tsc_plugin_url/assets/images/sms-wp-favicon.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (http://burst360.com.au/wp-content/uploads/T2faScreenshot/backend.jpg), #2 (http://burst360.com.au/wp-content/uploads/T2faScreenshot/frontend.jpg)
- Donate link: Please fix this invalid url: ""
transmit-sms-two-factor-authentication/transmitsms.php 92% from 13 tests
The main PHP file in "Transmit SMS Two Factor Authentication" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("transmit-sms-two-factor-authentication.php" instead of "transmitsms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin12,314 lines of code in 41 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 |
LESS | 13 | 23 | 33 | 1,247 |
PHP | 7 | 117 | 290 | 1,185 |
SVG | 1 | 0 | 0 | 520 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/info.png | 4.34KB | 1.72KB | ▼ 60.43% |
assets/images/success.png | 1.71KB | 1.62KB | ▼ 5.19% |
assets/images/sms-wp-favicon.png | 3.16KB | 0.79KB | ▼ 75.05% |
assets/images/trash.png | 0.49KB | 0.58KB | 0.00% |
assets/images/error.png | 1.44KB | 1.43KB | 0.27% |