Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.29MB] [CPU: ▼16.95ms] Passed 4 tests
A check of server-side resources used by FiD Facial Recognition Admin Login
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 38.40 ▼4.35 |
Dashboard /wp-admin | 3.73 ▲0.38 | 56.20 ▼9.09 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 55.36 ▲5.97 |
Add New Post /wp-admin/post-new.php | 3.58 ▼2.31 | 39.96 ▼56.39 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 38.95 ▲2.02 |
Server storage [IO: ▲10.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 9 new options
New WordPress options |
---|
qe_fid_plugin_login_guard_state |
qe_fid_plugin_nonce |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
qe_fid_id_user_mapping_roster |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
FiD Facial Recognition Admin Login: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲156 | 31.38 ▲17.03 | 4.74 ▲3.05 | 39.04 ▼5.28 |
Dashboard /wp-admin | 2,204 ▲24 | 5.62 ▲0.01 | 94.12 ▼3.71 | 40.70 ▼7.13 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 1.95 ▼0.02 | 39.12 ▲1.21 | 35.68 ▲1.11 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.63 ▲5.18 | 621.20 ▼18.71 | 48.56 ▼29.91 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.20 ▲0.01 | 95.69 ▼2.29 | 41.97 ▼2.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/qe-fid-id/uninstall.php+32
Trying to get property 'user_roster' of non-object
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'QeFid\\ID\\EventPipes\\Pipe' not found in wp-content/plugins/qe-fid-id/includes/EventPipes/DeletePipe.php:26
- > PHP Fatal error
Uncaught Error: Class 'QeFid\\ID\\PluginMeta' not found in wp-content/plugins/qe-fid-id/includes/Login.php:22
- > PHP Fatal error
Uncaught Error: Class 'QeFid\\ID\\PluginMeta' not found in wp-content/plugins/qe-fid-id/includes/Endpoint/Admin.php:27
- > PHP Fatal error
Uncaught Error: Class 'QeFid\\ID\\PluginMeta' not found in wp-content/plugins/qe-fid-id/includes/Endpoint/Gate.php:23
- > PHP Fatal error
Uncaught Error: Class 'QeFid\\ID\\PluginMeta' not found in wp-content/plugins/qe-fid-id/includes/Admin.php:21
- > PHP Fatal error
Uncaught Error: Class 'QeFid\\ID\\EventPipes\\Pipe' not found in wp-content/plugins/qe-fid-id/includes/EventPipes/LoginPipe.php:26
- > PHP Fatal error
Uncaught Error: Class 'QeFid\\ID\\EventPipes\\Pipe' not found in wp-content/plugins/qe-fid-id/includes/EventPipes/RegisterPipe.php:29
- > PHP Fatal error
Uncaught Error: Class 'QeFid\\ID\\EventPipes\\Pipe' not found in wp-content/plugins/qe-fid-id/includes/EventPipes/UpdatePipe.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 80% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #3 (The Enrollment acceptance terms for enrolling an admin account to FiD protection, requires a 4 digit numeric pin (you decide what it is).), #4 (Managing existing enrolled admins via the actions. You can see the number of admins the license allows in the top left of the table.)
qe-fid-id/qe-fid-plugin.php 62% from 13 tests
Analyzing the main PHP file in "FiD Facial Recognition Admin Login" version 1.2.1
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("qe-fid-id.php" instead of "qe-fid-plugin.php")
- Requires PHP: Required version does not match the one declared in readme.txt ("5.6" instead of "7.2")
- Requires at least: Required version does not match the one declared in readme.txt ("5.3" instead of "5.5")
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 plugin12,383 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 12 | 9 | 9,269 |
PHP | 38 | 473 | 1,072 | 2,367 |
JavaScript | 2 | 56 | 8 | 686 |
SVG | 1 | 0 | 1 | 61 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 3 | 9.38% |
Methods | 165 | |
▷ Static methods | 49 | 29.70% |
▷ Public methods | 144 | 87.27% |
▷ Protected methods | 1 | 0.61% |
▷ Private methods | 20 | 12.12% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/fid.png | 13.68KB | 7.48KB | ▼ 45.31% |
assets/images/icon.png | 18.25KB | 9.82KB | ▼ 46.20% |