84% drop-in-image-slideshow-gallery

Code Review | drop in image slideshow gallery

WordPress plugin drop in image slideshow gallery scored 84% from 54 tests.

About plugin

  • Plugin page: drop-in-image-sli...
  • Plugin version: 12.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Jul 30, 2009
  • Latest release: Dec 1, 2022
  • Number of updates: 76
  • Update frequency: every 64.1 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 20,642 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.63ms] Passed 4 tests

A check of server-side resources used by drop in image slideshow gallery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.54 ▼4.99
Dashboard /wp-admin3.35 ▲0.0545.85 ▼7.58
Posts /wp-admin/edit.php3.40 ▲0.0548.14 ▼2.51
Add New Post /wp-admin/post-new.php5.93 ▲0.0583.81 ▼15.44
Media Library /wp-admin/upload.php3.27 ▲0.0537.65 ▲3.89

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 12 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
DIISG_delay
DIISG_height
DIISG_width
DIISG_title
can_compress_scripts
widget_theysaidso_widget
DIISG_link
...

Browser metrics Passed 4 tests

A check of browser resources used by drop in image slideshow gallery
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.30 ▼0.951.85 ▼0.2437.99 ▼10.25
Dashboard /wp-admin2,209 ▲215.84 ▲0.92107.00 ▲1.6639.89 ▲0.06
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0039.41 ▲0.1635.96 ▲0.14
Add New Post /wp-admin/post-new.php1,533 ▲1423.49 ▲0.28606.53 ▼36.3151.46 ▼4.86
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.0894.45 ▼8.0841.03 ▼2.05

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/drop-in-image-slideshow-gallery/drop-in-image-slideshow-gallery.php:206

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: gallery, image, slideshow, drop in

drop-in-image-slideshow-gallery/drop-in-image-slideshow-gallery.php 92% from 13 tests

The main PHP file in "drop in image slideshow gallery" ver. 12.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 211 characters long)

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
No dangerous file extensions were detected420 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22519189
PO File33945158
JavaScript1121873

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected