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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.33 | 4.74 ▼45.60 |
Dashboard /wp-admin | 2.16 ▼1.15 | 5.43 ▼43.63 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.28 ▼44.01 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 6.04 ▼91.23 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 5.09 ▼25.87 |
Gallery Face Groups /wp-admin/options-general.php?page=ngfg | 2.16 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.23 ▼0.14 | 1.86 ▲0.08 | 40.73 ▼3.42 |
Dashboard /wp-admin | 2,199 ▲19 | 5.64 ▼0.04 | 93.14 ▲2.90 | 41.25 ▼0.20 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▲0.01 | 40.60 ▼0.14 | 36.08 ▼0.57 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.06 ▼0.17 | 639.54 ▼30.69 | 58.94 ▼6.40 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.17 ▼0.01 | 97.34 ▼9.79 | 42.29 ▼4.43 |
Gallery Face Groups /wp-admin/options-general.php?page=ngfg | 897 | 2.00 | 22.71 | 30.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
- > PHP Notice
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 ("")
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 117 | 130 | 780 |
PO File | 1 | 41 | 41 | 108 |
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 code | 0.49 |
Average class complexity | 49.33 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 42 | |
▷ Static methods | 1 | 2.38% |
▷ Public methods | 37 | 88.10% |
▷ Protected methods | 5 | 11.90% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 50.73KB | 26.10KB | ▼ 48.55% |
screenshot-2.png | 1,948.87KB | 674.74KB | ▼ 65.38% |