Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.80ms] Passed 4 tests
This is a short check of server-side resources used by Notakey Provider for Two-Factor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 35.25 ▼2.16 |
Dashboard /wp-admin | 3.42 ▲0.07 | 43.08 ▼15.23 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.43 ▲3.16 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 80.47 ▼12.95 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.44 ▲4.92 |
Notakey MFA /wp-admin/options-general.php?page=two-factor-notakey-settings | 3.31 | 30.46 |
Server storage [IO: ▲1.95MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 59 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
two-factor-notakey |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Notakey Provider for Two-Factor
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲55 | 14.72 ▲0.48 | 1.70 ▲0.07 | 36.34 ▼4.44 |
Dashboard /wp-admin | 2,207 ▲27 | 5.53 ▼0.15 | 82.28 ▼5.86 | 41.65 ▲2.52 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.01 ▲0.04 | 40.52 ▲4.85 | 38.03 ▲3.88 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.16 ▲0.16 | 661.27 ▼24.97 | 52.36 ▼4.31 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.14 ▼0.08 | 94.32 ▼7.97 | 41.77 ▼3.78 |
Notakey MFA /wp-admin/options-general.php?page=two-factor-notakey-settings | 1,048 | 1.79 | 24.84 | 29.49 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- two-factor-notakey
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/notakey-two-factor-extension/vendor/nategood/httpful/examples/github.php
- > /wp-content/plugins/notakey-two-factor-extension/vendor/nategood/httpful/tests/bootstrap-server.php
- > /wp-content/plugins/notakey-two-factor-extension/vendor/nategood/httpful/examples/showclix.php
- 24× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/notakey-two-factor-extension/vendor/nategood/httpful/examples/showclix.php on line 24
- > PHP Warning
Use of undefined constant WEB_SERVER_PORT - assumed 'WEB_SERVER_PORT' (this will throw an Error in a future version of PHP) in wp-content/plugins/notakey-two-factor-extension/vendor/nategood/httpful/tests/bootstrap-server.php on line 15
- > PHP Notice
Trying to get property 'event_start' of non-object in wp-content/plugins/notakey-two-factor-extension/vendor/nategood/httpful/examples/showclix.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/notakey-two-factor-extension/vendor/nategood/httpful/src/Httpful/Handlers/FormHandler.php:9
- > PHP Warning
Use of undefined constant WEB_SERVER_PORT - assumed 'WEB_SERVER_PORT' (this will throw an Error in a future version of PHP) in wp-content/plugins/notakey-two-factor-extension/vendor/nategood/httpful/tests/bootstrap-server.php on line 34
- > PHP Notice
Trying to get property 'name' of non-object in wp-content/plugins/notakey-two-factor-extension/vendor/nategood/httpful/examples/github.php on line 9
- > PHP Warning
Use of undefined constant WEB_SERVER_HOST - assumed 'WEB_SERVER_HOST' (this will throw an Error in a future version of PHP) in wp-content/plugins/notakey-two-factor-extension/vendor/nategood/httpful/tests/bootstrap-server.php on line 15
- > PHP Warning
Use of undefined constant WEB_SERVER_HOST - assumed 'WEB_SERVER_HOST' (this will throw an Error in a future version of PHP) in wp-content/plugins/notakey-two-factor-extension/vendor/nategood/httpful/tests/Httpful/HttpfulTest.php on line 22
- > PHP Fatal error
Uncaught Exception: Unable to parse response as JSON in wp-content/plugins/notakey-two-factor-extension/vendor/nategood/httpful/src/Httpful/Handlers/JsonHandler.php:30
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/notakey-two-factor-extension/vendor/nategood/httpful/examples/showclix.php on line 24
- > PHP Notice
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: two factor, login, totp, two step, notakey...
notakey-two-factor-extension/two-factor-notakey.php 85% from 13 tests
The principal PHP file in "Notakey Provider for Two-Factor" v. 1.0.17 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("notakey-two-factor-extension.php" instead of "two-factor-notakey.php")
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
Everything looks great! No dangerous files found in this plugin3,828 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 762 | 1,431 | 3,480 |
Markdown | 2 | 91 | 0 | 181 |
JSON | 3 | 0 | 0 | 91 |
JavaScript | 1 | 10 | 5 | 47 |
XML | 1 | 1 | 0 | 15 |
YAML | 1 | 3 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 1 | 3.45% |
Methods | 297 | |
▷ Static methods | 78 | 26.26% |
▷ Public methods | 253 | 85.19% |
▷ Protected methods | 2 | 0.67% |
▷ Private methods | 42 | 14.14% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 55 | |
▷ Global constants | 4 | 7.27% |
▷ Class constants | 51 | 92.73% |
▷ Public constants | 40 | 78.43% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 1.69MB with 1.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 408.42KB | 72.74KB | ▼ 82.19% |
assets/banner-772x250.png | 40.37KB | 15.32KB | ▼ 62.06% |
assets/icon-128x128.png | 8.28KB | 2.80KB | ▼ 66.18% |
assets/screenshot-1.png | 557.08KB | 109.22KB | ▼ 80.39% |
assets/banner-1544x500.png | 88.91KB | 33.62KB | ▼ 62.19% |