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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.01ms] Passed 4 tests
Server-side resources used by Two Factor SMS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.52 ▼5.30 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.54 ▼3.46 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.82 ▲1.73 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.90 ▼13.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.20 ▼2.05 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 139 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Two Factor SMS: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.16 ▼1.22 | 4.91 ▲3.05 | 44.26 ▲3.44 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼0.05 | 103.71 ▼1.28 | 41.03 ▼0.10 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▼0.01 | 34.81 ▼1.15 | 31.00 ▼3.21 |
Add New Post /wp-admin/post-new.php | 1,514 ▼21 | 17.84 ▼5.31 | 667.39 ▼12.22 | 63.32 ▲5.30 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.25 ▲0.04 | 98.58 ▼2.82 | 42.70 ▼1.82 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
- 118× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_TaskRouterListResource' not found in wp-content/plugins/two-factor-sms/includes/Twilio/Services/Twilio/Rest/TaskRouter/Reservations.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/two-factor-sms/includes/Twilio/Services/Twilio/Rest/OutgoingCallerIds.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/two-factor-sms/includes/Twilio/Services/Twilio/Rest/AuthorizedConnectApps.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_TaskRouterInstanceResource' not found in wp-content/plugins/two-factor-sms/includes/Twilio/Services/Twilio/Rest/TaskRouter/WorkspaceStatistics.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_InstanceResource' not found in wp-content/plugins/two-factor-sms/includes/Twilio/Services/Twilio/Rest/Address.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/two-factor-sms/includes/Twilio/Services/Twilio/Rest/Media.php:8
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_ListResource' not found in wp-content/plugins/two-factor-sms/includes/Twilio/Services/Twilio/Rest/ConnectApps.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_TaskRouterListResource' not found in wp-content/plugins/two-factor-sms/includes/Twilio/Services/Twilio/Rest/TaskRouter/Workspaces.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_PricingInstanceResource' not found in wp-content/plugins/two-factor-sms/includes/Twilio/Services/Twilio/Rest/Pricing/VoiceCountry.php:3
- > PHP Fatal error
Uncaught Error: Class 'Services_Twilio_NextGenInstanceResource' not found in wp-content/plugins/two-factor-sms/includes/Twilio/Services/Twilio/MonitorInstanceResource.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: security, mobile, two-factor, twilio, sms...
two-factor-sms/two-factor-sms.php Passed 13 tests
The main PHP script in "Two Factor SMS" version 0.1.1 is automatically included on every request by WordPress
51 characters long description:
Add SMS support to "Two Factor" feature as a plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,655 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 556 | 1,982 | 2,555 |
PO File | 1 | 18 | 20 | 53 |
Markdown | 1 | 18 | 0 | 47 |
PHP code Passed 2 tests
This is a short overview 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.25 |
Average class complexity | 2.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 156 | |
▷ Abstract classes | 14 | 8.97% |
▷ Concrete classes | 142 | 91.03% |
▷ Final classes | 0 | 0.00% |
Methods | 256 | |
▷ Static methods | 19 | 7.42% |
▷ Public methods | 216 | 84.38% |
▷ Protected methods | 36 | 14.06% |
▷ Private methods | 4 | 1.56% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 100.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
PNG images were not found in this plugin