84% fullscreen-galleria

Code Review | Fullscreen Galleria

WordPress plugin Fullscreen Galleria scored84%from 54 tests.

About plugin

  • Plugin page: fullscreen-galleria
  • Plugin version: 1.6.11
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Feb 28, 2012
  • Latest release: Mar 21, 2021
  • Number of updates: 94
  • Update frequency: every 35.2 days
  • Top authors: pdamsten (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active /102,813 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼7.54ms] Passed 4 tests

Analyzing server-side resources used by Fullscreen Galleria
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2136.98 ▲1.95
Dashboard /wp-admin3.50 ▲0.1946.08 ▼0.96
Posts /wp-admin/edit.php3.62 ▲0.2647.75 ▼4.52
Add New Post /wp-admin/post-new.php6.09 ▲0.2082.55 ▼26.64
Media Library /wp-admin/upload.php3.42 ▲0.1939.06 ▲6.24
Fullscreen Galleria /wp-admin/options-general.php?page=fullscreen-galleria/galleria-fs.php3.3930.60

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Fullscreen Galleria
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,980 ▲23413.68 ▼0.9510.42 ▲8.7237.08 ▼5.49
Dashboard /wp-admin2,213 ▲254.86 ▼1.0296.60 ▼7.1437.28 ▼3.48
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0334.99 ▼5.7628.78 ▼7.87
Add New Post /wp-admin/post-new.php1,517 ▼517.43 ▼5.95694.03 ▲99.0185.46 ▲28.71
Media Library /wp-admin/upload.php1,395 ▲104.22 ▲0.0295.80 ▼3.3643.45 ▼0.45
Fullscreen Galleria /wp-admin/options-general.php?page=fullscreen-galleria/galleria-fs.php1,1632.1523.9631.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fullscreen-galleria/galleria-fs.php:155

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: photography, images, galleria, gallery

fullscreen-galleria/galleria-fs.php 92% from 13 tests

"Fullscreen Galleria" version 1.6.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fullscreen-galleria.php" instead of "galleria-fs.php")

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
Success! There were no dangerous files found in this plugin11,715 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG5339,584
PHP174521,040
JavaScript45272587
CSS43224504

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity157.00
▷ Minimum class complexity157.00
▷ Maximum class complexity157.00
Average method complexity4.84
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected