83% easy-content-slider

Code Review | Easy Content Slider

WordPress plugin Easy Content Slider scored83%from 54 tests.

About plugin

  • Plugin page: easy-content-slider
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.8
  • WordPress version: 6.3.1
  • First release: Jun 2, 2014
  • Latest release: Oct 8, 2018
  • Number of updates: 28
  • Update frequency: every 56.9 days
  • Top authors: patelamit (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /14,259 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.27ms] Passed 4 tests

A check of server-side resources used by Easy Content Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.92 ▼0.96
Dashboard /wp-admin3.31 ▼0.0352.98 ▼13.59
Posts /wp-admin/edit.php3.36 ▲0.0149.38 ▼0.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.31 ▼14.17
Media Library /wp-admin/upload.php3.24 ▲0.0139.63 ▲1.91

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Easy Content Slider: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.67 ▼0.925.96 ▲4.0842.60 ▼0.04
Dashboard /wp-admin2,209 ▲215.88 ▼0.1594.92 ▼7.6538.36 ▼5.71
Posts /wp-admin/edit.php2,086 ▼02.17 ▲0.1134.75 ▼2.5433.19 ▼1.28
Add New Post /wp-admin/post-new.php1,533 ▲1923.28 ▼0.12608.95 ▼76.3457.32 ▲3.59
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.1099.91 ▼17.1742.52 ▼5.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% 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 50% 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
Please fix the following
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: param in wp-content/plugins/easy-content-slider/inc/slick.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-content-slider/inc/slider.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-content-slider/inc/slider.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/easy-content-slider/inc/slick.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-content-slider/easy-content-slider.php:18
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-content-slider/inc/slick.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-content-slider/inc/slick.php on line 1
    • > PHP Notice
      Undefined variable: param in wp-content/plugins/easy-content-slider/inc/slider.php on line 1
    • > PHP Notice
      Undefined variable: param in wp-content/plugins/easy-content-slider/inc/slider.php on line 1
    • > 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/easy-content-slider/easy-content-slider.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("#")
  • Screenshots: These screenshots require images: #1 (Overview List Of Easy content slider are shows and also can manage content slider category.), #2 (Adding New Category.), #3 (Adding New Many Post with feature image into slider category.), #4 (If you want to move navigation left to right or right to left you can use listPosition=left or listPosition=right.if you not define this option then get default navigation is "right"), #5 (This is use to listPosition=left in shortcode like :[easy_slider category_id=21 listPosition=left]), #6 (This is for Horizontal Logo Slider Example.), #7 (This is for Post Carousel Slider.)
  • Tags: Please delete some tags, you are using 22 tag instead of maximum 10
You can look at the official readme.txt

easy-content-slider/easy-content-slider.php 92% from 13 tests

The principal PHP file in "Easy Content Slider" v. 1.7 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 351 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,009 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript413981550
PHP32728279
CSS4273180

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin