Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-2-stage-login/plugin-functions.php+63
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.87MB] [CPU: ▼61.39ms] Passed 4 tests
Analyzing server-side resources used by WP 2-Stage Login
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 5.33 ▼41.45 |
Dashboard /wp-admin | 2.13 ▼1.17 | 6.06 ▼45.69 |
Posts /wp-admin/edit.php | 2.13 ▼1.22 | 6.49 ▼44.70 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.75 | 6.04 ▼113.73 |
Media Library /wp-admin/upload.php | 2.13 ▼1.09 | 6.32 ▼32.24 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 11 new options
New WordPress options |
---|
wp2sl_gl_page_id |
can_compress_scripts |
_wp2sl_glogin_form_template |
widget_theysaidso_widget |
widget_recent-comments |
wp2sl_gl_page_slug |
theysaidso_admin_options |
_wp2sl_gl_page_bg |
db_upgraded |
_wp2sl_gl_page_logo |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP 2-Stage Login
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲196 | 13.49 ▼1.07 | 10.30 ▲8.49 | 44.46 ▼2.91 |
Dashboard /wp-admin | 2,227 ▲47 | 5.66 ▲0.04 | 93.32 ▲3.45 | 68.15 ▲24.34 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.14 ▲0.17 | 41.61 ▲3.61 | 34.93 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,712 ▲186 | 22.40 ▼1.11 | 713.90 ▲38.22 | 64.67 ▲1.97 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.24 ▲0.04 | 104.08 ▲0.82 | 71.37 ▲30.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wp-2-stage-login/plugin-functions.php+63
Array and string offset access syntax with curly braces is deprecated
- This plugin did not uninstall successfully, leaving 11 options in the database
- can_compress_scripts
- _wp2sl_gl_page_logo
- theysaidso_admin_options
- db_upgraded
- wp2sl_gl_page_id
- widget_theysaidso_widget
- _wp2sl_gl_page_bg
- widget_recent-comments
- wp2sl_gl_page_slug
- widget_recent-posts
- ...
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-2-stage-login/templates/forms/login/form_footer.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-2-stage-login/ajax-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-2-stage-login/templates/forms/login/form_header.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-2-stage-login/plugin-functions.php:105
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-2-stage-login/settings/menu_settings.php:4
- > PHP Warning
include_once(ABSPATHwp-load.php): failed to open stream: No such file or directory in wp-content/plugins/wp-2-stage-login/templates/forms/login/form_header.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-2-stage-login/templates/tpl_generic_login.php:7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-2-stage-login/templates/forms/login/form_header.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-2-stage-login/templates/forms/login/form_header.php:10
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-load.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-2-stage-login/templates/forms/login/form_header.php on line 7
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-load.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-2-stage-login/templates/forms/login/form_header.php on line 7
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: 2 stage authentication, wp authentication, login, wp 2-stage login
wp-2-stage-login/2stage-login.php 92% from 13 tests
The entry point to "WP 2-Stage Login" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-2-stage-login.php" instead of "2stage-login.php")
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 detected2,174 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 195 | 107 | 1,253 |
PHP | 9 | 157 | 139 | 584 |
SVG | 1 | 0 | 0 | 255 |
JavaScript | 4 | 18 | 13 | 82 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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 | 31 | |
▷ Named functions | 31 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
26 PNG files occupy 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/forms/login/images/noise.png | 5.33KB | 2.35KB | ▼ 55.91% |
templates/forms/login/images/success_icon_256px.png | 19.68KB | 8.73KB | ▼ 55.63% |
images/banner-lock-icon-64.png | 10.98KB | 3.53KB | ▼ 67.83% |
images/icon-lock-2.png | 1.65KB | 0.40KB | ▼ 75.89% |
templates/forms/login/images/mailicon.png | 2.91KB | 0.33KB | ▼ 88.79% |