83% wp-ideal-image-slider

Code Review | DM WP SLIDER

WordPress plugin DM WP SLIDER scored83%from 54 tests.

About plugin

  • Plugin page: wp-ideal-image-sl...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Dec 24, 2014
  • Latest release: Jan 28, 2015
  • Number of updates: 21
  • Update frequency: every 1.7 days
  • Top authors: Umakant_dataman (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /716 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.16ms] Passed 4 tests

This is a short check of server-side resources used by DM WP SLIDER
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.40 ▼2.58
Dashboard /wp-admin3.34 ▲0.0445.54 ▼2.07
Posts /wp-admin/edit.php3.40 ▲0.0449.61 ▼4.06
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.72 ▼11.94
Media Library /wp-admin/upload.php3.27 ▲0.0338.74 ▲7.50
Add New /wp-admin/post-new.php?post_type=ideal-slider3.3244.15
Slider Images /wp-admin/edit.php?post_type=ideal-slider3.3138.09

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for DM WP SLIDER
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10513.32 ▼1.083.07 ▲1.2343.83 ▲0.10
Dashboard /wp-admin2,236 ▲545.79 ▼0.0999.44 ▼4.1938.38 ▼4.47
Posts /wp-admin/edit.php2,131 ▲392.01 ▼0.0439.04 ▼2.4636.20 ▲1.41
Add New Post /wp-admin/post-new.php1,563 ▲2118.38 ▲0.12592.72 ▼31.6654.14 ▼7.52
Media Library /wp-admin/upload.php1,418 ▲304.22 ▼0.0494.95 ▼3.2342.01 ▲0.47
Add New /wp-admin/post-new.php?post_type=ideal-slider1,6233.9866.3432.15
Slider Images /wp-admin/edit.php?post_type=ideal-slider1,0911.9529.7328.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 items
  • 3× 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-ideal-image-slider/ideal-slider-type.php:6
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-ideal-image-slider/dmwpslider.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-ideal-image-slider/dmwpslider.php:11

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 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (Admin list interface showing Slider images and titles.), #2 (Admin image interface showing optional title, image and URL), #3 (Example output.(see documentation).)
The official readme.txt might help

wp-ideal-image-slider/dmwpslider.php 85% from 13 tests

The main PHP script in "DM WP SLIDER" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 179 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-ideal-image-slider.php" instead of "dmwpslider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin261 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS13522152
PHP23820101
JavaScript20108

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.29MB with 0.18MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png291.16KB76.51KB▼ 73.72%
lib/images/controls.png2.74KB1.42KB▼ 48.29%