84% translucent-image-slideshow-gallery

Code Review | Translucent image slideshow gallery

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

About plugin

  • Plugin page: translucent-image...
  • Plugin version: 9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Aug 23, 2009
  • Latest release: Dec 1, 2022
  • Number of updates: 74
  • Update frequency: every 65.5 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /18,322 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.81ms] Passed 4 tests

Analyzing server-side resources used by Translucent image slideshow gallery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0945.45 ▲0.74
Dashboard /wp-admin3.40 ▲0.0952.65 ▼1.77
Posts /wp-admin/edit.php3.45 ▲0.0948.10 ▼3.50
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.31 ▼9.87
Media Library /wp-admin/upload.php3.32 ▲0.0935.20 ▼4.11
Translucent slideshow /wp-admin/options-general.php?page=translucent-image-slideshow-gallery3.2931.24

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 21 new options
New WordPress options
TISG_link
TISG_dir
TISG_dir_2
theysaidso_admin_options
widget_theysaidso_widget
TISG_title
widget_recent-posts
TISG_speed
widget_recent-comments
TISG_link_3
...

Browser metrics Passed 4 tests

A check of browser resources used by Translucent image slideshow gallery
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲13813.66 ▼0.637.98 ▲6.1343.96 ▼0.65
Dashboard /wp-admin2,202 ▲255.62 ▼0.0388.96 ▼11.7341.30 ▼2.92
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0435.44 ▼4.9434.91 ▲1.30
Add New Post /wp-admin/post-new.php1,534 ▲823.15 ▼0.33671.86 ▼32.1553.46 ▼8.85
Media Library /wp-admin/upload.php1,407 ▲44.19 ▼0.0295.59 ▼11.3644.48 ▼6.03
Translucent slideshow /wp-admin/options-general.php?page=translucent-image-slideshow-gallery9622.1228.6228.75

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/translucent-image-slideshow-gallery/translucent-image-slideshow-gallery.php:303

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: slideshow, gallery, image, translucent

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

The entry point to "Translucent image slideshow gallery" version 9.1 is a PHP file that has certain tags in its header comment area
132 characters long description:
Translucent image slideshow gallery WordPress plugin will create a image slideshow. All images are animated with translucent effect.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin644 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP24216411
PO File24381120
JavaScript11420113

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Constants0
▷ Global constants00.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