99% mosaic-gallery-for-elementor

Code Review | Mosaic Gallery Addon for Elementor

WordPress plugin Mosaic Gallery Addon for Elementor scored 99% from 54 tests.

About plugin

  • Plugin page: mosaic-gallery-fo...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 5.9.2
  • First release: Nov 8, 2018
  • Latest release: May 21, 2019
  • Number of updates: 9
  • Update frequency: every 21.6 days
  • Top authors: themeofwp.com (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

700+ active / 6,938 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.35MB] [CPU: ▼301.45ms] Passed 4 tests

Server-side resources used by Mosaic Gallery Addon for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0254.30 ▲1.83
Dashboard /wp-admin3.28 ▼0.1424.64 ▼10.12
Posts /wp-admin/edit.php3.33 ▼0.3127.51 ▼10.77
Add New Post /wp-admin/post-new.php6.06 ▼0.9283.63 ▼1,181.99
Media Library /wp-admin/upload.php3.28 ▼0.0221.77 ▼2.93

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Mosaic Gallery Addon for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5115.85 ▲0.235.74 ▼0.842.66 ▲0.48
Dashboard /wp-admin2,892 ▲346.09 ▼0.10121.02 ▼44.79220.98 ▲55.75
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0164.39 ▼32.53139.43 ▼21.69
Add New Post /wp-admin/post-new.php1,711 ▼821.28 ▲4.39438.42 ▼8.13218.74 ▲55.96
Media Library /wp-admin/upload.php1,692 ▼65.50 ▼0.01148.30 ▼8.51242.02 ▲53.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (/assets/screenshot-1.jpg)
You can look at the official readme.txt

mosaic-gallery-for-elementor/elementor-mosaic-gallery.php 85% from 13 tests

"Mosaic Gallery Addon for Elementor" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mosaic-gallery-for-elementor.php" instead of "elementor-mosaic-gallery.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,288 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS3536153,414
JavaScript411929731
PHP440156143

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.08
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods753.85%
▷ Protected methods323.08%
▷ Private methods323.08%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected