72% dev-slider

Code Review | DevSlider

WordPress plugin DevSlider scored72%from 54 tests.

About plugin

  • Plugin page: dev-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 6.3.1
  • First release: Jun 24, 2017
  • Latest release: Jun 25, 2017
  • Number of updates: 2
  • Update frequency: every 13.5 days
  • Top authors: dominykasgel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /685 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.79ms] Passed 4 tests

Server-side resources used by DevSlider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0837.58 ▼3.21
Dashboard /wp-admin3.38 ▲0.0845.04 ▼1.92
Posts /wp-admin/edit.php3.43 ▲0.0845.20 ▼3.98
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.80 ▼3.73
Media Library /wp-admin/upload.php3.31 ▲0.0836.50 ▼8.22
All Slides /wp-admin/edit.php?post_type=dev_slide3.3536.15
Category /wp-admin/edit-tags.php?taxonomy=dev_slide_category&post_type=dev_slide3.3033.68
Add New Slide /wp-admin/post-new.php?post_type=dev_slide3.2234.21

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for DevSlider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲19813.62 ▼0.768.48 ▲6.4243.54 ▼3.02
Dashboard /wp-admin2,240 ▲554.83 ▼1.03100.99 ▲0.0140.23 ▼3.04
Posts /wp-admin/edit.php2,120 ▲312.13 ▲0.0933.71 ▼7.0434.27 ▼1.96
Add New Post /wp-admin/post-new.php1,571 ▲5218.54 ▼4.15637.80 ▼21.8260.05 ▲1.98
Media Library /wp-admin/upload.php1,422 ▲344.17 ▲0.0794.70 ▼19.6642.75 ▼2.38
All Slides /wp-admin/edit.php?post_type=dev_slide1,1011.9437.3928.43
Category /wp-admin/edit-tags.php?taxonomy=dev_slide_category&post_type=dev_slide1,2892.1426.7128.07
Add New Slide /wp-admin/post-new.php?post_type=dev_slide1,7663.6363.4633.61

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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 errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=dev_slide
    • > Notice in wp-content/plugins/dev-slider/devslider.php+166
    Undefined index: slide_desc

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dev-slider/inc/devslider-template.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: slides in wp-content/plugins/dev-slider/inc/devslider-template.php on line 4
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/dev-slider/inc/devslider-template.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: simple, responsive slider, slider, mobile

dev-slider/devslider.php 77% from 13 tests

The main file in "DevSlider" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "4.4")
  • 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: It is recommended to name the main PHP file as the plugin slug ("dev-slider.php" instead of "devslider.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
Success! There were no dangerous files found in this plugin197 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP25485183
CSS21013
JavaScript1061

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods321.43%
▷ Public methods1071.43%
▷ Protected methods00.00%
▷ Private methods428.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/controls.png2.74KB1.42KB▼ 48.29%