90% advanced-gallery

Code Review | Pixieshot Gallery - Best WordPress Gallery Plugin

WordPress plugin Pixieshot Gallery - Best WordPress Gallery Plugin scored 90% from 54 tests.

About plugin

  • Plugin page: advanced-gallery
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: May 10, 2022
  • Latest release: May 31, 2023
  • Number of updates: 7
  • Update frequency: every 55.1 days
  • Top authors: kraftplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,073 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.46ms] Passed 4 tests

A check of server-side resources used by Pixieshot Gallery - Best WordPress Gallery Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.36 ▼7.54
Dashboard /wp-admin3.31 ▲0.0045.90 ▼8.11
Posts /wp-admin/edit.php3.36 ▲0.0050.70 ▼0.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.10 ▲11.08
Media Library /wp-admin/upload.php3.23 ▲0.0036.73 ▲2.63

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Pixieshot Gallery - Best WordPress Gallery Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9514.48 ▼0.261.82 ▼0.1942.47 ▼10.47
Dashboard /wp-admin2,206 ▲244.90 ▲0.02107.84 ▲3.3342.74 ▼1.14
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0538.86 ▼1.1133.56 ▼0.99
Add New Post /wp-admin/post-new.php1,534 ▼823.45 ▲5.16596.51 ▼6.8850.63 ▲0.34
Media Library /wp-admin/upload.php1,382 ▼94.18 ▼0.0594.09 ▼7.5141.74 ▼2.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: elementor, responsive gallery, wordpress gallery plugin, photo gallery, gallery

advanced-gallery/advanced-gallery.php 92% from 13 tests

The principal PHP file in "Pixieshot Gallery - Best WordPress Gallery Plugin" v. 1.0.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 145 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
There were no executable files found in this plugin2,166 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP173226961,676
CSS43325295
JavaScript42234190
JSON1005

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity18.09
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity3.37
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods81
▷ Static methods2125.93%
▷ Public methods6782.72%
▷ Protected methods78.64%
▷ Private methods78.64%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants12
▷ Global constants12100.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