84% full-screen-galleries

Code Review | Full Screen Galleries

WordPress plugin Full Screen Galleries scored84%from 54 tests.

About plugin

  • Plugin page: full-screen-galle...
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3
  • WordPress version: 6.3.1
  • First release: Mar 16, 2021
  • Latest release: Sep 18, 2023
  • Number of updates: 11
  • Update frequency: every 83.3 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /1,341 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 gracefully, with no errors

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

A check of server-side resources used by Full Screen Galleries
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.21 ▼3.54
Dashboard /wp-admin3.31 ▲0.0144.47 ▼6.69
Posts /wp-admin/edit.php3.36 ▲0.0046.08 ▲0.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.15 ▼9.92
Media Library /wp-admin/upload.php3.23 ▲0.0037.07 ▲5.51

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Full Screen Galleries
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.48 ▲0.101.80 ▼0.1742.18 ▼2.28
Dashboard /wp-admin2,206 ▲155.91 ▲0.0298.21 ▼6.6238.96 ▼6.30
Posts /wp-admin/edit.php2,092 ▼02.02 ▲0.0240.88 ▲3.0533.88 ▲0.37
Add New Post /wp-admin/post-new.php1,533 ▲1622.87 ▲5.27645.95 ▼30.2550.61 ▼9.24
Media Library /wp-admin/upload.php1,391 ▲34.25 ▼0.0398.60 ▲1.5143.38 ▼0.30

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/full-screen-galleries/ajax-actions.php:130
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/full-screen-galleries/full-screen-galleries.php:33

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: gallery, automatic, media, images

full-screen-galleries/full-screen-galleries.php 92% from 13 tests

Analyzing the main PHP file in "Full Screen Galleries" version 1.3
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin678 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript188137306
CSS1268208
PHP22364164

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin