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.13MB] [CPU: ▼140.51ms] Passed 4 tests
An overview of server-side resources used by REVE Secure Two Factor Authentication (2FA)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.23 | 37.96 ▲16.92 |
Dashboard /wp-admin | 3.18 ▲0.12 | 47.78 ▲1.21 |
Posts /wp-admin/edit.php | 3.29 ▲0.18 | 44.07 ▼3.63 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.10 | 91.98 ▼560.37 |
Media Library /wp-admin/upload.php | 3.12 ▲0.11 | 32.01 ▲0.77 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
REVE Secure Two Factor Authentication (2FA): an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,697 ▲101 | 15.73 ▲0.12 | 10.69 ▲1.43 | 49.50 ▼2.35 |
Dashboard /wp-admin | 2,982 ▲51 | 5.97 ▼0.12 | 138.58 ▼9.03 | 137.97 ▲7.70 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.59 ▼0.12 | 62.22 ▼5.21 | 92.74 ▼6.14 |
Add New Post /wp-admin/post-new.php | 1,628 ▼55 | 21.48 ▲2.80 | 279.09 ▼93.09 | 114.91 ▲0.73 |
Media Library /wp-admin/upload.php | 1,770 ▼40 | 5.03 ▼0.01 | 132.32 ▼17.92 | 143.47 ▲18.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/reve-secure/Revesecure.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/reve-secure/templates/admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/reve-secure/inc/RevesecureSettingsMenu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function login_header() in wp-content/plugins/reve-secure/templates/second.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: There are too many tags (20 tag instead of maximum 10)
reve-secure/Revesecure.php 92% from 13 tests
The principal PHP file in "REVE Secure Two Factor Authentication (2FA)" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("reve-secure.php" instead of "Revesecure.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,417 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 94 | 38 | 772 |
JavaScript | 2 | 46 | 38 | 511 |
CSS | 2 | 0 | 0 | 132 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 10 | 30.30% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/img/secureLogo.png | 1.14KB | 0.44KB | ▼ 61.63% |