78% image-gallery-vertical-bar

Code Review | Image Gallery Vertical Bar

WordPress plugin Image Gallery Vertical Bar scored78%from 54 tests.

About plugin

  • Plugin page: image-gallery-ver...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Jan 20, 2016
  • Latest release: Jan 20, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: module.express (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,056 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.14ms] Passed 4 tests

A check of server-side resources used by Image Gallery Vertical Bar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.29 ▼11.19
Dashboard /wp-admin3.35 ▲0.0448.30 ▼2.69
Posts /wp-admin/edit.php3.40 ▲0.0447.87 ▼7.76
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.34 ▼3.25
Media Library /wp-admin/upload.php3.27 ▲0.0434.15 ▼6.34
Add New /wp-admin/post-new.php?post_type=gallery_vertical_bar3.3952.68
All Image /wp-admin/edit.php?post_type=gallery_vertical_bar3.3143.23
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_igvb_slider-category&post_type=gallery_vertical_bar3.2635.07
Gallery showcases /wp-admin/edit.php?post_type=gallery_vertical_bar&page=responsive_gallery-vertical-bar-submenu-page3.2431.93

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Image Gallery Vertical Bar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲13313.55 ▼0.7410.11 ▲8.1541.71 ▼0.05
Dashboard /wp-admin2,233 ▲565.66 ▼0.1986.68 ▼39.0142.72 ▼11.85
Posts /wp-admin/edit.php2,138 ▲382.04 ▼0.1137.23 ▼4.4734.05 ▼1.37
Add New Post /wp-admin/post-new.php1,558 ▲3023.31 ▲0.29677.64 ▼24.5949.70 ▼4.13
Media Library /wp-admin/upload.php1,435 ▲324.16 ▼0.0696.62 ▼9.2945.00 ▼0.60
Add New /wp-admin/post-new.php?post_type=gallery_vertical_bar2,3397.91176.0268.50
All Image /wp-admin/edit.php?post_type=gallery_vertical_bar1,1161.9730.0630.01
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_igvb_slider-category&post_type=gallery_vertical_bar1,2922.1227.7333.95
Gallery showcases /wp-admin/edit.php?post_type=gallery_vertical_bar&page=responsive_gallery-vertical-bar-submenu-page8132.0024.5227.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-gallery-vertical-bar/image-gallery-vertical-bar.php:407
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-gallery-vertical-bar/igvb_gallery_admin_settings_center.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_post_thumbnail() in wp-content/plugins/image-gallery-vertical-bar/designs/design-1.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=gallery_vertical_bar&page=responsive_gallery-vertical-bar-submenu-page
    • > Network (severe)
    wp-content/plugins/image-gallery-vertical-bar/images/design-1.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Designs Views from admin side), #2 (Catagroies shortcode)
Please take inspiration from this readme.txt

image-gallery-vertical-bar/image-gallery-vertical-bar.php Passed 13 tests

Analyzing the main PHP file in "Image Gallery Vertical Bar" version 1.0
46 characters long description:
A simple Responsive Image gallery vertical bar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin5,264 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,3398044,736
PHP37042340
CSS22317188

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/d17.png5.38KB3.32KB▼ 38.24%
css/t01.png1.58KB0.74KB▼ 53.49%