84% pixelating-image-slideshow-gallery

Code Review | Pixelating image slideshow gallery

WordPress plugin Pixelating image slideshow gallery scored84%from 54 tests.

About plugin

  • Plugin page: pixelating-image-...
  • Plugin version: 8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2010
  • Latest release: Dec 1, 2022
  • Number of updates: 54
  • Update frequency: every 82.1 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /8,371 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.07ms] Passed 4 tests

Analyzing server-side resources used by Pixelating image slideshow gallery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.46 ▼1.54
Dashboard /wp-admin3.32 ▼0.0247.11 ▼10.92
Posts /wp-admin/edit.php3.37 ▲0.0247.87 ▲2.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.21 ▼6.34
Media Library /wp-admin/upload.php3.24 ▲0.0233.47 ▼1.48
Pixelating image slideshow /wp-admin/options-general.php?page=pixelating-image-slideshow-gallery3.2833.95

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: 1 new table, 12 new options
New tables
wp_pisg_superb_gallery
New WordPress options
db_upgraded
widget_recent-posts
pisg_random
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
pisg_maxsquare
theysaidso_admin_options
pisg_type
pisg_title
...

Browser metrics Passed 4 tests

Pixelating image slideshow gallery: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.09 ▼0.502.01 ▲0.4343.43 ▲1.26
Dashboard /wp-admin2,193 ▲165.50 ▼0.0880.23 ▼4.6039.96 ▲2.06
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0534.24 ▼2.7932.50 ▼9.16
Add New Post /wp-admin/post-new.php1,540 ▲1418.39 ▼5.09639.96 ▼19.4867.38 ▲11.77
Media Library /wp-admin/upload.php1,395 ▼84.20 ▲0.0099.42 ▲0.1542.51 ▲0.43
Pixelating image slideshow /wp-admin/options-general.php?page=pixelating-image-slideshow-gallery1,0072.0328.8127.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/pixelating-image-slideshow-gallery/pixelating-image-slideshow-gallery.php
    • > /wp-content/plugins/pixelating-image-slideshow-gallery/pages/image-management-edit.php
    • > /wp-content/plugins/pixelating-image-slideshow-gallery/pages/image-management-show.php
    • > /wp-content/plugins/pixelating-image-slideshow-gallery/pages/image-setting.php
    • > /wp-content/plugins/pixelating-image-slideshow-gallery/pages/image-management-add.php

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 Passed 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
4 plugin tags: slideshow, pixelating, gallery, image

pixelating-image-slideshow-gallery/pixelating-image-slideshow-gallery.php Passed 13 tests

The main PHP script in "Pixelating image slideshow gallery" version 8.0 is automatically included on every request by WordPress
137 characters long description:
This is your normal hyperlinked image slideshow, but in IE the added images are "pixelated" into view. And its good cross browser script.

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,224 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP68446899
PO File2116171270
JavaScript13055

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/image-icon.png0.61KB0.66KB0.00%