94% gallery-with-bootstrap-for-elementor

Code Review | bWave Touch Slider Gallery with Bootstrap for Elementor

WordPress plugin bWave Touch Slider Gallery with Bootstrap for Elementor scored 94% from 54 tests.

About plugin

  • Plugin page: gallery-with-boot...
  • Plugin version: 0.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.2
  • WordPress version: 5.8.1
  • First release: Aug 26, 2019
  • Latest release: Aug 27, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: erwanpia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 367 total downloads

Benchmarks

Plugin footprint Passed 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: ▼139.45ms] Passed 4 tests

An overview of server-side resources used by bWave Touch Slider Gallery with Bootstrap for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0232.82 ▼1.34
Dashboard /wp-admin3.08 ▲0.0249.20 ▲3.29
Posts /wp-admin/edit.php3.13 ▲0.0252.03 ▲12.81
Add New Post /wp-admin/post-new.php5.43 ▲0.0086.73 ▼563.32
Media Library /wp-admin/upload.php3.02 ▲0.0237.04 ▲3.56

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for bWave Touch Slider Gallery with Bootstrap for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,701 ▲10515.87 ▲0.358.67 ▼0.0249.73 ▲2.76
Dashboard /wp-admin2,995 ▲585.91 ▼0.23148.33 ▼12.56118.44 ▲2.38
Posts /wp-admin/edit.php2,762 ▲232.69 ▲0.0076.73 ▲10.1298.39 ▲3.41
Add New Post /wp-admin/post-new.php1,699 ▲1618.76 ▲0.41374.13 ▼27.15125.08 ▲10.40
Media Library /wp-admin/upload.php1,830 ▲235.03 ▲0.04173.35 ▲16.04136.73 ▲13.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-with-bootstrap-for-elementor/gallery-with-bootstrap-for-elementor.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: slideshow, gallery, popin, responsive slider, elementor...

gallery-with-bootstrap-for-elementor/gallery-with-bootstrap-for-elementor.php Passed 13 tests

The main PHP file in "bWave Touch Slider Gallery with Bootstrap for Elementor" ver. 0.7 adds more information about the plugin and also serves as the entry point for this plugin
59 characters long description:
Minimalist popin touch enabled gallery slider for Elementor

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected333 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP245173333

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity8.00
▷ Minimum class complexity7.00
▷ Maximum class complexity9.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1487.50%
▷ Protected methods212.50%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 1.17MB with 0.74MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png386.64KB128.86KB▼ 66.67%
screenshot-3.png449.27KB184.84KB▼ 58.86%
screenshot-2.png362.12KB129.04KB▼ 64.37%