83% elegant-responsive-content-slider

Code Review | Image Slider - Responsive jQuery Slider

WordPress plugin Image Slider - Responsive jQuery Slider scored83%from 54 tests.

About plugin

  • Plugin page: elegant-responsiv...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9.1
  • WordPress version: 6.3.1
  • First release: May 24, 2017
  • Latest release: May 26, 2022
  • Number of updates: 18
  • Update frequency: every 101.6 days
  • Top authors: moviehour (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,154 total downloads

Benchmarks

Plugin footprint 83% from 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.22MB] [CPU: ▼9.37ms] Passed 4 tests

This is a short check of server-side resources used by Image Slider - Responsive jQuery Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.21 ▼3.47
Dashboard /wp-admin3.58 ▲0.2443.78 ▼14.82
Posts /wp-admin/edit.php3.65 ▲0.3048.42 ▲0.14
Add New Post /wp-admin/post-new.php6.21 ▲0.3272.21 ▼18.39
Media Library /wp-admin/upload.php3.44 ▲0.2135.15 ▼0.79
Slider Settings /wp-admin/admin.php?page=ercs-settings3.5032.30
All Sliders /wp-admin/admin.php?page=ercs-lists3.4333.61

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Image Slider - Responsive jQuery Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,017 ▲27115.58 ▲1.131.91 ▲0.1941.90 ▼4.73
Dashboard /wp-admin2,401 ▲2136.69 ▲0.79138.09 ▲37.6739.98 ▼2.32
Posts /wp-admin/edit.php2,301 ▲2093.60 ▲1.5850.78 ▲5.9331.56 ▼3.57
Add New Post /wp-admin/post-new.php1,559 ▲2323.40 ▲0.13660.78 ▼24.0136.11 ▼18.48
Media Library /wp-admin/upload.php1,443 ▲524.42 ▲0.2597.05 ▲0.9548.89 ▲4.88
Slider Settings /wp-admin/admin.php?page=ercs-settings1,7623.3240.5448.72
All Sliders /wp-admin/admin.php?page=ercs-lists1,1593.4840.6131.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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 Passed 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
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 a smoke test targeting browser errors/issues
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ercs-lists
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: s(...).live is not a function" "TypeError: s(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/elegant-responsive-content-slider//assets/js/ercs-admin.min.js?ver=1:5:465)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ercs-lists
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: s(...).live is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Adding Slider Contents.), #2 (Elegant Slider General Settings.), #3 (Elegant Slider Font Settings.), #4 (Elegant Slider Color Settings.), #5 (Elegant Slider Advanced Settings.), #6 (Demo of the slider (Boxed View).), #7 (Demo of the slider (Full View).)
Please take inspiration from this readme.txt

elegant-responsive-content-slider/responsive-content-slider.php 85% from 13 tests

"Image Slider - Responsive jQuery Slider" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("elegant-responsive-content-slider.php" instead of "responsive-content-slider.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,558 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP852130946
CSS31054388
PO File1100114221
JavaScript30163

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity17.50
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity7.60
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods360.00%
▷ Protected methods00.00%
▷ Private methods240.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 1.10MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png50.18KB22.38KB▼ 55.40%
assets/images/controls.png2.74KB1.42KB▼ 48.29%
assets/images/ercs-buttons.png2.09KB1.35KB▼ 35.31%
screenshot-4.png49.22KB22.38KB▼ 54.52%
screenshot-3.png26.36KB12.41KB▼ 52.90%