78% luzuk-slider

Code Review | Luzuk Slider

WordPress plugin Luzuk Slider scored 78% from 54 tests.

About plugin

  • Plugin page: luzuk-slider
  • Plugin version: 0.1.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Sep 3, 2021
  • Latest release: Nov 15, 2021
  • Number of updates: 21
  • Update frequency: every 3.9 days
  • Top authors: luzuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,103 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.76ms] Passed 4 tests

Analyzing server-side resources used by Luzuk Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.97 ▼2.75
Dashboard /wp-admin3.35 ▲0.0548.13 ▲1.50
Posts /wp-admin/edit.php3.41 ▲0.0548.16 ▲4.23
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.10 ▼7.29
Media Library /wp-admin/upload.php3.28 ▲0.0537.57 ▲1.49
Luzuk Slider /wp-admin/edit.php?post_type=lsfp-slider3.3241.40
Add New /wp-admin/post-new.php?post_type=lsfp-slider3.4250.03
Settings /wp-admin/edit.php?post_type=lsfp-slider&page=lsfp_tutorial_subpage_example3.2231.22

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 17 new options
New WordPress options
db_upgraded
lsfp_sortpostorder
lsfp_option_name
lsfp_option_sel_template
lsfp_option_btnbgcolor
can_compress_scripts
lsfp_option_btnbgcolor1
lsp_option_imageheight
lsfp_option_titlecolor
theysaidso_admin_options
...

Browser metrics Passed 4 tests

A check of browser resources used by Luzuk Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,988 ▲19914.01 ▼0.7211.36 ▲9.7444.72 ▼3.46
Dashboard /wp-admin2,238 ▲294.90 ▲0.03109.14 ▲9.3638.91 ▲0.28
Posts /wp-admin/edit.php2,127 ▲352.06 ▲0.0040.22 ▼7.2736.57 ▼17.64
Add New Post /wp-admin/post-new.php1,558 ▲1623.31 ▲5.11650.15 ▼22.9451.85 ▼20.61
Media Library /wp-admin/upload.php1,423 ▲324.22 ▲0.03108.42 ▲6.4547.44 ▲3.75
Luzuk Slider /wp-admin/edit.php?post_type=lsfp-slider1,0972.0441.0332.90
Add New /wp-admin/post-new.php?post_type=lsfp-slider2,2977.71164.2269.00
Settings /wp-admin/edit.php?post_type=lsfp-slider&page=lsfp_tutorial_subpage_example1,2261.7330.3532.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 17 options
    • lsfp_sortpostorder
    • lsfp_option_btnbgcolor1
    • db_upgraded
    • teamslidertransitionduration
    • theysaidso_admin_options
    • lsfp_option_btnbgcolor
    • lsfp_option_btnlabelcolor
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=lsfp-slider&page=lsfp_tutorial_subpage_example
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/edit.php?post_type=lsfp-slider&page=lsfp_tutorial_subpage_example
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/luzuk-slider/luzuk-slider.php:15

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)
No browser issues were found

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

luzuk-slider/luzuk-slider.php Passed 13 tests

The entry point to "Luzuk Slider" version 0.1.5 is a PHP file that has certain tags in its header comment area
63 characters long description:
luzuk slider plugin. You can add this shortcode [luzuk_slider].

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,664 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS6583603,718
PHP226065914
JavaScript4151732

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions27
▷ Named functions27100.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
5 PNG files occupy 0.17MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/slider-shape.png30.92KB5.95KB▼ 80.76%
images/template2.png43.68KB9.67KB▼ 77.87%
images/sliderdotimage.png12.47KB5.74KB▼ 53.99%
assets/4.png37.62KB7.61KB▼ 79.78%
images/template1.png54.33KB13.25KB▼ 75.61%