83% slider-you-n

Code Review | Slider You-n v 1.2

WordPress plugin Slider You-n v 1.2 scored 83% from 54 tests.

About plugin

  • Plugin page: slider-you-n
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 1.1-1.2
  • WordPress version: 6.3.1
  • First release: Jul 20, 2013
  • Latest release: Apr 15, 2014
  • Number of updates: 30
  • Update frequency: every 9.0 days
  • Top authors: Agenzia You-n (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,249 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

This is a short check of server-side resources used by Slider You-n v 1.2
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.95 ▼6.27
Dashboard /wp-admin3.33 ▲0.0345.28 ▼7.76
Posts /wp-admin/edit.php3.39 ▲0.0348.85 ▲3.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.54 ▲2.57
Media Library /wp-admin/upload.php3.26 ▲0.0335.09 ▲2.37

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
Yslider_settings

Browser metrics Passed 4 tests

A check of browser resources used by Slider You-n v 1.2
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7614.47 ▲0.091.78 ▼0.3640.25 ▼8.06
Dashboard /wp-admin2,214 ▲235.80 ▲0.90102.24 ▲0.7873.61 ▲27.12
Posts /wp-admin/edit.php2,100 ▲142.00 ▲0.0038.48 ▲3.3235.10 ▲1.19
Add New Post /wp-admin/post-new.php1,524 ▼522.76 ▲4.61722.70 ▲70.5560.50 ▼6.25
Media Library /wp-admin/upload.php1,402 ▲144.18 ▼0.0596.00 ▲0.0080.84 ▲37.16

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • Yslider_settings
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant YS_PLUGIN_URI - assumed 'YS_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/slider-you-n/includes/sliderBEConf.php on line 37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/slider-you-n/Yslider.php:19
    • > PHP Warning
      Use of undefined constant YS_PLUGIN_URI - assumed 'YS_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/slider-you-n/includes/sliderBEConf.php on line 39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/slider-you-n/includes/sliderBEFoto.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/slider-you-n/includes/sliderBEConf.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #5, #6, #7, #8 in slider-you-n/assets to your readme.txt
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === slider-you-n === )
Please take inspiration from this readme.txt

slider-you-n/Yslider.php 92% from 13 tests

Analyzing the main PHP file in "Slider You-n v 1.2" version 1.2
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("slider-you-n.php" instead of "Yslider.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
Success! There were no dangerous files found in this plugin6,165 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript95545673,646
PHP62553642,122
CSS26428397

PHP code Passed 2 tests

An short overview of 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.38
Average class complexity49.43
▷ Minimum class complexity2.00
▷ Maximum class complexity206.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods80
▷ Static methods33.75%
▷ Public methods4860.00%
▷ Protected methods3037.50%
▷ Private methods22.50%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants51
▷ Global constants51100.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
22 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/you-n-logo.png5.84KB2.74KB▼ 53.00%
images/delete_img.png1.41KB0.43KB▼ 69.70%
images/nav_front_right.png1.17KB0.42KB▼ 64.05%
images/nav_front_right_black.png1.15KB0.42KB▼ 63.53%
images/next-img.png2.31KB0.81KB▼ 64.92%