Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼300.45ms] Passed 4 tests
An overview of server-side resources used by Absolute 2fa For Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 59.39 ▲6.72 |
Dashboard /wp-admin | 3.43 ▲0.02 | 32.46 ▼7.16 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 36.07 ▼7.70 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 92.51 ▼1,186.78 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 24.96 ▼0.16 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
woocommerce_queue_flush_rewrite_rules |
Browser metrics Passed 4 tests
A check of browser resources used by Absolute 2fa For Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,794 ▲37 | 16.27 ▲0.62 | 6.25 ▲0.02 | 2.78 ▲0.41 |
Dashboard /wp-admin | 2,895 ▲34 | 6.13 ▼0.06 | 116.74 ▼22.51 | 151.39 ▼12.71 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.37 ▲0.00 | 61.07 ▼1.03 | 132.52 ▼10.62 |
Add New Post /wp-admin/post-new.php | 1,710 ▲49 | 21.73 ▲5.69 | 438.35 ▲24.58 | 160.64 ▲5.44 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.51 ▼0.03 | 147.79 ▲6.42 | 180.60 ▼6.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 1 option in the database
- woocommerce_queue_flush_rewrite_rules
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: two factor auth, two factor, tfa, google authenticator, 2fa
absolute-2fa-for-woocommerce/absolute-2fa-for-woocommerce.php 85% from 13 tests
This is the main PHP file of "Absolute 2fa For Woocommerce" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 173 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "5.0.0")
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
Good job! No executable or dangerous file extensions detected66 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 17 | 66 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 0 | |
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 | 8 | |
▷ Named functions | 3 | 37.50% |
▷ Anonymous functions | 5 | 62.50% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin