82% responsive-jquery-slider

Code Review | Responsive jQuery Slider

WordPress plugin Responsive jQuery Slider scored 82% from 54 tests.

About plugin

  • Plugin page: responsive-jquery...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 5.8.1
  • First release: Jan 22, 2014
  • Latest release: Apr 17, 2015
  • Number of updates: 17
  • Update frequency: every 26.5 days
  • Top authors: chrdesigner (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 10,003 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.36MB] [CPU: ▼129.98ms] Passed 4 tests

Server-side resources used by Responsive jQuery Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.11 ▲0.3845.93 ▲22.44
Dashboard /wp-admin3.42 ▲0.3653.29 ▲8.78
Posts /wp-admin/edit.php3.52 ▲0.4157.03 ▲17.40
Add New Post /wp-admin/post-new.php5.78 ▲0.34109.14 ▼557.70
Media Library /wp-admin/upload.php3.36 ▲0.3647.85 ▲11.60
Add New /wp-admin/post-new.php?post_type=responsive-slider3.4861.91
RJS Settings /wp-admin/themes.php?page=rjs_settings3.3443.27
Sliders /wp-admin/edit.php?post_type=responsive-slider3.3953.26

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Responsive jQuery Slider: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,886 ▲29016.56 ▲0.6316.25 ▲7.2148.06 ▼4.13
Dashboard /wp-admin3,024 ▲906.73 ▲0.73144.62 ▼9.35137.41 ▲12.56
Posts /wp-admin/edit.php2,821 ▲822.73 ▲0.0469.29 ▲0.88116.57 ▲17.73
Add New Post /wp-admin/post-new.php1,728 ▲4518.57 ▼0.19420.07 ▲32.38123.35 ▲8.24
Media Library /wp-admin/upload.php1,889 ▲795.13 ▲0.12146.15 ▼6.70152.49 ▲25.93
Add New /wp-admin/post-new.php?post_type=responsive-slider4,8538.35236.24137.83
RJS Settings /wp-admin/themes.php?page=rjs_settings2,9554.0081.51134.55
Sliders /wp-admin/edit.php?post_type=responsive-slider1,4802.6663.0483.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/themes.php?page=rjs_settings
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/themes.php?page=rjs_settings
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-jquery-slider/custom-post-responsive-jquery-slider.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/responsive-jquery-slider/responsive-jquery-slider.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/post-new.php?post_type=responsive-slider
    • > Javascript (severe) in unknown
    /wp-includes/js/tinymce/themes/modern/theme.min.js?wp-mce-49110-20201110 0:29282 Uncaught TypeError: Cannot read properties of undefined (reading 'setAttribute')

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Side flap Slider), #2 (List all Sliders), #3 (Add New Slider), #4 (Side flap RJS Settings), #5 (Responsive jQuery Slider - Settings), #6 (Final Result)
You can look at the official readme.txt

responsive-jquery-slider/responsive-jquery-slider.php Passed 13 tests

"Responsive jQuery Slider" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
92 characters long description:
Responsive jQuery Slider - jQuery Cycle 2 with Animate.css with some really cool animations.

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
Success! There were no dangerous files found in this plugin3,428 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP2133601,612
JavaScript4229741,252
PO File3459787564

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.76MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/shadow.png5.53KB7.79KB0.00%
screenshot-6.png216.02KB71.25KB▼ 67.01%
screenshot-5.png59.28KB19.41KB▼ 67.25%
images/plus.png0.14KB0.13KB▼ 6.29%
images/icons/linkedin.png3.40KB2.28KB▼ 32.88%