10% yoel-responsive-slider

Code Review | yoel dead simple responsive image slider

WordPress plugin yoel dead simple responsive image slider scored 10% from 54 tests.

About plugin

  • Plugin page: yoel-responsive-s...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.2-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 13, 2015
  • Latest release: Nov 13, 2015
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: yoel_r (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 567 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/yoel-responsive-slider/cuztom/classes/fields/multi_select.class.php+23
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼1.60MB] [CPU: ▼48.98ms] Passed 4 tests

An overview of server-side resources used by yoel dead simple responsive image slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.39 ▼1.076.62 ▼34.78
Dashboard /wp-admin2.41 ▼0.908.09 ▼39.37
Posts /wp-admin/edit.php2.41 ▼0.958.22 ▼42.39
Add New Post /wp-admin/post-new.php2.41 ▼3.488.48 ▼79.39
Media Library /wp-admin/upload.php2.41 ▼0.828.70 ▼26.46
All Yoel Sliders /wp-admin/edit.php?post_type=yoel_slider2.417.74
Add New /wp-admin/post-new.php?post_type=yoel_slider2.417.96
how to use /wp-admin/edit.php?post_type=yoel_slider&page=wnm_fund_set2.417.98

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for yoel dead simple responsive image slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,136 ▲40115.81 ▲1.528.59 ▲6.7339.14 ▼7.79
Dashboard /wp-admin2,415 ▲2306.87 ▲1.99138.19 ▲21.9040.26 ▼7.22
Posts /wp-admin/edit.php2,328 ▲2363.79 ▲1.7551.55 ▲9.1730.12 ▼8.55
Add New Post /wp-admin/post-new.php1,576 ▲3418.25 ▲0.08654.81 ▲36.4635.44 ▼19.58
Media Library /wp-admin/upload.php1,464 ▲824.64 ▲0.3781.14 ▼21.8041.31 ▼1.62
All Yoel Sliders /wp-admin/edit.php?post_type=yoel_slider1,2873.7155.1726.78
Add New /wp-admin/post-new.php?post_type=yoel_slider1,7004.2064.2939.93
how to use /wp-admin/edit.php?post_type=yoel_slider&page=wnm_fund_set1,0513.4642.9225.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/yoel-responsive-slider/cuztom/classes/fields/multi_select.class.php+23
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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
  • 20 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=yoel_slider&page=wnm_fund_set
    • > Deprecated in wp-content/plugins/yoel-responsive-slider/cuztom/classes/fields/term_checkboxes.class.php+37
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/yoel-responsive-slider/help_page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (slider table ), #2 (slider edit/new slider page), #3 (example of how the sliders look by default)
The official readme.txt might help

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

The principal PHP file in "yoel dead simple responsive image slider" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yoel-responsive-slider.php" instead of "index.php")

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
There were no executable files found in this plugin5,580 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP395581,0412,460
JavaScript53874112,288
CSS59918549
HTML2389169
Markdown141099
JSON10015

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity10.71
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes35
▷ Abstract classes00.00%
▷ Concrete classes35100.00%
▷ Final classes00.00%
Methods132
▷ Static methods107.58%
▷ Public methods12997.73%
▷ Protected methods00.00%
▷ Private methods32.27%
Functions19
▷ Named functions1684.21%
▷ Anonymous functions315.79%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
18 PNG files occupy 0.82MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
cuztom/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
cuztom/assets/images/mime/file.png1.14KB0.33KB▼ 71.50%
cuztom/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
screenshot-3.png516.44KB106.05KB▼ 79.47%
cuztom/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%