84% cycle-responsive-slider

Code Review | WP Cycle Responsive Slider

WordPress plugin WP Cycle Responsive Slider scored84%from 54 tests.

About plugin

  • Plugin page: cycle-responsive-...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: Aug 7, 2016
  • Latest release: Sep 4, 2016
  • Number of updates: 12
  • Update frequency: every 2.5 days
  • Top authors: kiranantony (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,698 total downloads

Benchmarks

Plugin footprint 83% from 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.03MB] [CPU: ▼2.52ms] Passed 4 tests

A check of server-side resources used by WP Cycle Responsive Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.57 ▼0.51
Dashboard /wp-admin3.34 ▲0.0350.26 ▼1.02
Posts /wp-admin/edit.php3.45 ▲0.0949.25 ▼1.81
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.71 ▼6.75
Media Library /wp-admin/upload.php3.26 ▲0.0337.36 ▲3.21
WP-Cycle /wp-admin/upload.php?page=wp-cycle3.2834.30

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_wp_cycle_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP Cycle Responsive Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲12513.53 ▼0.838.89 ▲6.5144.88 ▼2.42
Dashboard /wp-admin2,202 ▲225.64 ▲0.0787.30 ▼6.4438.75 ▼5.96
Posts /wp-admin/edit.php2,117 ▲142.17 ▲0.1838.57 ▲0.9834.65 ▼1.44
Add New Post /wp-admin/post-new.php1,537 ▲1123.16 ▲0.16667.16 ▲45.2773.35 ▲16.96
Media Library /wp-admin/upload.php1,410 ▲134.11 ▼0.05108.28 ▲2.5442.99 ▼2.63
WP-Cycle /wp-admin/upload.php?page=wp-cycle1,0491.7527.5535.47

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_wp_cycle_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/cycle-responsive-slider/includes/admin-settings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_mkdir_p() in wp-content/plugins/cycle-responsive-slider/includes/wp_cycle_handle_upload.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/cycle-responsive-slider/cycle-responsive-slider.php:23
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cycle-responsive-slider/includes/wp_cycle_handle_upload.php on line 10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/cycle-responsive-slider/includes/wp_cycle_settings_admin.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/cycle-responsive-slider/includes/wp_cycle_images_admin.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cycle-responsive-slider/includes/wp_cycle_widget.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === cycle-responsive-slider === )
Please take inspiration from this readme.txt

cycle-responsive-slider/cycle-responsive-slider.php 92% from 13 tests

This is the main PHP file of "WP Cycle Responsive Slider" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 364 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin503 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP6120139496
JavaScript7067

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity17.50
▷ Minimum class complexity4.00
▷ Maximum class complexity31.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
No PNG images were found in this plugin