10% md-responsive-jquery-slider

Code Review | MD Responsive WordPress Slider

WordPress plugin MD Responsive WordPress Slider scored10%from 54 tests.

About plugin

  • Plugin page: md-responsive-jqu...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 6.3.1
  • First release: Jan 15, 2013
  • Latest release: Sep 10, 2013
  • Number of updates: 9
  • Update frequency: every 26.4 days
  • Top authors: dorumarginean (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,546 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/md-responsive-jquery-slider/index.php+337
    Use of undefined constant show_md_slider_on_page - assumed 'show_md_slider_on_page' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.88MB] [CPU: ▼49.46ms] Passed 4 tests

Analyzing server-side resources used by MD Responsive WordPress Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.74 ▼36.74
Dashboard /wp-admin2.12 ▼1.1810.08 ▼42.62
Posts /wp-admin/edit.php2.12 ▼1.236.12 ▼40.78
Add New Post /wp-admin/post-new.php2.12 ▼3.768.63 ▼77.70
Media Library /wp-admin/upload.php2.12 ▼1.115.96 ▼31.36
All Slides /wp-admin/edit.php?post_type=md-slider2.126.07
Add New /wp-admin/post-new.php?post_type=md-slider2.126.20
Settings /wp-admin/edit.php?post_type=md-slider&page=md-slider-submenu-page2.125.81

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
md_slider_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for MD Responsive WordPress Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16713.90 ▼0.908.49 ▲6.3642.78 ▼0.92
Dashboard /wp-admin2,239 ▲485.84 ▲0.7698.89 ▼15.1080.16 ▲35.34
Posts /wp-admin/edit.php2,125 ▲362.01 ▲0.0238.10 ▲0.2734.35 ▼0.78
Add New Post /wp-admin/post-new.php1,549 ▲2118.49 ▼4.57762.62 ▲70.2461.84 ▲2.31
Media Library /wp-admin/upload.php1,415 ▲274.14 ▼0.11109.16 ▲2.9076.06 ▲27.73
All Slides /wp-admin/edit.php?post_type=md-slider1,0831.9333.4427.49
Add New /wp-admin/post-new.php?post_type=md-slider2,2087.66164.64119.79
Settings /wp-admin/edit.php?post_type=md-slider&page=md-slider-submenu-page9502.0823.0025.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/md-responsive-jquery-slider/index.php+337
    Use of undefined constant show_md_slider_on_page - assumed 'show_md_slider_on_page' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=md-slider&page=md-slider-submenu-page
    • > Warning in wp-content/plugins/md-responsive-jquery-slider/index.php+337
    Use of undefined constant show_md_slider_on_page - assumed 'show_md_slider_on_page' (this will throw an Error in a future version of PHP)

SRP 50% 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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/md-responsive-jquery-slider/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg)
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

md-responsive-jquery-slider/index.php 92% from 13 tests

The main file in "MD Responsive WordPress Slider" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("md-responsive-jquery-slider.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin540 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP24354251
CSS212176
JavaScript12514113

PHP code Passed 2 tests

A short 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.28
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%
Constants1
▷ Global constants1100.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/description.png0.94KB0.09KB▼ 89.90%
images/navigation.png1.08KB0.53KB▼ 50.50%
images/prev.png2.41KB1.70KB▼ 29.40%
md-slider.png0.61KB0.74KB0.00%
images/next.png2.55KB1.70KB▼ 33.26%