83% wp-dc-slider

Code Review | Dc Responsive content slider

WordPress plugin Dc Responsive content slider scored83%from 54 tests.

About plugin

  • Plugin page: wp-dc-slider
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.5
  • WordPress version: 6.3.1
  • First release: Jun 8, 2017
  • Latest release: Jun 8, 2017
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: deepakchattha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /568 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.49ms] Passed 4 tests

An overview of server-side resources used by Dc Responsive content slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0634.77 ▼7.03
Dashboard /wp-admin3.37 ▲0.0646.55 ▼4.96
Posts /wp-admin/edit.php3.43 ▲0.0746.68 ▲1.06
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.95 ▼3.03
Media Library /wp-admin/upload.php3.29 ▲0.0638.69 ▲1.28
Add New /wp-admin/post-new.php?post_type=sp_dcrs_slider3.4146.07
All Image /wp-admin/edit.php?post_type=sp_dcrs_slider3.3435.72
How It Works /wp-admin/edit.php?post_type=sp_dcrs_slider&page=dc-how-it-works3.2632.52

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Dc Responsive content slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲18213.62 ▼0.757.56 ▲5.6939.15 ▼9.47
Dashboard /wp-admin2,234 ▲464.83 ▼1.04100.26 ▼19.5243.50 ▼2.62
Posts /wp-admin/edit.php2,120 ▲312.00 ▼0.0135.14 ▼0.7337.27 ▲0.27
Add New Post /wp-admin/post-new.php1,559 ▲2523.27 ▲0.20653.96 ▼34.3162.72 ▼0.59
Media Library /wp-admin/upload.php1,422 ▲374.22 ▲0.0298.42 ▼9.1541.15 ▼7.55
Add New /wp-admin/post-new.php?post_type=sp_dcrs_slider2,1727.57183.9065.96
All Image /wp-admin/edit.php?post_type=sp_dcrs_slider1,0931.9930.3029.55
How It Works /wp-admin/edit.php?post_type=sp_dcrs_slider&page=dc-how-it-works8882.0324.6825.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dc-slider/responsive_content_slider.php:19

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 errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Dashboard)
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can look at the official readme.txt

wp-dc-slider/responsive_content_slider.php 85% from 13 tests

The main PHP file in "Dc Responsive content slider" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-dc-slider.php" instead of "responsive_content_slider.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin381 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27187284
CSS120096
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions10
▷ Named functions10100.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/arrow-left.png1.32KB0.31KB▼ 76.63%
img/pagination.png4.82KB0.58KB▼ 87.99%
img/arrow-right.png1.31KB0.31KB▼ 76.49%
img/btns-next-prev.png11.13KB1.81KB▼ 83.73%