Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▲0.78ms] Passed 4 tests
Analyzing server-side resources used by Ultimate WP Multimedia Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 47.48 ▲3.12 |
Dashboard /wp-admin | 3.51 ▲0.21 | 60.38 ▲5.31 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 64.02 ▲16.59 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 95.36 ▼9.75 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 44.15 ▲4.44 |
Galleries /wp-admin/admin.php?page=wpm-gallery | 3.40 | 40.63 |
Add Gallery /wp-admin/admin.php?page=wpm-gallery-add | 3.50 | 44.73 |
Settings /wp-admin/admin.php?page=wpmg-settings | 3.42 | 44.40 |
Server storage [IO: ▲0.54MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 83 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_a_wpmg_gallery_item_tag_terms |
wp_a_wpmg_gallery_items |
wp_a_wpmg_gallery |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
wpmg_db_version |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Ultimate WP Multimedia Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.71 ▼0.59 | 1.86 ▼0.32 | 48.81 ▲6.06 |
Dashboard /wp-admin | 2,224 ▲36 | 4.91 ▼0.91 | 126.02 ▲11.11 | 93.03 ▲48.93 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.06 ▲0.05 | 42.55 ▲2.31 | 36.46 ▼3.09 |
Add New Post /wp-admin/post-new.php | 1,549 ▲25 | 22.93 ▼0.17 | 769.52 ▲50.12 | 49.60 ▼21.04 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.22 ▼0.01 | 110.96 ▼11.83 | 81.34 ▲31.44 |
Galleries /wp-admin/admin.php?page=wpm-gallery | 873 | 2.11 | 28.46 | 31.34 |
Add Gallery /wp-admin/admin.php?page=wpm-gallery-add | 1,037 | 3.11 | 46.42 | 84.23 |
Settings /wp-admin/admin.php?page=wpmg-settings | 1,132 | 2.11 | 27.76 | 40.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_a_wpmg_gallery_item_tag_terms
- wp_a_wpmg_gallery_items
- wp_a_wpmg_gallery
- The uninstall procedure has failed, leaving 7 options in the database
- wpmg_db_version
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ultimate-wp-multimedia-gallery/admin/inc/admin-add-new-gallery-thickbox.tpl.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- License uri: Please fix this invalid URI: "GPLv2 or later"
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in ultimate-wp-multimedia-gallery/assets to your readme.txt
ultimate-wp-multimedia-gallery/uwmg.php 85% from 13 tests
The main PHP script in "Ultimate WP Multimedia Gallery" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("ultimate-wp-multimedia-gallery.php" instead of "uwmg.php")
- Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,693 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 183 | 53 | 1,441 |
CSS | 2 | 1 | 6 | 652 |
JavaScript | 4 | 97 | 60 | 600 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 40 | |
▷ Static methods | 38 | 95.00% |
▷ Public methods | 37 | 92.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
34 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
front/images/prettyPhoto/dark_square/sprite.png | 3.42KB | 2.13KB | ▼ 37.67% |
front/images/wpm-social-networks-logos.png | 6.35KB | 3.02KB | ▼ 52.42% |
front/images/thumbnails/flash-logo.png | 6.26KB | 3.92KB | ▼ 37.35% |
front/images/prettyPhoto/dark_square/contentPattern.png | 0.12KB | 0.09KB | ▼ 20.66% |
front/images/prettyPhoto/default/sprite_prev.png | 1.34KB | 0.38KB | ▼ 71.73% |