93% nextgen-scrollgallery

Code Review | NextGEN Scroll Gallery

WordPress plugin NextGEN Scroll Gallery scored 93% from 54 tests.

About plugin

  • Plugin page: nextgen-scrollgal...
  • Plugin version: 1.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.2.2
  • WordPress version: 5.8.1
  • First release: Jun 25, 2011
  • Latest release: Nov 23, 2013
  • Number of updates: 127
  • Update frequency: every 6.9 days
  • Top authors: bmodesign2 (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

4,000+ active / 209,255 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼445.13ms] Passed 4 tests

Server-side resources used by NextGEN Scroll Gallery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.01 ▲0.2936.37 ▲16.09
Dashboard /wp-admin3.25 ▲0.2046.56 ▼6.61
Posts /wp-admin/edit.php3.36 ▲0.2646.90 ▲2.71
Add New Post /wp-admin/post-new.php5.61 ▲0.1896.38 ▼1,782.06
Media Library /wp-admin/upload.php3.19 ▲0.1944.57 ▲5.44

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 1 new option
New WordPress options
SG_Options

Browser metrics Passed 4 tests

An overview of browser requirements for NextGEN Scroll Gallery
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,741 ▲14517.92 ▲2.3821.30 ▲9.3745.74 ▼2.51
Dashboard /wp-admin3,007 ▲766.99 ▲0.99162.39 ▲6.54105.81 ▼10.06
Posts /wp-admin/edit.php2,776 ▲373.15 ▲0.4574.46 ▲9.6091.40 ▲9.37
Add New Post /wp-admin/post-new.php1,642 ▼3022.66 ▲3.88310.68 ▼139.98141.88 ▲35.56
Media Library /wp-admin/upload.php1,844 ▲375.83 ▲0.78173.64 ▲27.86123.42 ▼5.21

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 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/nextgen-scrollgallery/nggScrollGallery.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (27 tag instead of maximum 10)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === nextgen-scrollgallery === )
  • Screenshots: These screenshots require images: #1 (Screenshot NextGen Scroll Gallery Example - Design Photobook), #2 (Screenshot NextGen Scroll Gallery Example - Design Shadow), #3 (Screenshot NextGen Scroll Gallery Example - Design Shadow - portrait mode), #4 (Screenshot NextGen Scroll Gallery Example), #5 (Screenshot NextGen Scroll Gallery Example), #6 (Screenshot NextGen Scroll Gallery Example - Admin interface)
You can look at the official readme.txt

nextgen-scrollgallery/nggScrollGallery.php 85% from 13 tests

"NextGEN Scroll Gallery" version 1.8.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nextgen-scrollgallery.php" instead of "nggScrollGallery.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 189 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
Everything looks great! No dangerous files found in this plugin1,699 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript395107779
PHP17451659
CSS64280261

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity156.00
▷ Minimum class complexity156.00
▷ Maximum class complexity156.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin