Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▲2.84ms] Passed 4 tests
An overview of server-side resources used by WP Responsive Media Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 46.04 ▼0.26 |
Dashboard /wp-admin | 3.56 ▲0.25 | 54.75 ▲2.32 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 55.27 ▲7.48 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 102.10 ▲12.52 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.47 ▲1.82 |
Gallery Category /wp-admin/edit-tags.php?taxonomy=vsz_cat&post_type=vsz_gallery | 3.43 | 42.48 |
Gallery /wp-admin/edit.php?post_type=vsz_gallery | 3.47 | 46.09 |
Add New /wp-admin/post-new.php?post_type=vsz_gallery | 3.67 | 58.63 |
Server storage [IO: ▲3.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 153 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Responsive Media Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,107 ▲307 | 15.37 ▲2.17 | 7.58 ▲2.65 | 42.86 ▼1.17 |
Dashboard /wp-admin | 2,394 ▲191 | 6.53 ▲1.71 | 146.52 ▲34.00 | 43.58 ▼2.74 |
Posts /wp-admin/edit.php | 2,305 ▲219 | 3.53 ▲1.51 | 59.18 ▲24.33 | 36.41 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,551 ▲16 | 23.61 ▲0.56 | 721.05 ▲43.31 | 42.45 ▼34.32 |
Media Library /wp-admin/upload.php | 1,447 ▲59 | 4.31 ▼0.09 | 84.09 ▼22.30 | 44.25 ▼3.84 |
Gallery Category /wp-admin/edit-tags.php?taxonomy=vsz_cat&post_type=vsz_gallery | 1,652 | 3.38 | 42.46 | 28.27 |
Gallery /wp-admin/edit.php?post_type=vsz_gallery | 1,358 | 3.51 | 44.31 | 28.11 |
Add New /wp-admin/post-new.php?post_type=vsz_gallery | 2,708 | 3.95 | 69.81 | 98.04 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=vsz_cat&post_type=vsz_gallery
- > Notice in wp-content/plugins/wp-responsive-media-gallery/admin/partials/vszgallery_category_field.php+105
Trying to get property 'slug' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-responsive-media-gallery/admin/partials/responsive-media-gallery-admin-display.php
- > /wp-content/plugins/wp-responsive-media-gallery/public/partials/vsz_gallery_display_front.php
- > /wp-content/plugins/wp-responsive-media-gallery/public/partials/vsz_gallery_display_front-mesonary.php
- > /wp-content/plugins/wp-responsive-media-gallery/public/partials/responsive-media-gallery-public-display.php
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined index: postId in wp-content/plugins/wp-responsive-media-gallery/public/partials/load_more_masonry.php on line 10
- > PHP Notice
Undefined index: load_more in wp-content/plugins/wp-responsive-media-gallery/public/partials/load_more_masonry.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/wp-responsive-media-gallery/public/partials/load_more_mosaic.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/wp-responsive-media-gallery/public/partials/vsz_gallery_display_front-unitegallery.php:2
- > PHP Notice
Undefined index: loadmoreitem in wp-content/plugins/wp-responsive-media-gallery/public/partials/load_more_mosaic.php on line 12
- > PHP Notice
Undefined index: galleryCategoryName in wp-content/plugins/wp-responsive-media-gallery/public/partials/load_more_mosaic.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-responsive-media-gallery/admin/partials/checkVideoExists.php:14
- > PHP Notice
Undefined index: loadmoreitem in wp-content/plugins/wp-responsive-media-gallery/public/partials/load_more.php on line 7
- > PHP Notice
Undefined index: postId in wp-content/plugins/wp-responsive-media-gallery/public/partials/load_more_mosaic.php on line 10
- > PHP Notice
Undefined index: postId in wp-content/plugins/wp-responsive-media-gallery/public/partials/load_more.php on line 11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: media-gallery, photo-gallery, gallery, gallery-plugin, image-video-gallery...
wp-responsive-media-gallery/wp-responsive-media-gallery.php 92% from 13 tests
The primary PHP file in "WP Responsive Media Gallery" version 1.1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 165 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
There were no executable files found in this plugin17,714 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 18 | 2,449 | 1,435 | 6,940 |
PHP | 30 | 756 | 1,549 | 5,131 |
CSS | 13 | 358 | 105 | 4,988 |
SVG | 1 | 0 | 0 | 655 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 16.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 7 | 9.72% |
▷ Public methods | 65 | 90.28% |
▷ Protected methods | 2 | 2.78% |
▷ Private methods | 5 | 6.94% |
Functions | 11 | |
▷ Named functions | 11 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
62 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/skins/default/arrow_grid_up.png | 0.36KB | 0.24KB | ▼ 33.33% |
public/skins/default/slider_arrow_left.png | 0.46KB | 0.18KB | ▼ 60.21% |
public/skins/default/arrows_strip_left.png | 0.19KB | 0.12KB | ▼ 35.90% |
public/themes/default/images/arrow_down_up.png | 0.23KB | 0.14KB | ▼ 38.24% |
public/skins/alexis/images/grid_handle_left.png | 0.75KB | 0.79KB | 0.00% |