10% yoel-simple-carousel

Code Review | yoel easy responsive carousel

WordPress plugin yoel easy responsive carousel scored 10% from 54 tests.

About plugin

  • Plugin page: yoel-simple-carousel
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.2-4.7.2
  • WordPress version: 6.3.1
  • First release: Mar 18, 2017
  • Latest release: Mar 26, 2017
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: yoel_r (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 462 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/yoel-simple-carousel/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)`

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

A check of server-side resources used by yoel easy responsive carousel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1638.87 ▼17.21
Dashboard /wp-admin3.51 ▲0.2150.81 ▲5.02
Posts /wp-admin/edit.php3.56 ▼0.2861.78 ▼2.02
Add New Post /wp-admin/post-new.php6.01 ▲0.1297.95 ▼22.53
Media Library /wp-admin/upload.php3.35 ▲0.1234.22 ▼1.86
Add New /wp-admin/post-new.php?post_type=yoel_carousels3.5447.07
how to use yoel carousels /wp-admin/edit.php?post_type=yoel_carousels&page=wnm_fund_set3.3445.13
All Yoel Carousels /wp-admin/edit.php?post_type=yoel_carousels3.4845.50

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by yoel easy responsive carousel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,018 ▲26115.61 ▲1.023.51 ▲1.2443.43 ▼4.77
Dashboard /wp-admin2,418 ▲2336.83 ▲0.94135.90 ▲20.3643.07 ▼3.07
Posts /wp-admin/edit.php2,334 ▲2453.88 ▲1.8980.11 ▲38.7832.17 ▼4.33
Add New Post /wp-admin/post-new.php1,454 ▼6518.13 ▼5.18605.54 ▼75.4755.10 ▼11.79
Media Library /wp-admin/upload.php1,470 ▲854.57 ▲0.37112.51 ▲5.0253.57 ▲6.54
Add New /wp-admin/post-new.php?post_type=yoel_carousels1,6933.9973.0239.75
how to use yoel carousels /wp-admin/edit.php?post_type=yoel_carousels&page=wnm_fund_set1,0303.5850.4931.87
All Yoel Carousels /wp-admin/edit.php?post_type=yoel_carousels1,2903.7751.1928.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (desktop), #2 (edit/add carousel), #3 (mobile)
You can look at the official readme.txt

yoel-simple-carousel/index.php 92% from 13 tests

The main PHP script in "yoel easy responsive carousel" version 0.2 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("yoel-simple-carousel.php" instead of "index.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
Good job! No executable or dangerous file extensions detected4,610 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP386171,0402,415
JavaScript43283502,017
Markdown141099
CSS3111164
JSON10015

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! 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%
Functions18
▷ Named functions1583.33%
▷ Anonymous functions316.67%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.83MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
cuztom/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
cuztom/assets/images/mime/file.png1.14KB0.33KB▼ 71.50%
cuztom/assets/images/jquery-ui/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
cuztom/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
cuztom/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%