67% dynamic-image-slider

Code Review | dynamic Image Slider

WordPress plugin dynamic Image Slider scored 67% from 54 tests.

About plugin

  • Plugin page: dynamic-image-slider
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: May 11, 2020
  • Latest release: Nov 6, 2022
  • Number of updates: 18
  • Update frequency: every 51.8 days
  • Top authors: vaibhav31gangrade (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,348 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.53ms] Passed 4 tests

Server-side resources used by dynamic Image Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2146.51 ▼0.28
Dashboard /wp-admin3.36 ▲0.0654.07 ▲7.01
Posts /wp-admin/edit.php3.48 ▲0.1250.35 ▼0.28
Add New Post /wp-admin/post-new.php5.94 ▲0.0687.85 ▼12.18
Media Library /wp-admin/upload.php3.29 ▲0.0637.40 ▲2.62
Display Settings /wp-admin/admin.php?page=slider_post_settings3.2533.21
Add New /wp-admin/post-new.php?post_type=simple-slider-image3.4147.24
Dynamic Iamge Slider /wp-admin/edit.php?post_type=simple-slider-image3.3342.91

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
Slider_settings
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for dynamic Image Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲15314.70 ▲0.322.21 ▲0.1941.03 ▲0.10
Dashboard /wp-admin2,246 ▲554.84 ▼0.04105.99 ▲4.3743.45 ▼0.71
Posts /wp-admin/edit.php2,132 ▲431.96 ▼0.0336.05 ▼0.7739.16 ▲6.40
Add New Post /wp-admin/post-new.php1,397 ▼11720.70 ▲3.17578.39 ▼112.6367.90 ▲9.71
Media Library /wp-admin/upload.php1,428 ▲464.14 ▼0.0295.91 ▼3.7446.72 ▲1.42
Display Settings /wp-admin/admin.php?page=slider_post_settings8742.0227.6832.81
Add New /wp-admin/post-new.php?post_type=simple-slider-image2,1857.73159.9566.44
Dynamic Iamge Slider /wp-admin/edit.php?post_type=simple-slider-image1,1051.9332.6236.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • Slider_settings
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=slider_post_settings
    • > Notice in wp-content/plugins/dynamic-image-slider/include/admin_options_form.php+62
    Undefined variable: settingDataUpdate
    • > GET request to /wp-admin/admin.php?page=slider_post_settings
    • > Notice in wp-content/plugins/dynamic-image-slider/include/admin_options_form.php+55
    Trying to get property 'slider_img_per_page' of non-object
    • > GET request to /wp-admin/admin.php?page=slider_post_settings
    • > Notice in wp-content/plugins/dynamic-image-slider/include/admin_options_form.php+57
    Trying to get property 'Slider_Timer' of non-object
    • > GET request to /wp-admin/admin.php?page=slider_post_settings
    • > Notice in wp-content/plugins/dynamic-image-slider/include/admin_options_form.php+59
    Trying to get property 'border_color' of non-object
    • > GET request to /wp-admin/admin.php?page=slider_post_settings
    • > Notice in wp-content/plugins/dynamic-image-slider/include/admin_options_form.php+62
    Trying to get property 'border_width' of non-object

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=slider_post_settings
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=slider_post_settings 187 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Add a description for screenshot #1 in dynamic-image-slider/assets to your readme.txt
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

dynamic-image-slider/index.php 85% from 13 tests

"dynamic Image Slider" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 185 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("dynamic-image-slider.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin325 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP78459325

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin