Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼11.80ms] Passed 4 tests
A check of server-side resources used by EMLG TFA
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.39 ▲5.92 |
Dashboard /wp-admin | 3.40 ▲0.06 | 46.25 ▼13.10 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 42.55 ▼12.54 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 79.92 ▼23.75 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.91 ▲2.20 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EMLG TFA
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.77 ▲0.40 | 1.86 ▲0.22 | 45.82 ▲3.68 |
Dashboard /wp-admin | 2,218 ▲33 | 4.84 ▼1.04 | 112.78 ▲14.52 | 43.22 ▼0.83 |
Posts /wp-admin/edit.php | 2,101 ▲9 | 2.03 ▲0.01 | 33.82 ▼9.23 | 35.90 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,557 ▲43 | 23.00 ▲5.25 | 663.57 ▲56.57 | 64.85 ▲12.15 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.20 ▼0.20 | 96.18 ▼1.84 | 45.01 ▲1.82 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Emlg_Login' not found in wp-content/plugins/emlg-tfa/views/submit-code.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/emlg-tfa/views/admin-page.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/emlg-tfa/emlg-tfa.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emlg-tfa/includes/class-emlg-login.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: email login, email two-factor authentication, 2fa, 2 factor, 2-factor authentication...
emlg-tfa/emlg-tfa.php Passed 13 tests
"EMLG TFA" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
47 characters long description:
Two-Factor Authentication via out of band email
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
There were no executable files found in this plugin919 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 138 | 330 | 645 |
JavaScript | 1 | 22 | 25 | 159 |
CSS | 2 | 26 | 0 | 115 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 13.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 10 | 29.41% |
▷ Public methods | 27 | 79.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 20.59% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin