83% infinity-image-gallery

Code Review | Wordpress Infinite Gallery - Infinite Scrolling Image Gallery

WordPress plugin Wordpress Infinite Gallery - Infinite Scrolling Image Gallery scored83%from 54 tests.

About plugin

  • Plugin page: infinity-image-ga...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: Jul 15, 2021
  • Latest release: Jul 15, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Robiulawal40 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /509 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼1.96ms] Passed 4 tests

An overview of server-side resources used by Wordpress Infinite Gallery - Infinite Scrolling Image Gallery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1838.78 ▲0.62
Dashboard /wp-admin3.48 ▲0.1853.51 ▼0.11
Posts /wp-admin/edit.php3.59 ▲0.2446.38 ▼0.36
Add New Post /wp-admin/post-new.php6.06 ▲0.1785.38 ▼7.01
Media Library /wp-admin/upload.php3.40 ▲0.1734.80 ▼0.36
Add New Gallery /wp-admin/post-new.php?post_type=infinite_gallery3.4240.10
All Galleries /wp-admin/edit.php?post_type=infinite_gallery3.4435.26

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wordpress Infinite Gallery - Infinite Scrolling Image Gallery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.29 ▼0.921.66 ▼0.1743.09 ▼3.87
Dashboard /wp-admin2,233 ▲454.86 ▼0.19115.03 ▲11.1741.95 ▼1.91
Posts /wp-admin/edit.php2,116 ▲272.03 ▼0.1434.04 ▼6.5635.07 ▼1.09
Add New Post /wp-admin/post-new.php1,556 ▲4222.91 ▲5.41646.31 ▼61.2554.41 ▼3.82
Media Library /wp-admin/upload.php1,409 ▲214.23 ▲0.0395.85 ▼13.1941.15 ▼2.80
Add New Gallery /wp-admin/post-new.php?post_type=infinite_gallery2,1694.1881.1837.69
All Galleries /wp-admin/edit.php?post_type=infinite_gallery1,0772.0031.2629.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=infinite_gallery
    • > Notice in wp-content/plugins/infinity-image-gallery/admin/class-gallery-image-list-table.php+154
    Undefined index: orderby
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=infinite_gallery
    • > Notice in wp-content/plugins/infinity-image-gallery/admin/class-gallery-image-list-table.php+155
    Undefined index: order

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #5 (Wordpress Infinite Gallery - Mosaic View (Premium version)), #6 (Wordpress Infinite Gallery - Shortcode popup), #7 (Wordpress Infinite Gallery - Galleries list)
  • Tags: You are using too many tags: 13 tag instead of maximum 10
  • Contributors: Contributors not specified
The official readme.txt might help

infinity-image-gallery/infinity-image-gallery.php 85% from 13 tests

The main file in "Wordpress Infinite Gallery - Infinite Scrolling Image Gallery" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • 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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,318 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP71663991,001
JavaScript53755185
CSS31613132

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity22.25
▷ Minimum class complexity11.00
▷ Maximum class complexity48.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods46
▷ Static methods12.17%
▷ Public methods4495.65%
▷ Protected methods00.00%
▷ Private methods24.35%
Functions17
▷ Named functions1694.12%
▷ Anonymous functions15.88%
Constants8
▷ Global constants8100.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
PNG images were not found in this plugin