10% ird-slider

Code Review | Ird Slider

WordPress plugin Ird Slider scored10%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: 6.3.1
  • 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

50+ active /1,815 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • This plugin did not install 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

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.66ms] Passed 4 tests

A check of server-side resources used by Ird Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.03 ▼40.52
Dashboard /wp-admin2.05 ▼1.266.15 ▼44.75
Posts /wp-admin/edit.php2.05 ▼1.315.02 ▼48.28
Add New Post /wp-admin/post-new.php2.05 ▼3.844.78 ▼89.09
Media Library /wp-admin/upload.php2.05 ▼1.186.16 ▼34.17
Add New /wp-admin/post-new.php?post_type=irdslider2.056.79
Ird Slider /wp-admin/options-general.php?page=ird-slider/admin/ird_slider_general.php2.055.57
Ird sliders /wp-admin/edit.php?post_type=irdslider2.056.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ird Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.72 ▲0.471.66 ▼0.2542.15 ▼1.43
Dashboard /wp-admin2,229 ▲495.62 ▼0.2484.32 ▼1.8641.65 ▼6.47
Posts /wp-admin/edit.php2,131 ▲312.03 ▼0.1239.75 ▼1.3034.63 ▼3.64
Add New Post /wp-admin/post-new.php1,581 ▲4118.43 ▼5.08605.70 ▼77.0460.65 ▲6.88
Media Library /wp-admin/upload.php1,434 ▲344.24 ▲0.09101.16 ▼15.3846.03 ▼4.53
Add New /wp-admin/post-new.php?post_type=irdslider6,18719.14863.1033.49
Ird Slider /wp-admin/options-general.php?page=ird-slider/admin/ird_slider_general.php9222.1422.9830.86
Ird sliders /wp-admin/edit.php?post_type=irdslider1,1042.0030.7629.66

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
You still need to fix the following
  • This plugin did not uninstall without warnings or 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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=irdslider
    • > POST request to /wp-admin/admin-ajax.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
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=irdslider
    • > POST request to /wp-admin/admin-ajax.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')
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=irdslider
    • > POST request to /wp-admin/admin-ajax.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
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=irdslider
    • > POST request to /wp-admin/admin-ajax.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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /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 | This is a smoke test targeting browser errors/issues
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

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

This is the main PHP file of "Ird Slider" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ird-slider.php" instead of "irdslider.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 plugin593 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP58213299
CSS4485293
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected