79% dx-lite-slide

Code Review | DX Lite Slide

WordPress plugin DX Lite Slide scored 79% from 54 tests.

About plugin

  • Plugin page: dx-lite-slide
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 19, 2013
  • Latest release: Jul 29, 2013
  • Number of updates: 8
  • Update frequency: every 12.6 days
  • Top authors: metodiew (75%)nofearinc (37.5%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,485 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.06MB] [CPU: ▼2.99ms] Passed 4 tests

This is a short check of server-side resources used by DX Lite Slide
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.05 ▲2.46
Dashboard /wp-admin3.37 ▲0.0747.33 ▼3.18
Posts /wp-admin/edit.php3.42 ▲0.0644.84 ▼2.69
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.71 ▼8.37
Media Library /wp-admin/upload.php3.29 ▲0.0634.34 ▲2.29
DX Slides /wp-admin/edit.php?post_type=dx_slide3.3339.22
Help /wp-admin/edit.php?post_type=dx_slide&page=dx_slides_help3.2534.16
Sliders /wp-admin/edit-tags.php?taxonomy=dx_slider&post_type=dx_slide3.2828.13
Add New /wp-admin/post-new.php?post_type=dx_slide3.3849.63
DX Slides Options /wp-admin/edit.php?post_type=dx_slide&page=dx_slides_options3.2631.39

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

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

Browser metrics Passed 4 tests

Checking browser requirements for DX Lite Slide
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲19214.01 ▼0.385.04 ▲3.2243.21 ▼1.81
Dashboard /wp-admin2,247 ▲765.79 ▲0.9294.66 ▼20.1938.10 ▼12.17
Posts /wp-admin/edit.php2,130 ▲412.04 ▲0.0140.49 ▲6.8132.96 ▼5.23
Add New Post /wp-admin/post-new.php1,562 ▲2023.05 ▲4.89657.39 ▲62.9752.84 ▲1.96
Media Library /wp-admin/upload.php1,420 ▲324.29 ▲0.0895.64 ▼1.0845.93 ▲1.62
DX Slides /wp-admin/edit.php?post_type=dx_slide1,0941.9730.6230.00
Help /wp-admin/edit.php?post_type=dx_slide&page=dx_slides_help9292.0222.7443.12
Sliders /wp-admin/edit-tags.php?taxonomy=dx_slider&post_type=dx_slide1,3022.1424.7425.77
Add New /wp-admin/post-new.php?post_type=dx_slide1,8883.5866.0035.63
DX Slides Options /wp-admin/edit.php?post_type=dx_slide&page=dx_slides_options8862.0725.1428.94

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
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=dx_slide&page=dx_slides_options
    • > Notice in wp-content/plugins/dx-lite-slide/dx-lite-slide-options.php+71
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/dx-lite-slide/dx-lite-slide-options.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dx-lite-slide/shortcodes/display-slideshow.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dx-lite-slide/shortcodes/display-widget-slideshow.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dx-lite-slide/dx-lite-slide.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/dx-lite-slide/dx-lite-slide-help.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: slide, slider

dx-lite-slide/dx-lite-slide.php Passed 13 tests

This is the main PHP file of "DX Lite Slide" version 0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
82 characters long description:
Lite and simple slider for your WordPress project. Works with placing a shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected517 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP58657439
CSS27639
JavaScript110236
Markdown1103

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin