10% ird-slider

Code Review | Ird Slider

WordPress plugin Ird Slider scored 10% from 54 tests.

About plugin

  • Plugin page: ird-slider
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9.1
  • WordPress version: 5.9.2
  • First release: Mar 7, 2022
  • Latest release: Mar 7, 2022
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: inforrada (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 66 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/ird-slider/irdslider.php+15
    include(wp-content/plugins/ird-slider/includes/ird_shortcodes.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼2.46MB] [CPU: ▼349.63ms] Passed 4 tests

This is a short check of server-side resources used by Ird Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.91 ▼1.613.98 ▼46.45
Dashboard /wp-admin1.93 ▼1.483.67 ▼29.18
Posts /wp-admin/edit.php1.93 ▼1.715.11 ▼32.64
Add New Post /wp-admin/post-new.php1.93 ▼5.044.56 ▼1,290.24
Media Library /wp-admin/upload.php1.93 ▼1.373.67 ▼22.07
Add New /wp-admin/post-new.php?post_type=irdslider1.934.46
Ird sliders /wp-admin/edit.php?post_type=irdslider1.934.05
Ird Slider /wp-admin/options-general.php?page=ird-slider/admin/ird_slider_general.php1.934.30

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Ird Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,826 ▲7215.85 ▼0.186.18 ▲0.272.28 ▼0.40
Dashboard /wp-admin2,927 ▲736.17 ▲0.04118.03 ▼12.72161.45 ▼4.93
Posts /wp-admin/edit.php2,696 ▲23.25 ▲0.0365.78 ▲1.46141.74 ▼0.19
Add New Post /wp-admin/post-new.php1,737 ▲2620.77 ▲0.01427.69 ▼70.40155.21 ▼1.22
Media Library /wp-admin/upload.php1,737 ▲395.50 ▲0.01137.62 ▼10.79191.13 ▲5.54
Add New /wp-admin/post-new.php?post_type=irdslider9,63718.81652.44157.74
Ird sliders /wp-admin/edit.php?post_type=irdslider1,4153.1661.43113.97
Ird Slider /wp-admin/options-general.php?page=ird-slider/admin/ird_slider_general.php1,1732.3955.56116.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/ird-slider/irdslider.php+15
    include(wp-content/plugins/ird-slider/includes/ird_shortcodes.php): failed to open stream: No such file or directory

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)
Almost there, just fix the following server-side errors
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ird-slider/admin/ird_slider_general.php
    • > Warning in wp-content/plugins/ird-slider/irdslider.php+15
    include(wp-content/plugins/ird-slider/includes/ird_shortcodes.php): failed to open stream: No such file or directory
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ird-slider/admin/ird_slider_general.php
    • > Warning in wp-content/plugins/ird-slider/irdslider.php+15
    include(): Failed opening 'wp-content/plugins/ird-slider/includes/ird_shortcodes.php' for inclusion (include_path='.:/usr/share/php')
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ird-slider/admin/ird_slider_general.php
    • > Warning in wp-content/plugins/ird-slider/irdslider.php+16
    include(wp-content/plugins/ird-slider/includes/ird_comun.php): failed to open stream: No such file or directory
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ird-slider/admin/ird_slider_general.php
    • > Warning in wp-content/plugins/ird-slider/irdslider.php+16
    include(): Failed opening 'wp-content/plugins/ird-slider/includes/ird_comun.php' for inclusion (include_path='.:/usr/share/php')

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 items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ird-slider/admin/ird_slider_general.php
    • > /wp-content/plugins/ird-slider/irdslider.php

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

ird-slider/irdslider.php 92% from 13 tests

The primary PHP file in "Ird Slider" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ird-slider.php" instead of "irdslider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected593 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP58213299
CSS4485293
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin