Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.43ms] Passed 4 tests
Server-side resources used by Per User Prompt for Google Authenticator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.90 ▼5.00 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.79 ▼10.98 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.08 ▼6.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.01 ▼5.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 31.77 ▼6.14 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Per User Prompt for Google Authenticator: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲96 | 13.31 ▼1.31 | 4.79 ▲2.55 | 42.03 ▼5.22 |
Dashboard /wp-admin | 2,263 ▲57 | 4.84 ▼0.05 | 105.93 ▼3.72 | 42.20 ▲1.78 |
Posts /wp-admin/edit.php | 2,143 ▲46 | 2.18 ▲0.18 | 40.36 ▲1.06 | 50.87 ▲18.89 |
Add New Post /wp-admin/post-new.php | 1,581 ▲36 | 23.47 ▲0.06 | 678.00 ▲39.68 | 51.77 ▼4.99 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.29 ▲0.13 | 99.97 ▼17.37 | 45.10 ▼0.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
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
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/google-authenticator-per-user-prompt/bootstrap.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant GAPUP_REQUIRED_PHP_VERSION - assumed 'GAPUP_REQUIRED_PHP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/google-authenticator-per-user-prompt/views/requirements-error.php on line 7
- > PHP Notice
Undefined variable: error_message in wp-content/plugins/google-authenticator-per-user-prompt/views/token-prompt.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Actor' not found in wp-content/plugins/google-authenticator-per-user-prompt/tests/_helpers/WebGuy.php:19
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Module' not found in wp-content/plugins/google-authenticator-per-user-prompt/tests/_helpers/WebHelper.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/google-authenticator-per-user-prompt/views/requirements-error.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/google-authenticator-per-user-prompt/views/token-prompt.php:13
- > PHP Warning
Use of undefined constant GAPUP_REQUIRED_WP_VERSION - assumed 'GAPUP_REQUIRED_WP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/google-authenticator-per-user-prompt/views/requirements-error.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: two factor authentication, google authenticator
google-authenticator-per-user-prompt/bootstrap.php 92% from 13 tests
The entry point to "Per User Prompt for Google Authenticator" version 0.7 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("google-authenticator-per-user-prompt.php" instead of "bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,238 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 322 | 2,830 | 934 |
SQL | 1 | 51 | 78 | 275 |
YAML | 2 | 6 | 7 | 29 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 1.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 160 | |
▷ Static methods | 2 | 1.25% |
▷ Public methods | 146 | 91.25% |
▷ Protected methods | 14 | 8.75% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 21 | |
▷ Global constants | 2 | 9.52% |
▷ Class constants | 19 | 90.48% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin