74% wp-responsive-photo-gallery

Code Review | Photo Gallery Slideshow & Masonry Tiled Gallery

WordPress plugin Photo Gallery Slideshow & Masonry Tiled Gallery scored74%from 54 tests.

About plugin

  • Plugin page: wp-responsive-pho...
  • Plugin version: 1.0.15
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Feb 25, 2014
  • Latest release: Sep 17, 2023
  • Number of updates: 54
  • Update frequency: every 64.7 days
  • Top authors: nik00726 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /76,818 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.92MB] [CPU: ▲4.40ms] Passed 4 tests

Server-side resources used by Photo Gallery Slideshow & Masonry Tiled Gallery
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.38 ▲0.9146.98 ▲8.98
Dashboard /wp-admin4.23 ▲0.9350.10 ▼2.10
Posts /wp-admin/edit.php4.35 ▲0.9956.97 ▲7.13
Add New Post /wp-admin/post-new.php6.82 ▲0.92100.21 ▲7.23
Media Library /wp-admin/upload.php4.15 ▲0.9239.73 ▲5.32
Slideshow Settings /wp-admin/admin.php?page=responsive_photo_gallery_slider4.1237.79
Masonry Gallery Media /wp-admin/admin.php?page=responsive_justified_gallery_with_lightbox_media_management4.1642.42
Slideshow Preview /wp-admin/admin.php?page=responsive_photo_galleryrsp_responsive_photo_gallery_preview_slider_preview4.1238.73
Masonry Gallery Settings /wp-admin/admin.php?page=responsive_justified_gallery_with_lightbox4.1541.22
Masonry Gallery Preview /wp-admin/admin.php?page=responsive_justified_gallery_with_lightbox_media_preview4.1642.80
Slideshow Images /wp-admin/admin.php?page=responsive_photo_gallery_image_management4.1641.84

Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 63 new files
Database: 2 new tables, 9 new options
New tables
wp_gv_responsive_slider
wp_rjg_gallery
New WordPress options
widget_theysaidso_widget
rjg_settings
my_responsive_photo_gallery_slider_settings_messages
my_responsive_photo_gallery_slider_settings
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Photo Gallery Slideshow & Masonry Tiled Gallery
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲4614.34 ▼0.031.58 ▼0.6738.02 ▼4.32
Dashboard /wp-admin2,241 ▲635.56 ▼0.1692.29 ▼5.1342.89 ▼2.13
Posts /wp-admin/edit.php2,143 ▲402.14 ▲0.1140.43 ▼0.7435.75 ▼3.61
Add New Post /wp-admin/post-new.php1,565 ▲2823.11 ▲5.00580.47 ▼19.6165.42 ▲1.72
Media Library /wp-admin/upload.php1,440 ▲404.21 ▲0.0294.11 ▼14.1739.72 ▼2.65
Slideshow Settings /wp-admin/admin.php?page=responsive_photo_gallery_slider1,6033.0268.4830.05
Masonry Gallery Media /wp-admin/admin.php?page=responsive_justified_gallery_with_lightbox_media_management1,3864.5683.0067.93
Slideshow Preview /wp-admin/admin.php?page=responsive_photo_galleryrsp_responsive_photo_gallery_preview_slider_preview9832.1037.4729.10
Masonry Gallery Settings /wp-admin/admin.php?page=responsive_justified_gallery_with_lightbox1,5184.9574.0160.43
Masonry Gallery Preview /wp-admin/admin.php?page=responsive_justified_gallery_with_lightbox_media_preview1,2014.4863.7455.09
Slideshow Images /wp-admin/admin.php?page=responsive_photo_gallery_image_management1,3774.3861.2072.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie tables were found after uninstall: 2 tables
    • wp_gv_responsive_slider
    • wp_rjg_gallery
  • This plugin does not fully uninstall, leaving 9 options in the database
    • theysaidso_admin_options
    • my_responsive_photo_gallery_slider_settings
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • my_responsive_photo_gallery_slider_settings_messages
    • rjg_settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=responsive_photo_galleryrsp_responsive_photo_gallery_preview_slider_preview
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'attrs')" "TypeError: Cannot read properties of undefined (reading 'attrs')\n at Object.updateOverlay (/wp-content/plugins/wp-responsive-photo-gallery/js/jquery.gview-3.0-dev-responsive.js?ver=6.3.1:811:40)\n at Object.init (/wp-content/plugins/wp-responsive-photo-gallery/js/jquery.gview-3.0-dev-responsive.js?ver=6.3.1:1279:18)\n at HTMLUListElement.\u003Canonymous> (/wp-content/plugins/wp-responsive-photo-gallery/js/jquery.gview-3.0-dev-responsive.js?ver=6.3.1:1313:25)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at $.fn.galleryView (/wp-content/plugins/wp-responsive-photo-gallery/js/jquery.gview-3.0-dev-responsive.js?ver=6.3.1:1311:25)\n at HTMLDivElement.\u003Canonymous> (/wp-admin/admin.php?page=responsive_photo_galleryrsp_responsive_photo_gallery_preview_slider_preview:188:75)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=responsive_photo_galleryrsp_responsive_photo_gallery_preview_slider_preview:187:65)" undefined
    • > GET request to /wp-admin/admin.php?page=responsive_photo_galleryrsp_responsive_photo_gallery_preview_slider_preview
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'attrs')

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: wordpress responsive gallery, wp responsive photo slideshow, wordpress responsive photo slideshow, wordpress responsive photo gallery, wordpress responsive photo album slideshow...

wp-responsive-photo-gallery/wp-responsive-photo-gallery.php 92% from 13 tests

"Photo Gallery Slideshow & Masonry Tiled Gallery" version 1.0.15's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 209 characters long)

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
Success! There were no dangerous files found in this plugin9,303 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP21,7522285,189
JavaScript68343593,572
CSS410360542

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods330.00%
▷ Protected methods00.00%
▷ Private methods770.00%
Functions38
▷ Named functions3694.74%
▷ Anonymous functions25.26%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
38 PNG files occupy 0.27MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/themes/dark/play.png0.36KB0.21KB▼ 41.37%
images/zoom.png0.78KB0.87KB0.00%
images/controls.png2.74KB1.42KB▼ 48.29%
css/themes/light/pause-big.png0.35KB0.27KB▼ 21.19%
css/themes/light/info.png0.33KB0.21KB▼ 35.99%