77% slick-slider-all

Code Review | Slick slider all

WordPress plugin Slick slider all scored77%from 54 tests.

About plugin

  • Plugin page: slick-slider-all
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-5.5
  • WordPress version: 6.3.1
  • First release: Aug 5, 2020
  • Latest release: Aug 5, 2020
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: galedev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /380 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
Installer ran successfully

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

This is a short check of server-side resources used by Slick slider all
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.47 ▲3.66
Dashboard /wp-admin3.31 ▲0.0153.99 ▲4.74
Posts /wp-admin/edit.php3.36 ▲0.0148.99 ▼10.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.48 ▼10.02
Media Library /wp-admin/upload.php3.23 ▲0.0137.92 ▼0.11
Slick slider all /wp-admin/options-general.php?page=cs-slick-slider-all3.2230.58

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Slick slider all: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲14613.74 ▼0.999.52 ▲7.9643.11 ▼2.04
Dashboard /wp-admin2,202 ▲255.62 ▼0.0394.57 ▲8.5444.62 ▲5.23
Posts /wp-admin/edit.php2,104 ▲12.03 ▲0.0734.76 ▼9.8836.47 ▼3.71
Add New Post /wp-admin/post-new.php1,531 ▼423.11 ▲4.93662.37 ▲12.7749.87 ▼24.90
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.03109.04 ▲6.2147.07 ▼1.00
Slick slider all /wp-admin/options-general.php?page=cs-slick-slider-all8461.9821.6628.08

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/slick-slider-all/cs-slick-slider-all-free.php
    • > /wp-content/plugins/slick-slider-all/views/admin/dashboard.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Trying to get property 'posts' of non-object in wp-content/plugins/slick-slider-all/views/public/displaying-all.php on line 5
    • > PHP Notice
      Undefined variable: the_query in wp-content/plugins/slick-slider-all/views/public/displaying-all.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/slick-slider-all/config/constants.php:3
    • > PHP Notice
      Undefined variable: slider_id in wp-content/plugins/slick-slider-all/views/public/displaying-all.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_reset_postdata() in wp-content/plugins/slick-slider-all/views/public/displaying-all.php:27
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/slick-slider-all/views/public/displaying-all.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 87% 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
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #1 is missing in slick-slider-all/assets to your readme.txt
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

slick-slider-all/cs-slick-slider-all-free.php 85% from 13 tests

The principal PHP file in "Slick slider all" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("slick-slider-all.php" instead of "cs-slick-slider-all-free.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,125 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2847452,120
CSS3537365
Sass2275262
PHP64432205
LESS1115152
SVG11013
Ruby1208

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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