Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼8.56ms] Passed 4 tests
An overview of server-side resources used by Gallery for Users
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.16 | 42.37 ▲1.29 |
Dashboard /wp-admin | 3.53 ▲0.14 | 51.72 ▼17.42 |
Posts /wp-admin/edit.php | 3.64 ▲0.24 | 49.95 ▼2.35 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.20 | 89.73 ▼15.77 |
Media Library /wp-admin/upload.php | 3.45 ▲0.18 | 41.74 ▲8.20 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=users_gallery | 3.44 | 41.22 |
All Gallery items /wp-admin/edit.php?post_type=users_gallery | 3.50 | 41.96 |
Settings /wp-admin/edit.php?post_type=users_gallery&page=users_gallery_settings | 3.40 | 34.18 |
Add New /wp-admin/post-new.php?post_type=users_gallery | 3.59 | 62.11 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
gallery_types_children |
users_gallery_terms_added |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
category_children |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gallery for Users
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲129 | 14.42 ▼0.29 | 1.64 ▼0.20 | 36.22 ▼7.74 |
Dashboard /wp-admin | 2,269 ▲95 | 5.94 ▲0.33 | 86.38 ▼10.40 | 36.88 ▼5.35 |
Posts /wp-admin/edit.php | 2,183 ▲83 | 2.30 ▲0.30 | 38.70 ▼2.20 | 33.98 ▼5.36 |
Add New Post /wp-admin/post-new.php | 1,580 ▲52 | 23.38 ▲0.31 | 658.12 ▼26.18 | 36.31 ▼21.53 |
Media Library /wp-admin/upload.php | 1,480 ▲77 | 4.46 ▲0.27 | 95.63 ▼4.94 | 42.66 ▼2.75 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=users_gallery | 1,534 | 2.18 | 34.04 | 36.18 |
All Gallery items /wp-admin/edit.php?post_type=users_gallery | 1,190 | 2.24 | 35.33 | 29.93 |
Settings /wp-admin/edit.php?post_type=users_gallery&page=users_gallery_settings | 1,605 | 2.61 | 60.42 | 36.52 |
Add New /wp-admin/post-new.php?post_type=users_gallery | 2,581 | 8.03 | 166.53 | 68.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- gallery_types_children
- widget_recent-posts
- users_gallery_terms_added
- category_children
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% 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)
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=users_gallery&page=users_gallery_settings
- > Notice in wp-content/plugins/gallery-for-users/includes/users-gallery-admin.php+92
Trying to access array offset on value of type bool
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-for-users/init.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: user gallery, gallery, images for users, user images, video gallery
gallery-for-users/init.php 85% from 13 tests
The principal PHP file in "Gallery for Users" v. 2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- 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: It is recommended to name the main PHP file as the plugin slug ("gallery-for-users.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected6,709 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 296 | 327 | 4,212 |
PHP | 10 | 223 | 253 | 1,369 |
CSS | 4 | 2 | 16 | 523 |
LESS | 2 | 5 | 7 | 289 |
PO File | 1 | 115 | 130 | 284 |
JSON | 1 | 0 | 0 | 32 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/skins/bottomshadow-110-95-4.png | 2.01KB | 2.67KB | 0.00% |
assets/images/del-ico.png | 1.48KB | 0.84KB | ▼ 43.05% |
assets/images/calendar-ico.png | 1.30KB | 0.70KB | ▼ 45.82% |
assets/images/skins/arrows-32-32-0 (1).png | 2.38KB | 1.80KB | ▼ 24.42% |
assets/images/skins/carouselarrows-32-32-0.png | 2.71KB | 2.19KB | ▼ 19.12% |