84% slider-factory

Code Review | Slider Factory - Responsive Photo Slider, Image Slider, Video Slider, Carousel Slideshow

WordPress plugin Slider Factory - Responsive Photo Slider, Image Slider, Video Slider, Carousel Slideshow scored84%from 54 tests.

About plugin

  • Plugin page: slider-factory
  • Plugin version: 1.3.12
  • PHP compatiblity: 4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 28, 2021
  • Latest release: Sep 6, 2023
  • Number of updates: 60
  • Update frequency: every 16.0 days
  • Top authors: FARAZFRANK (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

3,000+ active /31,795 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼5.77ms] Passed 4 tests

Analyzing server-side resources used by Slider Factory - Responsive Photo Slider, Image Slider, Video Slider, Carousel Slideshow
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1435.46 ▼6.86
Dashboard /wp-admin3.43 ▲0.1346.22 ▼2.90
Posts /wp-admin/edit.php3.48 ▲0.1346.01 ▼6.31
Add New Post /wp-admin/post-new.php6.01 ▲0.1382.09 ▼6.99
Media Library /wp-admin/upload.php3.36 ▲0.1335.74 ▼0.03
Manage Slider /wp-admin/admin.php?page=sf-manage-slider3.3842.01
Slider Factory /wp-admin/admin.php?page=sf-slider-factory3.5034.25

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 162 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
wpfrank_sf_current_version
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Slider Factory - Responsive Photo Slider, Image Slider, Video Slider, Carousel Slideshow
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲15513.40 ▼0.977.58 ▲5.8943.83 ▼2.78
Dashboard /wp-admin2,218 ▲385.57 ▲0.0188.13 ▼7.6945.20 ▲1.29
Posts /wp-admin/edit.php2,126 ▲261.98 ▼0.0137.13 ▼4.4436.42 ▼3.93
Add New Post /wp-admin/post-new.php1,554 ▲2617.95 ▼4.96601.47 ▲6.5277.53 ▲12.92
Media Library /wp-admin/upload.php1,423 ▲234.28 ▲0.07103.45 ▲1.2942.54 ▼0.77
Manage Slider /wp-admin/admin.php?page=sf-manage-slider1,0913.5450.7949.42
Slider Factory /wp-admin/admin.php?page=sf-slider-factory2,21010.70308.51127.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_theysaidso_widget
    • wpfrank_sf_current_version
    • wpfrank_sf_last_version
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sf-slider-factory
    • > Javascript (severe) in unknown
    /wp-content/plugins/slider-factory/admin/assets/bootstrap-5.0.0/js/bootstrap.js?ver=4.5.3 3431:102 Uncaught SyntaxError: Unexpected identifier 'gi'

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #2 (Layout 2), #3 (Layout 3), #4 (Layout 4), #5 (Layout 5), #6 (Layout 6), #7 (Layout 7), #8 (Layout 8), #9 (Layout 9), #10 (Layout 10), #11 (Layout 11), #12 (Layout 12)
You can take inspiration from this readme.txt

slider-factory/slider-factory.php Passed 13 tests

"Slider Factory - Responsive Photo Slider, Image Slider, Video Slider, Carousel Slideshow" version 1.3.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Slider factory provides multiple slider layouts in single dashboard.

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
Good job! No executable or dangerous file extensions detected61,307 lines of code in 110 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript183,4482,12017,980
CSS183,82042615,946
SVG110410,716
PHP297135495,575
Sass16503344,740
LESS16500474,706
PO File28401,3121,644

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
5 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
layouts/assets/9/icons/pause_diapo.png2.15KB0.20KB▼ 90.79%
layouts/assets/9/icons/fullscreen.png7.05KB1.75KB▼ 75.13%
layouts/assets/9/icons/play_diapo.png2.41KB0.98KB▼ 59.57%
layouts/assets/4/images/camera_skins.png23.63KB11.65KB▼ 50.70%
admin/assets/images/slider-factory-pro-banner.png113.88KB111.79KB▼ 1.83%