94% image-slider-with-description

Code Review | Image slider with description

WordPress plugin Image slider with description scored 94% from 54 tests.

About plugin

  • Plugin page: image-slider-with...
  • Plugin version: 9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.9
  • WordPress version: 5.9.2
  • First release: Nov 5, 2011
  • Latest release: Jan 1, 2022
  • Number of updates: 48
  • Update frequency: every 77.3 days
  • Top authors: gopi_plus (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active / 37,033 total downloads

Benchmarks

Plugin footprint Passed 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.09MB] [CPU: ▼291.88ms] Passed 4 tests

Server-side resources used by Image slider with description
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1455.70 ▲0.65
Dashboard /wp-admin3.52 ▲0.1235.52 ▲2.09
Posts /wp-admin/edit.php3.75 ▲0.1155.24 ▲20.26
Add New Post /wp-admin/post-new.php6.98 ▲0.0296.38 ▼1,169.37
Media Library /wp-admin/upload.php3.40 ▲0.1024.80 ▼0.87
Slider Setting /wp-admin/admin.php?page=ImgSlider3.3732.40
Image Management /wp-admin/admin.php?page=ImgSlider_image_management3.4123.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: 1 new table, 2 new options
New tables
wp_ImgSlider_plugin
New WordPress options
ImgSlider_option_1
ImgSlider_option_2

Browser metrics Passed 4 tests

This is an overview of browser requirements for Image slider with description
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,927 ▲18316.37 ▲0.6011.28 ▲5.282.50 ▲0.01
Dashboard /wp-admin2,926 ▲656.13 ▼0.04127.08 ▼14.06162.05 ▼73.87
Posts /wp-admin/edit.php2,722 ▲313.25 ▲0.0064.58 ▼0.90144.78 ▼38.52
Add New Post /wp-admin/post-new.php1,741 ▼1123.06 ▲2.18418.57 ▼88.91190.22 ▲34.07
Media Library /wp-admin/upload.php1,729 ▲285.47 ▼0.06145.86 ▲1.67245.24 ▲29.03
Slider Setting /wp-admin/admin.php?page=ImgSlider1,2732.3954.81103.54
Image Management /wp-admin/admin.php?page=ImgSlider_image_management1,4612.4156.54107.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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)
Everything seems fine, however this is by no means 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
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/image-slider-with-description/pages/image-management-add.php
    • > /wp-content/plugins/image-slider-with-description/image-slider-with-description.php
    • > /wp-content/plugins/image-slider-with-description/pages/image-management-show.php
    • > /wp-content/plugins/image-slider-with-description/pages/image-management-edit.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: slider, slideshow, image

image-slider-with-description/image-slider-with-description.php 92% from 13 tests

"Image slider with description" version 9.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 229 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,590 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP512347968
PO File2131244302
JavaScript42514259
CSS1121760
HTML1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/slide-nav-pink.png1.24KB1.41KB0.00%
images/slide-nav-purple.png1.24KB1.43KB0.00%
images/slide-nav-white.png0.85KB0.98KB0.00%
images/slide-nav-brick.png1.26KB1.46KB0.00%
images/slide-nav-green.png1.24KB1.41KB0.00%