79% filterable-photo-gallery-beaver-builder-elementor

Code Review | Xpro Gallery For Beaver Builder - Lite

WordPress plugin Xpro Gallery For Beaver Builder - Lite scored79%from 54 tests.

About plugin

  • Plugin page: filterable-photo-...
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Nov 3, 2020
  • Latest release: Aug 16, 2023
  • Number of updates: 70
  • Update frequency: every 14.5 days
  • Top authors: bbadonstnit (58.57%)xpro (42.86%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /4,194 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.38ms] Passed 4 tests

This is a short check of server-side resources used by Xpro Gallery For Beaver Builder - Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.47 ▲2.57
Dashboard /wp-admin3.31 ▼0.0444.81 ▼13.59
Posts /wp-admin/edit.php3.36 ▲0.0043.00 ▼7.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.98 ▼10.12
Media Library /wp-admin/upload.php3.23 ▲0.0032.98 ▼1.93

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Xpro Gallery For Beaver Builder - Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.28 ▼0.341.77 ▲0.3246.59 ▲9.60
Dashboard /wp-admin2,195 ▲185.48 ▼0.1387.78 ▲2.6739.86 ▼3.08
Posts /wp-admin/edit.php2,100 ▲181.95 ▼0.0433.14 ▼1.7233.15 ▼2.84
Add New Post /wp-admin/post-new.php1,533 ▲523.08 ▼0.01628.90 ▼33.7254.75 ▲4.00
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0294.23 ▲1.8640.52 ▼2.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/filterable-photo-gallery-beaver-builder-elementor/modules/tnit-gallery/includes/frontend.php
    • > /wp-content/plugins/filterable-photo-gallery-beaver-builder-elementor/modules/tnit-gallery/includes/frontend.js.php
  • 185× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/filterable-photo-gallery-beaver-builder-elementor/modules/tnit-gallery/includes/frontend.js.php on line 7
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/filterable-photo-gallery-beaver-builder-elementor/modules/tnit-gallery/includes/frontend.js.php on line 240
    • > PHP Notice
      Trying to get property 'gallery_items_spacing_medium' of non-object in wp-content/plugins/filterable-photo-gallery-beaver-builder-elementor/modules/tnit-gallery/includes/frontend.js.php on line 234
    • > PHP Notice
      Trying to get property 'responsive_breakpoint' of non-object in wp-content/plugins/filterable-photo-gallery-beaver-builder-elementor/modules/tnit-gallery/includes/frontend.js.php on line 304
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/filterable-photo-gallery-beaver-builder-elementor/modules/tnit-gallery/includes/frontend.js.php on line 212
    • > PHP Notice
      Trying to get property 'gallery_items_spacing' of non-object in wp-content/plugins/filterable-photo-gallery-beaver-builder-elementor/modules/tnit-gallery/includes/frontend.js.php on line 144
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/filterable-photo-gallery-beaver-builder-elementor/modules/tnit-gallery/includes/frontend.js.php on line 308
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/filterable-photo-gallery-beaver-builder-elementor/modules/tnit-gallery/includes/frontend.js.php on line 157
    • > PHP Notice
      Trying to get property 'nav_arrows' of non-object in wp-content/plugins/filterable-photo-gallery-beaver-builder-elementor/modules/tnit-gallery/includes/frontend.js.php on line 236
    • > PHP Notice
      Trying to get property 'nav_dots_medium' of non-object in wp-content/plugins/filterable-photo-gallery-beaver-builder-elementor/modules/tnit-gallery/includes/frontend.js.php on line 237

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: gallery image, beaver gallery addons, beaver builder, beaver builder gallery extensions, beaver builder free gallery...

filterable-photo-gallery-beaver-builder-elementor/filterable-photo-gallery-beaver-builder-elementor.php Passed 13 tests

The main PHP script in "Xpro Gallery For Beaver Builder - Lite" version 1.4.1 is automatically included on every request by WordPress
129 characters long description:
Effortlessly build responsive galleries with few clicks. Choose from multiple filters, preview styles, and unique layout options.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected5,980 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
CSS83721133,102
PHP83044142,598
JavaScript57025231
SVG30049

PHP code Passed 2 tests

Analyzing 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.52
Average class complexity25.00
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity4.84
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods25
▷ Static methods936.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/tnit-gallery/img/vimeo-play.png5.30KB1.56KB▼ 70.65%
modules/tnit-gallery/img/youtube-play.png5.06KB2.37KB▼ 53.04%
modules/tnit-gallery/img/video-play.png4.42KB1.05KB▼ 76.27%
assets/images/Logo.png15.10KB5.76KB▼ 61.83%