Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.67MB] [CPU: ▼1.16ms] Passed 4 tests
Server-side resources used by WP Face Login - Face Authentication For WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.68 | 46.55 ▼1.66 |
Dashboard /wp-admin | 3.98 ▲0.68 | 52.39 ▲1.53 |
Posts /wp-admin/edit.php | 4.03 ▲0.67 | 52.95 ▲0.14 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 89.27 ▼4.65 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 44.55 ▲6.37 |
Server storage [IO: ▲2.99MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 271 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Face Login - Face Authentication For WordPress: 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,825 ▲64 | 14.72 ▲0.17 | 1.60 ▼0.26 | 44.26 ▲0.68 |
Dashboard /wp-admin | 2,234 ▲53 | 5.57 ▼0.03 | 86.05 ▼19.75 | 40.50 ▲0.56 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.02 ▲0.03 | 36.33 ▼5.72 | 35.82 ▼3.22 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 22.94 ▲0.01 | 612.72 ▼81.24 | 54.39 ▲3.39 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.25 ▲0.08 | 95.78 ▼13.01 | 42.10 ▼7.20 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 138× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/face-authentication-login/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php:24
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/face-authentication-login/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/face-authentication-login/vendor/guzzlehttp/promises/src/CancellationException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/face-authentication-login/vendor/guzzlehttp/promises/src/TaskQueue.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/face-authentication-login/vendor/guzzlehttp/psr7/src/AppendStream.php:11
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/face-authentication-login/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php:20
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/face-authentication-login/vendor/phpgangsta/googleauthenticator/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/face-authentication-login/vendor/phpgangsta/googleauthenticator/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/face-authentication-login/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/face-authentication-login/vendor/guzzlehttp/psr7/src/Uri.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/face-authentication-login/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: authentication, login
face-authentication-login/Initiator.php 85% from 13 tests
This is the main PHP file of "WP Face Login - Face Authentication For WordPress" version 0.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("face-authentication-login.php" instead of "Initiator.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
There were no executable files found in this plugin64,566 lines of code in 255 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 11,963 | 1,712 | 31,633 |
PHP | 224 | 4,351 | 10,480 | 17,154 |
CSS | 2 | 236 | 3,175 | 12,005 |
Markdown | 16 | 1,177 | 0 | 3,732 |
XML | 1 | 2 | 0 | 13 |
SVG | 1 | 0 | 0 | 12 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 3 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 10.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 23 | |
Traits | 6 | |
Classes | 183 | |
▷ Abstract classes | 7 | 3.83% |
▷ Concrete classes | 176 | 96.17% |
▷ Final classes | 8 | 4.55% |
Methods | 1,451 | |
▷ Static methods | 158 | 10.89% |
▷ Public methods | 1,112 | 76.64% |
▷ Protected methods | 152 | 10.48% |
▷ Private methods | 187 | 12.89% |
Functions | 161 | |
▷ Named functions | 56 | 34.78% |
▷ Anonymous functions | 105 | 65.22% |
Constants | 145 | |
▷ Global constants | 2 | 1.38% |
▷ Class constants | 143 | 98.62% |
▷ Public constants | 143 | 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