83% skyboot-portfolio-gallery

Code Review | Elementor Image Gallery Plugin ( Masonry Gallery, Elementor Gallery Plugin With Captions, Elementor Portfolio Gallery Widget, Filterable Gallery )

WordPress plugin Elementor Image Gallery Plugin ( Masonry Gallery, Elementor Gallery Plugin With Captions, Elementor Portfolio Gallery Widget, Filterable Gallery ) scored83%from 54 tests.

About plugin

  • Plugin page: skyboot-portfolio...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 26, 2019
  • Latest release: May 23, 2023
  • Number of updates: 10
  • Update frequency: every 130.6 days
  • Top authors: skybootstrap (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

900+ active /6,498 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.12ms] Passed 4 tests

An overview of server-side resources used by Elementor Image Gallery Plugin ( Masonry Gallery, Elementor Gallery Plugin With Captions, Elementor Portfolio Gallery Widget, Filterable Gallery )
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.32 ▲5.14
Dashboard /wp-admin3.34 ▲0.0448.41 ▼6.93
Posts /wp-admin/edit.php3.39 ▲0.0451.31 ▲1.11
Add New Post /wp-admin/post-new.php6.03 ▲0.1491.43 ▼3.66
Media Library /wp-admin/upload.php3.27 ▲0.0435.93 ▲1.01
Add New /wp-admin/post-new.php?post_type=skyboot_portfolio6.0284.32
All Items /wp-admin/edit.php?post_type=skyboot_portfolio3.3141.26
Category /wp-admin/edit-tags.php?taxonomy=skyboot_portfolio_cat&post_type=skyboot_portfolio3.3537.60

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Elementor Image Gallery Plugin ( Masonry Gallery, Elementor Gallery Plugin With Captions, Elementor Portfolio Gallery Widget, Filterable Gallery )
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,110 ▲32413.92 ▼0.4920.37 ▲17.1946.12 ▲3.81
Dashboard /wp-admin2,231 ▲515.54 ▼0.0988.19 ▼7.5141.90 ▼3.09
Posts /wp-admin/edit.php2,142 ▲422.14 ▲0.0944.42 ▲7.5937.13 ▼0.81
Add New Post /wp-admin/post-new.php1,588 ▲5718.43 ▼4.77626.91 ▼22.6759.51 ▲7.91
Media Library /wp-admin/upload.php1,436 ▲334.25 ▼0.0796.61 ▼11.0141.30 ▼4.07
Add New /wp-admin/post-new.php?post_type=skyboot_portfolio6,23822.46874.4430.67
All Items /wp-admin/edit.php?post_type=skyboot_portfolio1,1201.9632.1432.17
Category /wp-admin/edit-tags.php?taxonomy=skyboot_portfolio_cat&post_type=skyboot_portfolio1,3132.1828.4530.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skyboot-portfolio-gallery/inc/assests-enqueue.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

skyboot-portfolio-gallery/skyboot-portfolio-gallery.php 77% from 13 tests

"Elementor Image Gallery Plugin ( Masonry Gallery, Elementor Gallery Plugin With Captions, Elementor Portfolio Gallery Widget, Filterable Gallery )" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Plugin Name: A shorter plugin name is better (currently 98 characters long instead of max. 70)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 449 characters long)

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
Success! There were no dangerous files found in this plugin3,313 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS566561,188
PHP811549799
JavaScript418096671
SVG100655

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.50
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods666.67%
▷ Protected methods333.33%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin