Benchmarks
Plugin footprint 65% 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.00MB] [CPU: ▼6.00ms] Passed 4 tests
Server-side resources used by Ultimate Member Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.77 ▲1.36 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.30 ▼2.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.28 ▲2.74 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.90 ▼20.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.43 ▼2.35 |
Server storage [IO: ▲4.93MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 116 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ultimate_member_gallery_user_contents |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
ultimate_member_gallery_db_version |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Ultimate Member Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.41 ▲0.12 | 1.93 ▲0.01 | 43.60 ▼0.19 |
Dashboard /wp-admin | 2,211 ▲37 | 5.69 ▲0.02 | 93.25 ▼1.10 | 40.04 ▼5.47 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.02 ▼0.01 | 35.65 ▲0.44 | 34.38 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.42 ▲0.37 | 681.12 ▲29.87 | 65.61 ▼1.92 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.25 ▲0.11 | 114.92 ▲11.68 | 49.01 ▲1.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_ultimate_member_gallery_user_contents
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- ultimate_member_gallery_db_version
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ultimate-member-gallery/lib/upload/um-image-upload.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function um_user() in wp-content/plugins/ultimate-member-gallery/templates/profile/gallery.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function um_user() in wp-content/plugins/ultimate-member-gallery/templates/profile/video.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Screenshot 1), #2 (Screenshot 2), #3 (Screenshot 3), #4 (Screenshot 4), #5 (Screenshot 5), #6 (Screenshot 6), #7 (Screenshot 8)
ultimate-member-gallery/ultimate-member-gallery.php Passed 13 tests
The main file in "Ultimate Member Gallery" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
109 characters long description:
An extension for the Ultimate Member plugin to allow users to upload multiple gallery images in teir profile.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin16,229 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 29 | 3,102 | 6,909 | 13,259 |
CSS | 5 | 25 | 222 | 1,038 |
PHP | 5 | 366 | 105 | 867 |
LESS | 1 | 151 | 275 | 812 |
HTML | 3 | 40 | 8 | 225 |
SVG | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 97.00 |
▷ Minimum class complexity | 97.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
38 PNG files occupy 2.33MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/prettyphoto/images/prettyPhoto/dark_square/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |
assets/prettyphoto/images/thumbnails/flash-logo.png | 6.26KB | 3.92KB | ▼ 37.35% |
screenshot-6.png | 230.79KB | 132.38KB | ▼ 42.64% |
assets/prettyphoto/images/prettyPhoto/facebook/sprite.png | 4.13KB | 2.26KB | ▼ 45.33% |
assets/prettyphoto/images/prettyPhoto/light_square/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |