10% gallery-face-groups

Code Review | Gallery Face Groups

WordPress plugin Gallery Face Groups scored10%from 54 tests.

About plugin

  • Plugin page: gallery-face-groups
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 21, 2016
  • Latest release: Aug 2, 2016
  • Number of updates: 13
  • Update frequency: every 3.3 days
  • Top authors: dmlihachev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,060 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/gallery-face-groups/gallery-face-groups.php+81
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.85MB] [CPU: ▼56.12ms] Passed 4 tests

Analyzing server-side resources used by Gallery Face Groups
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.334.74 ▼45.60
Dashboard /wp-admin2.16 ▼1.155.43 ▼43.63
Posts /wp-admin/edit.php2.16 ▼1.206.28 ▼44.01
Add New Post /wp-admin/post-new.php2.16 ▼3.736.04 ▼91.23
Media Library /wp-admin/upload.php2.16 ▼1.075.09 ▼25.87
Gallery Face Groups /wp-admin/options-general.php?page=ngfg2.166.59

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gallery Face Groups
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▼0.141.86 ▲0.0840.73 ▼3.42
Dashboard /wp-admin2,199 ▲195.64 ▼0.0493.14 ▲2.9041.25 ▼0.20
Posts /wp-admin/edit.php2,104 ▲12.01 ▲0.0140.60 ▼0.1436.08 ▼0.57
Add New Post /wp-admin/post-new.php1,529 ▲123.06 ▼0.17639.54 ▼30.6958.94 ▼6.40
Media Library /wp-admin/upload.php1,401 ▲14.17 ▼0.0197.34 ▼9.7942.29 ▼4.43
Gallery Face Groups /wp-admin/options-general.php?page=ngfg8972.0022.7130.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/gallery-face-groups/gallery-face-groups.php+81
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ngfg
    • > Deprecated in wp-content/plugins/gallery-face-groups/gallery-face-groups.php+329
    Array and string offset access syntax with curly braces is deprecated
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ngfg
    • > Notice in wp-content/plugins/gallery-face-groups/gallery-face-groups.php+185
    Trying to access array offset on value of type bool

SRP 0% 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 items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/gallery-face-groups/gallery-face-groups-ajax.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined index: apibio_key in wp-content/plugins/gallery-face-groups/gallery-face-groups-ajax.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-face-groups/gallery-face-groups.php:38

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=ngfg
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=ngfg 153:27 Uncaught SyntaxError: Unexpected token ';'

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (**Working** - plugin finding faces and groupin them), #2 (**The results** - this gallery is porcessed)
  • Donate link: Invalid URI found ("")
The official readme.txt might help

gallery-face-groups/gallery-face-groups.php 85% from 13 tests

The main file in "Gallery Face Groups" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 192 characters long)
  • 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

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
There were no executable files found in this plugin888 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4117130780
PO File14141108

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity49.33
▷ Minimum class complexity23.00
▷ Maximum class complexity97.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods42
▷ Static methods12.38%
▷ Public methods3788.10%
▷ Protected methods511.90%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 1.95MB with 1.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png50.73KB26.10KB▼ 48.55%
screenshot-2.png1,948.87KB674.74KB▼ 65.38%