Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.25MB] [CPU: ▼326.10ms] Passed 4 tests
An overview of server-side resources used by Magic Login - Passwordless Authentication for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.33 | 61.87 ▲0.63 |
Dashboard /wp-admin | 3.68 ▲0.27 | 37.40 ▼19.27 |
Posts /wp-admin/edit.php | 3.91 ▲0.27 | 42.18 ▼13.20 |
Add New Post /wp-admin/post-new.php | 7.16 ▲0.18 | 124.11 ▼1,272.57 |
Media Library /wp-admin/upload.php | 3.56 ▲0.26 | 31.22 ▲4.45 |
Magic Login /wp-admin/options-general.php?page=magic-login | 3.57 | 29.21 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Magic Login - Passwordless Authentication for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,801 ▲47 | 15.89 ▲0.21 | 6.47 ▲0.39 | 2.07 ▼0.50 |
Dashboard /wp-admin | 2,910 ▲49 | 6.15 ▼0.05 | 158.77 ▲7.48 | 178.17 ▲14.61 |
Posts /wp-admin/edit.php | 2,693 ▲5 | 3.24 ▲0.00 | 65.42 ▼13.90 | 214.76 ▲78.23 |
Add New Post /wp-admin/post-new.php | 1,765 ▲104 | 18.48 ▼2.40 | 472.09 ▲18.95 | 166.71 ▲5.32 |
Media Library /wp-admin/upload.php | 1,700 ▲5 | 5.55 ▲0.05 | 138.39 ▼5.02 | 185.76 ▲3.99 |
Magic Login /wp-admin/options-general.php?page=magic-login | 2,742 | 7.62 | 154.27 | 246.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function MagicLogin\\plugin_dir_url() in wp-content/plugins/magic-login/plugin.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: magic-login, passwordless, magic-link, passwordless-login, login
magic-login/plugin.php 92% from 13 tests
This is the main PHP file of "Magic Login - Passwordless Authentication for WordPress" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("magic-login.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,829 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 293 | 353 | 1,358 |
JavaScript | 8 | 16 | 10 | 198 |
SVG | 2 | 0 | 0 | 191 |
CSS | 16 | 23 | 38 | 82 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 47 | |
▷ Named functions | 43 | 91.49% |
▷ Anonymous functions | 4 | 8.51% |
Constants | 27 | |
▷ Global constants | 6 | 22.22% |
▷ Class constants | 21 | 77.78% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/select-arrow@2x.png | 0.53KB | 0.34KB | ▼ 36.51% |
dist/images/select-arrow.png | 0.21KB | 0.21KB | 0.00% |
dist/images/select-arrow@2x.png | 0.34KB | 0.34KB | 0.00% |
assets/images/select-arrow.png | 0.30KB | 0.21KB | ▼ 30.19% |