84% vc-gallery

Code Review | Easy Gallery Management - ( Password protected, Masonary layout, Share and download gallery image )

WordPress plugin Easy Gallery Management - ( Password protected, Masonary layout, Share and download gallery image ) scored84%from 54 tests.

About plugin

  • Plugin page: vc-gallery
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2
  • WordPress version: 6.3.1
  • First release: May 31, 2018
  • Latest release: Apr 5, 2023
  • Number of updates: 50
  • Update frequency: every 35.4 days
  • Top authors: kinjaldalwadi (82%)viitorcloudvc (18%)kinjaldalwadivc (4%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,735 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.42ms] Passed 4 tests

Server-side resources used by Easy Gallery Management - ( Password protected, Masonary layout, Share and download gallery image )
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.49 ▼1.74
Dashboard /wp-admin3.33 ▲0.0343.39 ▼6.17
Posts /wp-admin/edit.php3.38 ▲0.0249.89 ▲3.79
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.26 ▼6.59
Media Library /wp-admin/upload.php3.25 ▲0.0237.61 ▲0.81
Gallery /wp-admin/edit.php?post_type=vc_gallery3.2935.11
Add New /wp-admin/post-new.php?post_type=vc_gallery3.3846.56
Welcome to Easy Gallery Management /wp-admin/index.php?page=welcome-vcgallery3.2230.05

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Easy Gallery Management - ( Password protected, Masonary layout, Share and download gallery image )
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲10413.80 ▼0.588.77 ▲6.5745.64 ▼0.53
Dashboard /wp-admin2,240 ▲554.82 ▼1.0897.46 ▼19.1038.16 ▼4.81
Posts /wp-admin/edit.php2,123 ▲342.06 ▲0.0539.86 ▲1.5732.99 ▼3.91
Add New Post /wp-admin/post-new.php1,559 ▲2623.23 ▲0.03673.67 ▲11.5653.60 ▼3.55
Media Library /wp-admin/upload.php1,416 ▲314.13 ▼0.06109.03 ▲6.8048.61 ▲4.75
Gallery /wp-admin/edit.php?post_type=vc_gallery1,1271.9431.0230.96
Add New /wp-admin/post-new.php?post_type=vc_gallery2,5167.79163.3365.41
Welcome to Easy Gallery Management /wp-admin/index.php?page=welcome-vcgallery8762.1825.2637.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vc-gallery/vcgallery.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/vc-gallery/single-gallery.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: easy gallery, gallery, easy gallery management, gallery with masonary layout, share and download gallery image...

vc-gallery/vcgallery.php 85% from 13 tests

The primary PHP file in "Easy Gallery Management - ( Password protected, Masonary layout, Share and download gallery image )" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("vc-gallery.php" instead of "vcgallery.php")
  • Plugin Name: A shorter plugin name is better (currently 99 characters long instead of max. 70)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,298 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS345161,054
PHP22617182
SVG10047
JavaScript33815

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin