79% your-simple-slider

Code Review | Your Simple Slider

WordPress plugin Your Simple Slider scored 79% from 54 tests.

About plugin

  • Plugin page: your-simple-slider
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Oct 10, 2022
  • Latest release: Aug 30, 2023
  • Number of updates: 31
  • Update frequency: every 10.6 days
  • Top authors: obbdpu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 344 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.87ms] Passed 4 tests

This is a short check of server-side resources used by Your Simple Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.95 ▼6.25
Dashboard /wp-admin3.40 ▲0.1050.94 ▲1.27
Posts /wp-admin/edit.php3.52 ▲0.1750.93 ▲3.29
Add New Post /wp-admin/post-new.php5.99 ▲0.1084.75 ▼2.23
Media Library /wp-admin/upload.php3.30 ▲0.0832.05 ▼0.28
Add New /wp-admin/post-new.php?post_type=your_simple_slider3.3343.39
Your Simple Slider /wp-admin/edit.php?post_type=your_simple_slider3.3840.14

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Your Simple Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,087 ▲34115.42 ▲1.187.24 ▲5.4742.45 ▼3.23
Dashboard /wp-admin2,374 ▲1866.52 ▲1.65125.31 ▲11.9042.42 ▼3.80
Posts /wp-admin/edit.php2,277 ▲1883.32 ▲1.2748.24 ▲11.0233.59 ▼0.73
Add New Post /wp-admin/post-new.php1,554 ▲3323.37 ▲0.38562.20 ▼67.8632.31 ▼19.71
Media Library /wp-admin/upload.php1,419 ▲314.14 ▼0.0877.27 ▼29.2440.29 ▼0.22
Add New /wp-admin/post-new.php?post_type=your_simple_slider1,7743.6358.4533.26
Your Simple Slider /wp-admin/edit.php?post_type=your_simple_slider1,2533.3743.1227.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=your_simple_slider
    • > Notice in wp-content/plugins/your-simple-slider/your-simple-slider.php+110
    Trying to access array offset on value of type bool

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/your-simple-slider/your-simple-slider.php:229

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: wordpress slider, photo slider, horizontal slider, slider, responsive slider...

your-simple-slider/your-simple-slider.php Passed 13 tests

"Your Simple Slider" version 2.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
39 characters long description:
Its very simple plugin for image slider

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
Success! There were no dangerous files found in this plugin3,655 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5910992,426
CSS4495312
Sass2275262
PO File58095242
PHP17823240
LESS1115152
SVG11013
Ruby1208

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin