Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▼3.35ms] Passed 4 tests
Analyzing server-side resources used by SAASPASS Two Factor Authentication - 2FA
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 40.48 ▲1.94 |
Dashboard /wp-admin | 3.53 ▲0.22 | 46.47 ▼3.25 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 47.74 ▲3.20 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 85.39 ▼12.06 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 36.43 ▼0.02 |
Server storage [IO: ▲2.66MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 486 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
saaspass_saml_options |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
SAASPASS Two Factor Authentication - 2FA: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.65 ▼0.53 | 1.74 ▲0.11 | 41.32 ▼5.07 |
Dashboard /wp-admin | 2,204 ▲52 | 5.83 ▲0.13 | 97.70 ▼11.16 | 37.59 ▼2.91 |
Posts /wp-admin/edit.php | 2,093 ▲22 | 2.04 ▼0.01 | 36.27 ▼4.07 | 30.08 ▼8.85 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 18.60 ▲0.19 | 637.86 ▼31.20 | 50.07 ▼24.39 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.17 ▼0.04 | 97.34 ▼11.05 | 41.99 ▼3.02 |
SAASPASS Two Factor Authentication - 2FA /wp-admin/sso_general.php | 26 | 0.44 | 0.06 | 15.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- saaspass_saml_options
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/saaspass-two-factor-authentication-2fa/saml/bin/pwgen.php
- > /wp-content/plugins/saaspass-two-factor-authentication-2fa/saml/bin/initMDSPdo.php
- > /wp-content/plugins/saaspass-two-factor-authentication-2fa/saml/templates/includes/header-embed.php
- > /wp-content/plugins/saaspass-two-factor-authentication-2fa/saml/bin/translation.php
- > /wp-content/plugins/saaspass-two-factor-authentication-2fa/saml/bin/memcacheSync.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/saaspass-two-factor-authentication-2fa/saml/templates/login.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/saaspass-two-factor-authentication-2fa/saml/templates/login-ldapmulti.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/saaspass-two-factor-authentication-2fa/saml/templates/post.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/sso_general.php
- > Network (severe)
wp-admin/sso_general.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 38 tag instead of maximum 10
saaspass-two-factor-authentication-2fa/saaspass_samlauth.php 92% from 13 tests
The main PHP script in "SAASPASS Two Factor Authentication - 2FA" version 1.0.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("saaspass-two-factor-authentication-2fa.php" instead of "saaspass_samlauth.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected41,103 lines of code in 453 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 361 | 7,246 | 15,155 | 26,474 |
JSON | 23 | 4 | 0 | 9,294 |
XSD | 35 | 375 | 0 | 4,303 |
Markdown | 8 | 136 | 0 | 415 |
XML | 19 | 14 | 26 | 306 |
Ant | 1 | 21 | 3 | 125 |
Perl | 1 | 15 | 4 | 83 |
Bourne Shell | 1 | 16 | 2 | 58 |
YAML | 4 | 11 | 0 | 45 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 12.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 18 | |
Traits | 2 | |
Classes | 248 | |
▷ Abstract classes | 19 | 7.66% |
▷ Concrete classes | 229 | 92.34% |
▷ Final classes | 2 | 0.87% |
Methods | 1,452 | |
▷ Static methods | 375 | 25.83% |
▷ Public methods | 1,224 | 84.30% |
▷ Protected methods | 39 | 2.69% |
▷ Private methods | 189 | 13.02% |
Functions | 25 | |
▷ Named functions | 17 | 68.00% |
▷ Anonymous functions | 8 | 32.00% |
Constants | 163 | |
▷ Global constants | 14 | 8.59% |
▷ Class constants | 149 | 91.41% |
▷ Public constants | 149 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/classes/img/button.png | 1.69KB | 1.65KB | ▼ 2.71% |