99% face-recognition-wp

Code Review | Face recognition WP

WordPress plugin Face recognition WP scored 99% from 54 tests.

About plugin

  • Plugin page: face-recognition-wp
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.2
  • WordPress version: 5.8.1
  • First release: Mar 3, 2020
  • Latest release: Mar 14, 2020
  • Number of updates: 5
  • Update frequency: every 2.2 days
  • Top authors: dessainsaraiva (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 279 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼144.94ms] Passed 4 tests

Analyzing server-side resources used by Face recognition WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1439.11 ▲14.82
Dashboard /wp-admin3.07 ▲0.0248.49 ▲2.06
Posts /wp-admin/edit.php3.13 ▲0.0239.49 ▼5.78
Add New Post /wp-admin/post-new.php5.44 ▲0.0088.92 ▼575.44
Media Library /wp-admin/upload.php3.02 ▲0.0233.68 ▼0.59

Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Face recognition WP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,725 ▲12916.52 ▲0.6215.01 ▲5.3247.46 ▼3.05
Dashboard /wp-admin2,998 ▲646.03 ▲0.09150.43 ▼5.40116.97 ▼10.67
Posts /wp-admin/edit.php2,782 ▲432.74 ▲0.0577.31 ▲8.7589.82 ▼9.36
Add New Post /wp-admin/post-new.php1,704 ▲20418.57 ▼0.08376.09 ▼8.89113.56 ▼7.97
Media Library /wp-admin/upload.php1,838 ▲315.15 ▲0.14155.64 ▼5.46123.19 ▼1.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 88% 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
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Loaded profile photos), #2 (Founded profiles on the group photo), #3 (You can have several loaded profiles)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === face-recognition-wp === )
The official readme.txt is a good inspiration

face-recognition-wp/face-recognition-wp.php Passed 13 tests

The primary PHP file in "Face recognition WP" version 1.0 is used by WordPress to initiate all plugin functionality
35 characters long description:
Identify profiles on a group photo

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin387 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png180.02KB93.28KB▼ 48.19%
assets/image-placeholder.png4.83KB2.09KB▼ 56.72%
assets/screenshot-1.png45.47KB15.43KB▼ 66.06%
assets/screenshot-3.png51.19KB17.47KB▼ 65.87%