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: ▼10.77ms] Passed 4 tests
A check of server-side resources used by Encourage User Activation for Google Authenticator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.41 ▲0.79 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.32 ▼15.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.56 ▼2.78 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.02 ▼12.34 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 34.57 ▼12.18 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Encourage User Activation for Google Authenticator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲72 | 13.25 ▼1.13 | 5.02 ▲3.18 | 43.56 ▲2.55 |
Dashboard /wp-admin | 2,246 ▲54 | 5.80 ▲0.84 | 95.21 ▼10.63 | 41.95 ▼0.13 |
Posts /wp-admin/edit.php | 2,129 ▲37 | 2.14 ▲0.13 | 34.33 ▼2.46 | 31.99 ▼1.61 |
Add New Post /wp-admin/post-new.php | 1,570 ▲37 | 23.22 ▲0.05 | 651.37 ▼37.56 | 53.03 ▼4.12 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.19 ▼0.06 | 110.43 ▼2.52 | 49.02 ▲3.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 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 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/google-authenticator-encourage-user-activation/views/force-notice.php
- > /wp-content/plugins/google-authenticator-encourage-user-activation/bootstrap.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant GAEUA_REQUIRED_PHP_VERSION - assumed 'GAEUA_REQUIRED_PHP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/google-authenticator-encourage-user-activation/views/requirements-error.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/google-authenticator-encourage-user-activation/views/nag-notice.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/google-authenticator-encourage-user-activation/views/settings-fields.php:5
- > PHP Warning
Use of undefined constant GAEUA_REQUIRED_WP_VERSION - assumed 'GAEUA_REQUIRED_WP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/google-authenticator-encourage-user-activation/views/requirements-error.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/google-authenticator-encourage-user-activation/views/requirements-error.php:10
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: google authenticator, two factor authentication
google-authenticator-encourage-user-activation/bootstrap.php 92% from 13 tests
The principal PHP file in "Encourage User Activation for Google Authenticator" v. 0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("google-authenticator-encourage-user-activation.php" instead of "bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected197 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 55 | 95 | 197 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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