Benchmarks
Plugin footprint 48% 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.10MB] [CPU: ▼5.80ms] Passed 4 tests
This is a short check of server-side resources used by Face Recognition Login
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 36.90 ▼1.82 |
Dashboard /wp-admin | 3.40 ▲0.10 | 45.85 ▼6.32 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.39 ▲1.01 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 80.26 ▼16.06 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.56 ▲4.00 |
Server storage [IO: ▲15.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Face Recognition Login
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.47 ▲0.05 | 1.71 ▼0.16 | 39.24 ▼7.24 |
Dashboard /wp-admin | 2,212 ▲27 | 4.88 ▼0.98 | 108.97 ▼8.20 | 38.87 ▼8.51 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▲0.02 | 39.39 ▼0.19 | 36.42 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,520 ▼0 | 17.75 ▼5.33 | 644.38 ▲20.66 | 62.65 ▼7.84 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.18 ▼0.01 | 96.81 ▼4.51 | 43.49 ▲0.20 |
Uninstaller [IO: ▲15.51MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsThis plugin does not fully uninstall, leaving 7 options in the database
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/face-recognition/uninstall.php+17
Undefined variable: face_recognition
- The plugin did not uninstall correctly, leaving 29 files (15.51MB) in the plugin directory
- (new file) assets/facerec_weights/face_landmark_68_tiny_model-weights_manifest.json
- (new file) assets/facerec_weights/age_gender_model-weights_manifest.json
- (new file) assets/css/bundle.css
- (new file) assets/facerec_weights/age_gender_model-shard1
- (new file) assets/facerec_weights/face_recognition_model-shard1
- (new file) assets/facerec_weights/face_landmark_68_model-weights_manifest.json
- (new file) assets/facerec_weights/face_landmark_68_model-shard1
- (new file) assets/facerec_weights/face_expression_model-shard1
- (new file) assets/facerec_weights/face_landmark_68_tiny_model-shard1
- (new file) assets/facerec_weights/face_expression_model-weights_manifest.json
- ...
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- recovery_mode_email_last_sent
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/face-recognition/face_recognition.php
- 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/face-recognition/includes/class-facerecognition-user-meta.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: login, face recognition
face-recognition/face_recognition.php 92% from 13 tests
"Face Recognition Login" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("face-recognition.php" instead of "face_recognition.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,011 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 149 | 437 | 1,000 |
JSON | 8 | 0 | 0 | 8 |
JavaScript | 2 | 0 | 0 | 2 |
CSS | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 2 | 4.44% |
▷ Public methods | 38 | 84.44% |
▷ Protected methods | 2 | 4.44% |
▷ Private methods | 5 | 11.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/no_image.png | 12.05KB | 12.94KB | 0.00% |