84% vc-galleria

Code Review | Visual Composer Galleria

WordPress plugin Visual Composer Galleria scored84%from 54 tests.

About plugin

  • Plugin page: vc-galleria
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Apr 11, 2017
  • Latest release: Jul 2, 2017
  • Number of updates: 15
  • Update frequency: every 5.5 days
  • Top authors: mainericiangel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,626 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.55ms] Passed 4 tests

A check of server-side resources used by Visual Composer Galleria
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.55 ▼3.74
Dashboard /wp-admin3.33 ▲0.0344.31 ▼5.91
Posts /wp-admin/edit.php3.38 ▲0.0348.65 ▲2.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0396.28 ▼2.14
Media Library /wp-admin/upload.php3.26 ▲0.0335.71 ▲1.59

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Visual Composer Galleria
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲18513.96 ▼0.475.15 ▲3.1543.08 ▼4.65
Dashboard /wp-admin2,221 ▲334.86 ▼0.03103.59 ▼11.7441.73 ▼3.38
Posts /wp-admin/edit.php2,101 ▲92.02 ▼0.0341.22 ▼0.9838.63 ▲4.92
Add New Post /wp-admin/post-new.php1,546 ▲2723.55 ▼0.04628.73 ▼68.7663.65 ▲4.11
Media Library /wp-admin/upload.php1,400 ▲124.27 ▲0.10105.28 ▲1.5145.71 ▼0.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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
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: 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 output text when accessed directly:
    • > /wp-content/plugins/vc-galleria/vc_extend.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% 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:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === vc-galleria === )
The official readme.txt might help

vc-galleria/vc_extend.php 92% from 13 tests

"Visual Composer Galleria" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vc-galleria.php" instead of "vc_extend.php")

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
Everything looks great! No dangerous files found in this plugin1,592 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript127111,102
CSS28225355
PHP21510135

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to 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
img/controls.png2.19KB0.95KB▼ 56.49%
assets/icon.png5.97KB3.30KB▼ 44.67%