83% pixi-image-gallery

Code Review | pixi Image Gallery

WordPress plugin pixi Image Gallery scored 83% from 54 tests.

About plugin

  • Plugin page: pixi-image-gallery
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Mar 22, 2022
  • Latest release: Nov 3, 2022
  • Number of updates: 13
  • Update frequency: every 17.4 days
  • Top authors: themeux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 827 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.04MB] [CPU: ▼3.29ms] Passed 4 tests

This is a short check of server-side resources used by pixi Image Gallery
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.26 ▼4.40
Dashboard /wp-admin3.34 ▲0.0447.91 ▼1.13
Posts /wp-admin/edit.php3.39 ▲0.0345.07 ▼4.05
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.66 ▼3.57
Media Library /wp-admin/upload.php3.26 ▲0.0336.47 ▲1.67
Add New /wp-admin/post-new.php?post_type=pixi_gallery_items3.3848.96
Category /wp-admin/edit-tags.php?taxonomy=pixi_gallery_cat&post_type=pixi_gallery_items3.2632.90
Pixi Gallerys /wp-admin/edit.php?post_type=pixi_gallery_items3.3037.37

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for pixi Image Gallery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲11714.85 ▲0.471.82 ▲0.2240.68 ▲0.67
Dashboard /wp-admin2,252 ▲615.81 ▼0.1097.07 ▼0.0540.05 ▼2.46
Posts /wp-admin/edit.php2,137 ▲452.00 ▼0.0135.43 ▼3.6035.50 ▼2.37
Add New Post /wp-admin/post-new.php1,573 ▲3923.49 ▲0.26664.26 ▼25.4674.54 ▲25.95
Media Library /wp-admin/upload.php1,437 ▲494.29 ▲0.09110.82 ▲11.6148.00 ▼0.96
Add New /wp-admin/post-new.php?post_type=pixi_gallery_items2,2967.82167.5165.59
Category /wp-admin/edit-tags.php?taxonomy=pixi_gallery_cat&post_type=pixi_gallery_items1,3142.2827.8629.30
Pixi Gallerys /wp-admin/edit.php?post_type=pixi_gallery_items1,1181.9630.7230.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pixi-image-gallery/includes/widgets/layout/layout-2.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pixi-image-gallery/includes/admin/class-pixi-helper.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pixi-image-gallery/includes/widgets/layout/layout-1.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Screenshots are stored in the /assets directory.), #2 (This is the second screen shot)
The official readme.txt is a good inspiration

pixi-image-gallery/pixi-image-gallery-lite.php 85% from 13 tests

The main file in "pixi Image Gallery" v. 1.0.4 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:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pixi-image-gallery.php" instead of "pixi-image-gallery-lite.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin6,231 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
CSS4441222,504
PHP145136842,037
SVG1001,616
JavaScript7264374

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.78
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods50
▷ Static methods36.00%
▷ Public methods4182.00%
▷ Protected methods612.00%
▷ Private methods36.00%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin