84% wp-slick-slider

Code Review | WP Slick Slider

WordPress plugin WP Slick Slider scored84%from 54 tests.

About plugin

  • Plugin page: wp-slick-slider
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2011
  • Latest release: Mar 8, 2014
  • Number of updates: 45
  • Update frequency: every 23.6 days
  • Top authors: casben79 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /19,248 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.21MB] [CPU: ▼4.89ms] Passed 4 tests

Server-side resources used by WP Slick Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2139.37 ▼4.27
Dashboard /wp-admin3.52 ▲0.2149.54 ▼0.71
Posts /wp-admin/edit.php3.63 ▲0.2849.79 ▼3.27
Add New Post /wp-admin/post-new.php6.10 ▲0.2189.44 ▼11.29
Media Library /wp-admin/upload.php3.44 ▲0.2141.12 ▲4.11
Options /wp-admin/edit.php?post_type=wpss_slides&page=wpss-options3.4132.64
Slick Slides /wp-admin/edit.php?post_type=wpss_slides3.4839.71
New Slide /wp-admin/post-new.php?post_type=wpss_slides3.5652.36
Sliders /wp-admin/edit-tags.php?taxonomy=wpss_sliders&post_type=wpss_slides3.4336.14

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
wpss_options
widget_recent-comments

Browser metrics Passed 4 tests

WP Slick Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲21213.82 ▼0.365.93 ▲3.9939.75 ▼2.93
Dashboard /wp-admin2,243 ▲524.88 ▼1.0299.86 ▼1.9780.34 ▲34.02
Posts /wp-admin/edit.php2,123 ▲341.98 ▼0.0138.19 ▲1.2236.11 ▲2.50
Add New Post /wp-admin/post-new.php1,552 ▲2923.18 ▲0.12745.44 ▲70.3360.61 ▲6.45
Media Library /wp-admin/upload.php1,416 ▲314.27 ▲0.05112.11 ▲14.1876.51 ▲33.84
Options /wp-admin/edit.php?post_type=wpss_slides&page=wpss-options8442.2124.9427.63
Slick Slides /wp-admin/edit.php?post_type=wpss_slides1,0841.9929.3631.12
New Slide /wp-admin/post-new.php?post_type=wpss_slides2,4487.61177.55132.74
Sliders /wp-admin/edit-tags.php?taxonomy=wpss_sliders&post_type=wpss_slides1,8262.1427.3635.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_thumbnail_id() in wp-content/plugins/wp-slick-slider/templates/full-width-image.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-slick-slider/includes/wpss-functions.php:122
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_title() in wp-content/plugins/wp-slick-slider/templates/full-width-text.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_thumbnail_id() in wp-content/plugins/wp-slick-slider/templates/right-half-image.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-slick-slider/includes/output.php:254
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-slick-slider/wp-slick-slider.php:53
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-slick-slider/wp-slick-slider.php on line 53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_thumbnail_id() in wp-content/plugins/wp-slick-slider/templates/left-half-image.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: javascript slider, customisable, cycle, slider, post type

wp-slick-slider/wp-slick-slider.php Passed 13 tests

The main PHP file in "WP Slick Slider" ver. 1.8 adds more information about the plugin and also serves as the entry point for this plugin
127 characters long description:
Utilising the power of custom post types and custom meta boxes, adds a powerful and customisable slider to your wordpress site.

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
Everything looks great! No dangerous files found in this plugin872 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP103941,397846
JavaScript304726

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity84.67
▷ Minimum class complexity17.00
▷ Maximum class complexity208.00
Average method complexity4.98
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods63
▷ Static methods1523.81%
▷ Public methods3352.38%
▷ Protected methods3047.62%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants52
▷ Global constants52100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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
images/wpss_next_arrow.png1.18KB0.34KB▼ 70.86%
images/icon.png1.30KB0.58KB▼ 55.61%
images/wpss_prev_arrow.png1.20KB0.34KB▼ 71.32%