Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.39ms] Passed 4 tests
This is a short check of server-side resources used by Google Authenticator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 37.01 ▼1.45 |
Dashboard /wp-admin | 3.49 ▲0.14 | 45.94 ▼9.61 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 47.57 ▼1.16 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 113.67 ▲17.03 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.01 ▲6.67 |
/wp-admin/admin.php?page=google_authenticator_user_page | 3.38 | 32.36 |
Google Authenticator /wp-admin/options-general.php?page=google_authenticator | 3.38 | 32.19 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Google Authenticator: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 13.18 ▼1.20 | 1.79 ▲0.07 | 38.91 ▼0.34 |
Dashboard /wp-admin | 2,209 ▲17 | 5.84 ▲0.92 | 99.56 ▼7.08 | 38.46 ▼5.46 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.00 ▼0.01 | 38.73 ▲2.27 | 34.53 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,542 ▲19 | 18.59 ▼4.58 | 598.11 ▼81.76 | 51.88 ▼4.97 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.27 ▲0.05 | 93.57 ▼6.98 | 41.67 ▼2.76 |
/wp-admin/admin.php?page=google_authenticator_user_page | 901 | 2.21 | 50.64 | 25.00 |
Google Authenticator /wp-admin/options-general.php?page=google_authenticator | 817 | 2.03 | 25.88 | 30.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-authenticator/google-authenticator.php:67
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The enhanced log-in box.), #2 (Google Authenticator section on the Profile and Personal options page.), #3 (QR code on the Profile and Personal options page.), #4 (Google Authenticator app on Android)
google-authenticator/google-authenticator.php Passed 13 tests
This is the main PHP file of "Google Authenticator" version 0.54, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
111 characters long description:
Two-Factor Authentication for WordPress using the Android/iPhone/Blackberry app as One Time Password generator.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,708 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 9 | 272 | 312 | 925 |
PHP | 2 | 129 | 209 | 755 |
JavaScript | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 64.50 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 5.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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