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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.25ms] Passed 4 tests
An overview of server-side resources used by Relais 2FA
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 43.82 ▲2.67 |
Dashboard /wp-admin | 3.44 ▲0.13 | 47.38 ▼4.25 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 48.55 ▲0.47 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 86.84 ▼15.89 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 33.66 ▲2.88 |
Pair / Unpair device /wp-admin/admin.php?page=relais_2fa_add_device | 4.11 | 47.06 |
Manage users /wp-admin/admin.php?page=relais_2fa_manage_users | 3.34 | 36.97 |
Relais 2FA /wp-admin/admin.php?page=relais_2fa | 3.32 | 30.59 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 441 new files
Database: 2 new tables, 6 new options
New tables |
---|
rl_codes |
rl_nonces |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Relais 2FA
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲188 | 13.27 ▼1.11 | 1.73 ▼0.37 | 38.89 ▼11.53 |
Dashboard /wp-admin | 2,233 ▲45 | 5.86 ▼0.02 | 107.70 ▼6.18 | 81.06 ▲36.17 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.00 ▲0.00 | 38.45 ▲4.25 | 34.62 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,692 ▲163 | 22.34 ▲3.94 | 671.48 ▼63.10 | 42.76 ▼6.87 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.22 ▲0.05 | 105.07 ▲6.75 | 44.98 ▲0.32 |
Pair / Unpair device /wp-admin/admin.php?page=relais_2fa_add_device | 794 | 2.02 | 25.16 | 22.12 |
Manage users /wp-admin/admin.php?page=relais_2fa_manage_users | 820 | 2.02 | 25.50 | 34.54 |
Relais 2FA /wp-admin/admin.php?page=relais_2fa | 819 | 2.01 | 23.72 | 25.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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 | 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
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/relais-2fa/include/add_device_page.php
- > /wp-content/plugins/relais-2fa/include/manage_page.php
- > /wp-content/plugins/relais-2fa/include/admin_page.php
- > /wp-content/plugins/relais-2fa/relais.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== relais-2fa ===
)
relais-2fa/relais.php 92% from 13 tests
The entry point to "Relais 2FA" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("relais-2fa.php" instead of "relais.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/relais-2fa/lib/phpqrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 1,861 | 2,051 | 7,098 |
CSS | 2 | 17 | 0 | 153 |
JavaScript | 1 | 24 | 24 | 64 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 32.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 366 | |
▷ Static methods | 122 | 33.33% |
▷ Public methods | 266 | 72.68% |
▷ Protected methods | 96 | 26.23% |
▷ Private methods | 4 | 1.09% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 98 | |
▷ Global constants | 98 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
42 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/phpqrcode/cache/frame_36.png | 0.27KB | 0.25KB | ▼ 7.72% |
lib/phpqrcode/cache/frame_18.png | 0.22KB | 0.21KB | ▼ 5.26% |
lib/phpqrcode/cache/frame_25.png | 0.24KB | 0.23KB | ▼ 4.55% |
lib/phpqrcode/cache/frame_9.png | 0.19KB | 0.19KB | ▼ 2.01% |
lib/phpqrcode/cache/frame_37.png | 0.27KB | 0.25KB | ▼ 7.89% |