78% cslider

Code Review | cSlider

WordPress plugin cSlider scored78%from 54 tests.

About plugin

  • Plugin page: cslider
  • Plugin version: 2.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-3.2.1
  • WordPress version: 6.3.1
  • First release: Jan 23, 2012
  • Latest release: Jun 4, 2012
  • Number of updates: 71
  • Update frequency: every 1.9 days
  • Top authors: julian.weinert (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /15,368 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼15.47ms] Passed 4 tests

Analyzing server-side resources used by cSlider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.35 ▼10.12
Dashboard /wp-admin3.32 ▲0.0148.09 ▼8.32
Posts /wp-admin/edit.php3.37 ▲0.0148.83 ▼3.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.59 ▼38.23
Media Library /wp-admin/upload.php3.24 ▲0.0135.13 ▼5.21
cSlider /wp-admin/options-general.php?page=cslider/cslider.php3.1831.02

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 25 new options
New WordPress options
randomStart
controls
easing
widget_recent-comments
pager
autoHover
startingSlide
ticker
hideControlOnEnd
db_upgraded
...

Browser metrics Passed 4 tests

A check of browser resources used by cSlider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.20 ▼1.181.80 ▼0.0941.52 ▼3.08
Dashboard /wp-admin2,225 ▲225.83 ▼0.03104.17 ▼2.1541.25 ▼4.21
Posts /wp-admin/edit.php2,104 ▲12.00 ▼0.0639.51 ▼10.9435.46 ▼9.30
Add New Post /wp-admin/post-new.php1,529 ▼1617.50 ▼5.69666.69 ▼13.3150.30 ▲0.86
Media Library /wp-admin/upload.php1,404 ▲14.21 ▲0.0697.60 ▼5.0242.05 ▼4.06
cSlider /wp-admin/options-general.php?page=cslider/cslider.php1,3632.0327.0232.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=cslider/cslider.php
    • > Notice in wp-content/plugins/cslider/cslider.php+295
    Undefined index: submit

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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cslider/cslider.php:236

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (cSlider default settings panel), #2 (How to use the shortcakes), #3 (What it will look like in the front end)
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

cslider/cslider.php Passed 13 tests

The entry point to "cSlider" version 2.4.2 is a PHP file that has certain tags in its header comment area
38 characters long description:
Add content Slider to posts and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin7,435 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,6441,3616,616
PHP12733716
PO File14445103

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
gray_pager.png1.34KB0.65KB▼ 51.68%
gray_prev.png0.83KB1.22KB0.00%
gray_next.png0.85KB1.22KB0.00%