72% news-slider

Code Review | Responsive Slider

WordPress plugin Responsive Slider scored72%from 54 tests.

About plugin

  • Plugin page: news-slider
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Aug 30, 2016
  • Latest release: Oct 24, 2016
  • Number of updates: 38
  • Update frequency: every 1.5 days
  • Top authors: Tajul2010 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,017 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.64MB] [CPU: ▼13.94ms] Passed 4 tests

Server-side resources used by Responsive Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0229.61 ▼5.01
Dashboard /wp-admin3.37 ▲0.0747.61 ▲7.07
Posts /wp-admin/edit.php3.42 ▲0.0745.07 ▼2.10
Add New Post /wp-admin/post-new.php3.22 ▼2.6735.45 ▼49.60
Media Library /wp-admin/upload.php3.30 ▲0.0735.88 ▲0.96
Add New Slide /wp-admin/post-new.php?post_type=corlate_slide3.1638.86
Slider Options /wp-admin/edit.php?post_type=corlate_slide&page=breaking_news_slug3.2429.76
Slides /wp-admin/edit.php?post_type=corlate_slide3.3429.81

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Responsive Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲22114.26 ▼0.489.94 ▲8.2650.98 ▲6.37
Dashboard /wp-admin2,237 ▲455.87 ▲0.94101.86 ▼19.7950.43 ▲8.04
Posts /wp-admin/edit.php2,120 ▲312.02 ▲0.0533.33 ▼2.1534.02 ▲3.25
Add New Post /wp-admin/post-new.php1,554 ▲3523.38 ▼0.02670.90 ▲19.5550.92 ▼8.52
Media Library /wp-admin/upload.php1,422 ▲404.21 ▼0.0397.02 ▼2.0145.25 ▲1.81
Add New Slide /wp-admin/post-new.php?post_type=corlate_slide2,4377.61181.4970.34
Slider Options /wp-admin/edit.php?post_type=corlate_slide&page=breaking_news_slug8212.0323.3626.34
Slides /wp-admin/edit.php?post_type=corlate_slide1,0841.9329.5329.90

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=corlate_slide
    • > Notice in wp-content/plugins/news-slider/corlate-full-slider.php+234
    Undefined index: slide_bg
    • > GET request to /wp-admin/post-new.php?post_type=corlate_slide
    • > Notice in wp-content/plugins/news-slider/corlate-full-slider.php+235
    Undefined index: news_content
    • > GET request to /wp-admin/post-new.php?post_type=corlate_slide
    • > Notice in wp-content/plugins/news-slider/corlate-full-slider.php+236
    Undefined index: news_link
    • > GET request to /wp-admin/edit.php?post_type=corlate_slide&page=breaking_news_slug
    • > Notice in wp-content/plugins/news-slider/corlate-full-slider.php+108
    Undefined index: corlate_slide_color
    • > GET request to /wp-admin/edit.php?post_type=corlate_slide&page=breaking_news_slug
    • > Notice in wp-content/plugins/news-slider/corlate-full-slider.php+120
    Undefined index: corlate_slide_color_hover

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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/news-slider/corlate-full-slider.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=corlate_slide&page=breaking_news_slug
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?post_type=corlate_slide&page=breaking_news_slug 153 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/edit.php?post_type=corlate_slide&page=breaking_news_slug
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?post_type=corlate_slide&page=breaking_news_slug 156 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

news-slider/corlate-full-slider.php 85% from 13 tests

The entry point to "Responsive Slider" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • 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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("news-slider.php" instead of "corlate-full-slider.php")

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
Everything looks great! No dangerous files found in this plugin1,048 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
SVG200643
PHP216281224
CSS45825168
JavaScript37713

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.06
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected