78% cyclone-slider

Code Review | Cyclone Slider

WordPress plugin Cyclone Slider scored 78% from 54 tests.

About plugin

  • Plugin page: cyclone-slider
  • Plugin version: 3.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 5.9.2
  • First release: Aug 9, 2012
  • Latest release: Jul 3, 2017
  • Number of updates: 92
  • Update frequency: every 19.5 days
  • Top authors: kosinix (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

10,000+ active / 107,768 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
Install script ran successfully

Server metrics [RAM: ▲0.67MB] [CPU: ▼289.60ms] Passed 4 tests

Server-side resources used by Cyclone Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.6964.78 ▲13.59
Dashboard /wp-admin4.11 ▲0.7057.64 ▲22.50
Posts /wp-admin/edit.php4.34 ▲0.6946.86 ▲5.36
Add New Post /wp-admin/post-new.php7.58 ▲0.61100.78 ▼1,199.84
Media Library /wp-admin/upload.php4.00 ▲0.7046.51 ▲23.18
Cyclone Slider /wp-admin/edit.php?post_type=cycloneslider4.0435.36
Settings /wp-admin/edit.php?post_type=cycloneslider&page=cycloneslider-settings4.0634.13
Import /wp-admin/admin.php?page=cycloneslider-import3.9730.69
Add Slideshow /wp-admin/post-new.php?post_type=cycloneslider4.3857.13
Export/Import /wp-admin/edit.php?post_type=cycloneslider&page=cycloneslider-export4.0235.57

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 217 new files
Database: no new tables, 1 new option
New WordPress options
widget_cyclone-slider-widget

Browser metrics Passed 4 tests

Checking browser requirements for Cyclone Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,979 ▲22516.88 ▲1.5112.63 ▲6.232.09 ▼0.83
Dashboard /wp-admin2,944 ▲866.18 ▲0.00118.31 ▼16.75158.70 ▼4.77
Posts /wp-admin/edit.php2,743 ▲523.24 ▲0.0199.32 ▲34.27142.66 ▼8.82
Add New Post /wp-admin/post-new.php1,693 ▲2715.95 ▼5.43427.72 ▼8.57162.55 ▼37.95
Media Library /wp-admin/upload.php1,745 ▲475.51 ▼0.04147.29 ▲3.49197.11 ▼46.51
Cyclone Slider /wp-admin/edit.php?post_type=cycloneslider1,4393.1797.12136.89
Settings /wp-admin/edit.php?post_type=cycloneslider&page=cycloneslider-settings1,7294.8874.67200.31
Import /wp-admin/admin.php?page=cycloneslider-import1,0862.4254.31161.36
Add Slideshow /wp-admin/post-new.php?post_type=cycloneslider4,5936.11107.17249.21
Export/Import /wp-admin/edit.php?post_type=cycloneslider&page=cycloneslider-export1,4305.04109.47136.56

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_cyclone-slider-widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Almost there! Just fix the following items
  • 30× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/cyclone-slider/src/legacy/templates/thumbnails/slider.php
    • > /wp-content/plugins/cyclone-slider/views/slides-skeleton.php
    • > /wp-content/plugins/cyclone-slider/views/import-step-3.php
    • > /wp-content/plugins/cyclone-slider/templates/default/slider.php
    • > /wp-content/plugins/cyclone-slider/src/legacy/templates/myrtle/slider.php
    • > /wp-content/plugins/cyclone-slider/views/export-step-1.php
    • > /wp-content/plugins/cyclone-slider/views/export-import-tabs.php
    • > /wp-content/plugins/cyclone-slider/src/legacy/templates/blue/slider.php
    • > /wp-content/plugins/cyclone-slider/src/legacy/templates/black/slider.php
    • > /wp-content/plugins/cyclone-slider/views/export-nextgen-step-1.php
  • 168× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: slider_settings in wp-content/plugins/cyclone-slider/src/legacy/templates/default/slider.php on line 35
    • > PHP Notice
      Undefined variable: slider_id in wp-content/plugins/cyclone-slider/src/legacy/templates/responsive/slider.php on line 2
    • > PHP Notice
      Undefined variable: image_url in wp-content/plugins/cyclone-slider/views/slide-edit-image.php on line 5
    • > PHP Notice
      Undefined variable: slider_settings in wp-content/plugins/cyclone-slider/src/legacy/templates/thumbnails/slider.php on line 42
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cyclone-slider/src/legacy/templates/myrtle/slider.php on line 35
    • > PHP Notice
      Undefined variable: slider_id in wp-content/plugins/cyclone-slider/src/legacy/templates/default/slider.php on line 2
    • > PHP Notice
      Undefined variable: slider_id in wp-content/plugins/cyclone-slider/src/legacy/templates/thumbnails/slider.php on line 2
    • > PHP Fatal error
      Uncaught Error: Interface 'CycloneSlider\\Grafika\\FilterInterface' not found in wp-content/plugins/cyclone-slider/src/CycloneSlider/Grafika/Imagick/Filter/Pixelate.php:11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cyclone-slider/src/legacy/templates/myrtle/slider.php on line 31
    • > PHP Fatal error
      Uncaught Error: Class 'CycloneSlider\\Grafika\\Grafika' not found in wp-content/plugins/cyclone-slider/src/code-5.3.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

cyclone-slider/cyclone-slider.php 92% from 13 tests

This is the main PHP file of "Cyclone Slider" version 3.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • 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 detected21,779 lines of code in 174 files:
LanguageFilesBlank linesComment linesLines of code
PHP1282,2983,69410,841
PO File92,2153,3645,187
JavaScript198931,1683,240
CSS14142702,486
JSON30024
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity14.49
▷ Minimum class complexity1.00
▷ Maximum class complexity110.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces11
Interfaces5
Traits0
Classes82
▷ Abstract classes89.76%
▷ Concrete classes7490.24%
▷ Final classes68.11%
Methods561
▷ Static methods203.57%
▷ Public methods47584.67%
▷ Protected methods234.10%
▷ Private methods6311.23%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants323.08%
▷ Class constants1076.92%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
26 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/legacy/templates/responsive/images/bg-caption.png1.11KB0.10KB▼ 90.80%
templates/thumbnails/images/sprite-nav.png1.23KB0.56KB▼ 54.27%
images/screenshot.png4.58KB2.20KB▼ 51.98%
src/legacy/templates/thumbnails/images/sprite-arrows.png1.76KB0.64KB▼ 63.52%
src/legacy/templates/default/images/bg-caption.png1.11KB0.10KB▼ 90.80%