83% pixel-gallery

Code Review | Pixel Gallery Addons for Elementor - Easy Grid, Creative Gallery, Drag and Drop Grid, Custom Grid Layout, Portfolio Gallery

WordPress plugin Pixel Gallery Addons for Elementor - Easy Grid, Creative Gallery, Drag and Drop Grid, Custom Grid Layout, Portfolio Gallery scored83%from 54 tests.

About plugin

  • Plugin page: pixel-gallery
  • Plugin version: 1.4.6
  • PHP compatiblity: 7.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2022
  • Latest release: Nov 9, 2023
  • Number of updates: 38
  • Update frequency: every 12.0 days
  • Top authors: mohammaadfarid (73.68%)bdthemes (28.95%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /6,160 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.07MB] [CPU: ▼1.65ms] Passed 4 tests

Analyzing server-side resources used by Pixel Gallery Addons for Elementor - Easy Grid, Creative Gallery, Drag and Drop Grid, Custom Grid Layout, Portfolio Gallery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.08 ▲5.67
Dashboard /wp-admin3.37 ▲0.0749.15 ▲2.00
Posts /wp-admin/edit.php3.49 ▲0.1346.04 ▼3.24
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.97 ▼6.13
Media Library /wp-admin/upload.php3.30 ▲0.0734.59 ▲0.77

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 375 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Pixel Gallery Addons for Elementor - Easy Grid, Creative Gallery, Drag and Drop Grid, Custom Grid Layout, Portfolio Gallery: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲4914.37 ▲0.231.66 ▲0.0943.27 ▲4.00
Dashboard /wp-admin2,198 ▲215.49 ▼0.1684.03 ▼13.8739.18 ▼2.65
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0135.70 ▼7.3633.06 ▼1.67
Add New Post /wp-admin/post-new.php1,532 ▲622.91 ▼0.80645.33 ▼28.5761.03 ▲3.02
Media Library /wp-admin/upload.php1,409 ▲94.22 ▲0.0898.82 ▼0.1943.79 ▲1.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PixelGallery_Settings_API' not found in wp-content/plugins/pixel-gallery/admin/admin-settings.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/pixel-gallery/admin/optimizer/vendor/matthiasmullie/path-converter/src/NoConverter.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/pixel-gallery/includes/helper.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/pixel-gallery/admin/optimizer/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/pixel-gallery/admin/optimizer/vendor/matthiasmullie/minify/src/Exceptions/FileImportException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/pixel-gallery/admin/optimizer/vendor/matthiasmullie/minify/src/CSS.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function PixelGallery\\add_action() in wp-content/plugins/pixel-gallery/admin/admin-notice.php:23
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/pixel-gallery/admin/optimizer/vendor/matthiasmullie/path-converter/src/Converter.php:19
    • > PHP Warning
      Use of undefined constant BDTPG__FILE__ - assumed 'BDTPG__FILE__' (this will throw an Error in a future version of PHP) in wp-content/plugins/pixel-gallery/includes/helper.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/pixel-gallery/includes/helper.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

pixel-gallery/pixel-gallery.php 85% from 13 tests

This is the main PHP file of "Pixel Gallery Addons for Elementor - Easy Grid, Creative Gallery, Drag and Drop Grid, Custom Grid Layout, Portfolio Gallery" version 1.4.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 262 characters long)
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0.0" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected59,581 lines of code in 353 files:
LanguageFilesBlank linesComment linesLines of code
PHP1825,3913,11128,969
JavaScript202,91914522,349
SVG3842125,533
CSS1050112,411
JSON400214
YAML21156
Markdown121038
Dockerfile12011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity9.92
▷ Minimum class complexity1.00
▷ Maximum class complexity126.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces104
Interfaces1
Traits3
Classes120
▷ Abstract classes65.00%
▷ Concrete classes11495.00%
▷ Final classes10.88%
Methods876
▷ Static methods475.37%
▷ Public methods71481.51%
▷ Protected methods14616.67%
▷ Private methods161.83%
Functions48
▷ Named functions2347.92%
▷ Anonymous functions2552.08%
Constants28
▷ Global constants2382.14%
▷ Class constants517.86%
▷ Public constants5100.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 files were detected