Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.46ms] Passed 4 tests
An overview of server-side resources used by 1-Click Login: Passwordless Authentication
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.98 ▲0.76 |
Dashboard /wp-admin | 3.40 ▲0.10 | 51.52 ▼1.66 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.57 ▼0.94 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 88.55 ▼3.98 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.52 ▲3.45 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by 1-Click Login: Passwordless Authentication
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 13.24 ▼1.12 | 1.55 ▼0.27 | 43.50 ▲0.98 |
Dashboard /wp-admin | 2,238 ▲50 | 5.85 ▼0.20 | 95.15 ▼21.53 | 66.10 ▲14.85 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.15 ▲0.16 | 34.89 ▼3.49 | 31.94 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 23.40 ▲5.94 | 733.10 ▲57.07 | 57.11 ▼5.57 |
Media Library /wp-admin/upload.php | 1,420 ▲38 | 4.24 ▲0.05 | 112.36 ▲11.25 | 60.85 ▲17.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 items
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/swoop-password-free-authentication/includes/util/Swoop.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/swoop-password-free-authentication/includes/util/Swoop.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/swoop-password-free-authentication/includes/admin/controllers/WP_Swoop_Admin_Password_Free.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/swoop-password-free-authentication/includes/WP_Swoop_WooCommerceOverrides.php:82
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/swoop-password-free-authentication/includes/views/swoop_wp_login_footer.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/swoop-password-free-authentication/includes/views/swoop_wp_login.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/swoop-password-free-authentication/includes/views/woocommerce_my_account.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/swoop-password-free-authentication/swoop.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/swoop-password-free-authentication/includes/admin/views/password-free.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/swoop-password-free-authentication/includes/views/swoop_login.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #1, #2 in swoop-password-free-authentication/assets to your readme.txt
swoop-password-free-authentication/swoop.php 85% from 13 tests
The primary PHP file in "1-Click Login: Passwordless Authentication" version 1.4.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("swoop-password-free-authentication.php" instead of "swoop.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 237 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,218 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 136 | 145 | 703 |
CSS | 5 | 94 | 9 | 467 |
SVG | 5 | 0 | 0 | 48 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 37 | 90.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.76% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 28 | |
▷ Global constants | 28 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/images/swoop-button-with-icon@2x.png | 5.38KB | 2.96KB | ▼ 44.92% |
includes/assets/images/swoop-logo-horizontal2x.png | 6.02KB | 2.83KB | ▼ 53.01% |
includes/assets/images/1-Click-Login-Swoop.png | 10.24KB | 5.56KB | ▼ 45.73% |